os/libc/Makefile
2019-05-24 09:51:45 -05:00

13 lines
246 B
Makefile

SOURCES = $(wildcard libc/*.c libc/*/*.c)
HEADERS = $(wildcard libc/*.h libc/*/*.h)
.PHONY: sysroot
libc.a: $(LIBC_OBJ)
@$(AR) rcs $@ $^
%.o: %.c sysroot
@$(CC) -I../sysroot/usr/include $(CFLAGS) -c $< -o $@
clean:
@rm -rf *.o libc/libc.a