diff --git a/Makefile b/Makefile index 1a40df760577fe23316d2306008a3692abda619e..a3f80bd3932607ced92c9e1e2e539fc12baebd19 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ SIZE = $(CROSS_COMPILE)size AUTOCONF = $(CURDIR)/include/generated/autoconf.h PPSI = ppsi +PPSI_CONFIG = ppsi/include/generated/autoconf.h # we miss CONFIG_ARCH_LM32 as we have no other archs by now obj-y = arch/lm32/crt0.o arch/lm32/irq.o @@ -153,7 +154,8 @@ clean: $(MAKE) -C tools clean %.o: %.c - ${CC} $(CFLAGS) $(PTPD_CFLAGS) $(INCLUDE_DIR) $(LIB_DIR) -c $*.c -o $@ + ${CC} $(CFLAGS) $(PTPD_CFLAGS) $(INCLUDE_DIR) $(LIB_DIR) \ + -include $(PPSI_CONFIG) -c $*.c -o $@ tools: $(MAKE) -C tools @@ -186,4 +188,4 @@ defconfig: .depend: $(wildcard *.c [^pt]/*.c) $(CC) $(CFLAGS) -DSDBFS_BIG_ENDIAN -MM $^ > $@ --include .depend \ No newline at end of file +-include .depend