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

$(OBJDIR)/write.o: src/unistd/write.c
$(OBJDIR)/write.o: src/_safety.h
$(OBJDIR)/write.o: src/_syscall.h
$(OBJDIR)/write.o:
	@mkdir -p $(@D)
	$(CC) -c -o $@ $(CFLAGS) src/unistd/write.c