aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-19 08:00:34 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-19 08:00:34 +0000
commit9b59b00627e0e068d6e63da7f21ee54d709a46c2 (patch)
treee3ff1642c75b642e362eab6a6b0645adcded0b56 /demos/ARM7-AT91SAM7X-GCC
parentdb46ee952bdf71ee039adf1bcf549968763f7a40 (diff)
downloadChibiOS-9b59b00627e0e068d6e63da7f21ee54d709a46c2.tar.gz
ChibiOS-9b59b00627e0e068d6e63da7f21ee54d709a46c2.tar.bz2
ChibiOS-9b59b00627e0e068d6e63da7f21ee54d709a46c2.zip
Improved makefiles.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1166 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-GCC')
-rw-r--r--demos/ARM7-AT91SAM7X-GCC/Makefile29
1 files changed, 15 insertions, 14 deletions
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