summaryrefslogtreecommitdiff
path: root/mk/realloc.d
blob: a7f4ac3e059c76f09fe1d44679c46f6a3bfe90d6 (plain)
1
2
3
4
5
6
7
8
9
libc_C.1: libc.a(realloc.o)
libc.a(realloc.o): $(OBJDIR)/realloc.o
	@$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%

$(OBJDIR)/realloc.o: src/stdlib/realloc.c
$(OBJDIR)/realloc.o:
	@echo "  [CC] $@"
	@mkdir -p $(@D)
	@$(CC) -c -o $@ $(CFLAGS) src/stdlib/realloc.c