aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile b/demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile
index 404fb07e0..7255f4f3e 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/Makefile
@@ -44,6 +44,8 @@ LDSCRIPT= ch.ld
# Imported source files
CHIBIOS = ../..
+include ${CHIBIOS}/os/hal/hal.mk
+include ${CHIBIOS}/os/hal/platforms/AT91SAM7/platform.mk
include ${CHIBIOS}/os/ports/GCC/ARM7/port.mk
include ${CHIBIOS}/os/kernel/kernel.mk
include ${CHIBIOS}/test/test.mk
@@ -54,20 +56,13 @@ include ./lwip/lwip.mk
CSRC = ${PORTSRC} \
${KERNSRC} \
${TESTSRC} \
- ${CHIBIOS}/os/io/pal.c \
- ${CHIBIOS}/os/io/serial.c \
- ${CHIBIOS}/os/io/mii.c \
- ${CHIBIOS}/os/io/mac.c \
- ${CHIBIOS}/os/io/platforms/AT91SAM7/pal_lld.c \
- ${CHIBIOS}/os/io/platforms/AT91SAM7/serial_lld.c \
- ${CHIBIOS}/os/io/platforms/AT91SAM7/mii_lld.c \
- ${CHIBIOS}/os/io/platforms/AT91SAM7/mac_lld.c \
- ${CHIBIOS}/os/io/platforms/AT91SAM7/at91lib/aic.c \
- ${CHIBIOS}/os/various/evtimer.c \
+ ${HALSRC} \
+ ${PLATFORMSRC} \
${LWNETIFSRC} \
${LWCORESRC} \
${LWIPV4SRC} \
${LWAPISRC} \
+ ${CHIBIOS}/os/various/evtimer.c \
./lwip/arch/sys_arch.c \
./lwip/lwipthread.c \
./web/web.c \
@@ -101,9 +96,7 @@ TCPPSRC =
ASMSRC = $(PORTASM) \
${CHIBIOS}/os/ports/GCC/ARM7/AT91SAM7/vectors.s
-INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) $(LWINC) \
- ${CHIBIOS}/os/io \
- ${CHIBIOS}/os/io/platforms/AT91SAM7 \
+INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) $(HALINC) $(PLATFORMINC) $(LWINC) \
${CHIBIOS}/os/various \
${CHIBIOS}/os/ports/GCC/ARM7/AT91SAM7 \
./lwip