summaryrefslogtreecommitdiff
path: root/mk/getsubopt.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/getsubopt.d')
-rw-r--r--mk/getsubopt.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/getsubopt.d b/mk/getsubopt.d
new file mode 100644
index 00000000..df197720
--- /dev/null
+++ b/mk/getsubopt.d
@@ -0,0 +1,10 @@
+libc_P.200809: libc.a(getsubopt.o)
+libc_X.400: libc.a(getsubopt.o)
+libc.a(getsubopt.o): $(OBJDIR)/getsubopt.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/getsubopt.o: src/stdlib/getsubopt.c
+$(OBJDIR)/getsubopt.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/stdlib/getsubopt.c