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