File: make.regression

package info (click to toggle)
gpsim 0.32.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,644 kB
  • sloc: cpp: 121,258; asm: 54,223; ansic: 13,576; python: 9,708; sh: 4,695; makefile: 1,575; lex: 1,139; yacc: 854; pascal: 511; perl: 93; awk: 44; xml: 41
file content (41 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (8)
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