summaryrefslogtreecommitdiff
path: root/mk/_POSIX_C_SOURCE.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/_POSIX_C_SOURCE.d')
-rw-r--r--mk/_POSIX_C_SOURCE.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/_POSIX_C_SOURCE.d b/mk/_POSIX_C_SOURCE.d
new file mode 100644
index 00000000..76cf739c
--- /dev/null
+++ b/mk/_POSIX_C_SOURCE.d
@@ -0,0 +1,9 @@
+libc_C.0: libc.a(_POSIX_C_SOURCE.o)
+libc.a(_POSIX_C_SOURCE.o): $(OBJDIR)/_POSIX_C_SOURCE.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/_POSIX_C_SOURCE.o: src/__FEATURE_TEST_MACROS__/_POSIX_C_SOURCE.c
+$(OBJDIR)/_POSIX_C_SOURCE.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/__FEATURE_TEST_MACROS__/_POSIX_C_SOURCE.c