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