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 --- test/coverage/Makefile | 9 +++++---- test/test.mk | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) (limited to 'test') diff --git a/test/coverage/Makefile b/test/coverage/Makefile index 69f55884e..fb069123c 100644 --- a/test/coverage/Makefile +++ b/test/coverage/Makefile @@ -57,20 +57,21 @@ UDEFS = UADEFS = # Imported source files -include ../../os/kernel/kernel.mk -include ../../test/test.mk +CHIBIOS = ../.. +include ${CHIBIOS}/os/kernel/kernel.mk +include ${CHIBIOS}/test/test.mk # List C source files here SRC = ${KERNSRC} \ ${TESTSRC} \ - ../../os/io/serial.c \ + ${CHIBIOS}/os/io/serial.c \ chcore.c serial_lld.c main.c # List ASM source files here ASRC = # List all user directories here -UINCDIR = $(KERNINC) $(TESTINC) ../../os/io +UINCDIR = $(KERNINC) $(TESTINC) ${CHIBIOS}/os/io # List the user directory to look for the libraries here ULIBDIR = diff --git a/test/test.mk b/test/test.mk index 2a3e1a4f9..3f740288c 100644 --- a/test/test.mk +++ b/test/test.mk @@ -1,10 +1,16 @@ # List of all the ChibiOS/RT test files. -TESTSRC = ../../test/test.c ../../test/testthd.c \ - ../../test/testsem.c ../../test/testmtx.c \ - ../../test/testmsg.c ../../test/testmbox.c \ - ../../test/testevt.c ../../test/testheap.c \ - ../../test/testpools.c ../../test/testdyn.c \ - ../../test/testqueues.c ../../test/testbmk.c +TESTSRC = ${CHIBIOS}/test/test.c \ + ${CHIBIOS}/test/testthd.c \ + ${CHIBIOS}/test/testsem.c \ + ${CHIBIOS}/test/testmtx.c \ + ${CHIBIOS}/test/testmsg.c \ + ${CHIBIOS}/test/testmbox.c \ + ${CHIBIOS}/test/testevt.c \ + ${CHIBIOS}/test/testheap.c \ + ${CHIBIOS}/test/testpools.c \ + ${CHIBIOS}/test/testdyn.c \ + ${CHIBIOS}/test/testqueues.c \ + ${CHIBIOS}/test/testbmk.c # Required include directories -TESTINC = ../../test +TESTINC = ${CHIBIOS}/test -- cgit v1.2.3