diff options
Diffstat (limited to 'mk/dup2.d')
| -rw-r--r-- | mk/dup2.d | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/dup2.d b/mk/dup2.d new file mode 100644 index 00000000..5ff93a43 --- /dev/null +++ b/mk/dup2.d @@ -0,0 +1,10 @@ +libc_P.1: libc.a(dup2.o) +libc.a(dup2.o): $(OBJDIR)/dup2.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/dup2.o: src/unistd/dup2.c +$(OBJDIR)/dup2.o: src/_syscall.h +$(OBJDIR)/dup2.o: + @echo " [CC] $@" + @mkdir -p $(@D) + @$(CC) -c -o $@ $(CFLAGS) src/unistd/dup2.c |
