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

$(OBJDIR)/fdopen.o: src/stdio/fdopen.c
$(OBJDIR)/fdopen.o: src/stdio/_stdio.h
$(OBJDIR)/fdopen.o:
	@mkdir -p $(@D)
	$(CC) -c -o $@ $(CFLAGS) src/stdio/fdopen.c