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