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

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