1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
# Top-level make file included by all of the regression test makefiles
ifdef GPSIM_PATH
PATH := $(GPSIM_PATH):$(PATH)
else
PATH := ../../gpsim:$(PATH)
endif
ifdef EXTENDED_INSTRUCTIONS
ASM_FLAGS = -c --extended
else
ASM_FLAGS = -c
endif
# The gpsim startup configuration script is loaded
# at the invocation of each regression test.
STARTUP_STC=../startup.stc
GPSIM = gpsim
%.o : %.asm
gpasm $(ASM_FLAGS) $<
# this rule will expands the sim_% target
# for example, in the a2d regression test there are
# several tests that have targets of the form 'sim_p16f88'
# This rule will make that target depend on p16f88.cod
# (which in turn has a dependency on p16f88.asm) and will
# invoke the simulator
sim_%: %.cod
$(GPSIM) -i -I $(STARTUP_STC) -D STC="$<"
%.-: %.cod
$(GPSIM) -s $<
# Each regression test has a target 'all'
top: all
clean:
rm -f *~ *.o *.lst *.map *.hex *.cod *.log startup.stc
|