summaryrefslogtreecommitdiff
path: root/mk/popen.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/popen.d')
-rw-r--r--mk/popen.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/popen.d b/mk/popen.d
new file mode 100644
index 00000000..3a4e1ef1
--- /dev/null
+++ b/mk/popen.d
@@ -0,0 +1,11 @@
+libc_P.2: libc.a(popen.o)
+libc.a(popen.o): $(OBJDIR)/popen.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/popen.o: src/stdio/popen.c
+$(OBJDIR)/popen.o: src/_assert.h
+$(OBJDIR)/popen.o: src/stdio/_stdio.h
+$(OBJDIR)/popen.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/stdio/popen.c