X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=tests%2FMakefile;h=7bc3d34a40f9d561fc619d508d0b5b6a2d765b6b;hb=334833ca3beccfac79be54af3a12356f23794aec;hp=e2d04c2b6ed403ca7b6d9c78d21d0eaab6947e7a;hpb=ac39b7b60544d4ac3b20c4a46213ea60227da103;p=simavr diff --git a/tests/Makefile b/tests/Makefile index e2d04c2..7bc3d34 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -20,16 +20,11 @@ # You should have received a copy of the GNU General Public License # along with simavr. If not, see . - -SHELL = /bin/bash - sources := $(wildcard at*.c) simavr = .. IPATH += ${simavr}/include IPATH += ${simavr}/simavr/sim -CFLAGS += -Wall -LDFLAGS += -L${simavr}/simavr/${OBJ} -lsimavr tests_src = ${wildcard test_*.c} tests = ${patsubst %.c, ${OBJ}/%.tst, ${tests_src}} @@ -45,10 +40,10 @@ axf: ${sources:.c=.axf} ${OBJ}/%.tst: tests.c %.c ifeq ($(V),1) - $(CC) -MMD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) + $(CC) -MMD ${CPPFLAGS} ${CFLAGS} ${LFLAGS} -o $@ ${patsubst %.h,, ${^}} $(LDFLAGS) else @echo TST $@ - @$(CC) -MMD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) + @$(CC) -MMD ${CPPFLAGS} ${CFLAGS} ${LFLAGS} -o $@ ${patsubst %.h,, ${^}} $(LDFLAGS) endif run_tests: all