From 9b59b00627e0e068d6e63da7f21ee54d709a46c2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 19 Sep 2009 08:00:34 +0000 Subject: Improved makefiles. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1166 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARM7-AT91SAM7X-GCC/Makefile | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'demos/ARM7-AT91SAM7X-GCC') diff --git a/demos/ARM7-AT91SAM7X-GCC/Makefile b/demos/ARM7-AT91SAM7X-GCC/Makefile index 5a9a7a94a..fa6f56c8c 100644 --- a/demos/ARM7-AT91SAM7X-GCC/Makefile +++ b/demos/ARM7-AT91SAM7X-GCC/Makefile @@ -43,20 +43,21 @@ PROJECT = ch LDSCRIPT= ch.ld # Imported source files -include ../../os/ports/GCC/ARM7/port.mk -include ../../os/kernel/kernel.mk -include ../../test/test.mk +CHIBIOS = ../.. +include ${CHIBIOS}/os/ports/GCC/ARM7/port.mk +include ${CHIBIOS}/os/kernel/kernel.mk +include ${CHIBIOS}/test/test.mk # C sources that can be compiled in ARM or THUMB mode depending on the global # setting. CSRC = ${PORTSRC} \ ${KERNSRC} \ ${TESTSRC} \ - ../../os/io/pal.c \ - ../../os/io/serial.c \ - ../../os/io/platforms/AT91SAM7X/pal_lld.c \ - ../../os/io/platforms/AT91SAM7X/serial_lld.c \ - ../../os/io/platforms/AT91SAM7X/at91lib/aic.c \ + ${CHIBIOS}/os/io/pal.c \ + ${CHIBIOS}/os/io/serial.c \ + ${CHIBIOS}/os/io/platforms/AT91SAM7X/pal_lld.c \ + ${CHIBIOS}/os/io/platforms/AT91SAM7X/serial_lld.c \ + ${CHIBIOS}/os/io/platforms/AT91SAM7X/at91lib/aic.c \ board.c main.c # C++ sources that can be compiled in ARM or THUMB mode depending on the global @@ -85,13 +86,13 @@ TCPPSRC = # List ASM source files here ASMSRC = $(PORTASM) \ - ../../os/ports/GCC/ARM7/AT91SAM7X/vectors.s + ${CHIBIOS}/os/ports/GCC/ARM7/AT91SAM7X/vectors.s INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \ - ../../os/io \ - ../../os/io/platforms/AT91SAM7X \ - ../../os/various \ - ../../os/ports/GCC/ARM7/AT91SAM7X + ${CHIBIOS}/os/io \ + ${CHIBIOS}/os/io/platforms/AT91SAM7X \ + ${CHIBIOS}/os/various \ + ${CHIBIOS}/os/ports/GCC/ARM7/AT91SAM7X # # Project, sources and paths @@ -179,4 +180,4 @@ ULIBS = # End of user defines ############################################################################## -include ../../os/ports/GCC/ARM/rules.mk +include ${CHIBIOS}/os/ports/GCC/ARM/rules.mk -- cgit v1.2.3