X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fregression%2FMakefile;h=196222c6f907f5b1f489ef9a7759d2ed94d9317b;hb=ca79bdce9a86b192bb9b450d598cc6ee939680dc;hp=fd8001aabd4f7dfa188e324ac7c1435cb8d7f0a5;hpb=9a8dddc06cfddf1d3fcbfe00a114c48170eb15c0;p=fw%2Fsdcc diff --git a/src/regression/Makefile b/src/regression/Makefile index fd8001aa..196222c6 100644 --- a/src/regression/Makefile +++ b/src/regression/Makefile @@ -1,5 +1,10 @@ # Regression testing Makefile for Pic Port of SDCC # +# note that this regression suite was started before +# the one in sdcc/regression. The regression suite in +# sdcc/regression is better suited for testing mature +# ports. +# # GPL'd # # T. Scott Dattalo scott@dattalo.com @@ -42,6 +47,8 @@ CC = ../../bin/sdcc +HEADER=/usr/local/share/gpasm/header + .SUFFIXES: .asm .c .cod .stc # Results of the test are placed here: @@ -58,6 +65,7 @@ SRC = b.c \ add.c \ add2.c \ add3.c \ + and1.c \ bool1.c \ call1.c \ compare.c \ @@ -67,6 +75,7 @@ SRC = b.c \ compare5.c \ compare6.c \ for.c \ + or1.c \ rotate1.c \ rotate2.c \ rotate3.c \ @@ -91,11 +100,13 @@ all: test # The .cod files are generated by gpasm # these get loaded by gpsim. .asm.cod: - gpasm -c $*.asm + gpasm -c -I $(HEADER) $*.asm # The .stc files are script files for gpsim .cod.stc: ./$(CREATESTC) $*.cod $*.stc + echo "Created $*.stc" + ./$(SIMULATE) $*.stc $(LOGFILE) # this will also make .stc files #%.stc : %.cod @@ -111,12 +122,6 @@ asm : $(ASM) stc : $(STC) test: $(STC) - if [ -n "$(STC)" ]; then \ - stcfiles="$(STC)" ; \ - for f in $$stcfiles ; do \ - ./$(SIMULATE) $$f $(LOGFILE); \ - done ; \ - fi echo "Done - Results are in $(LOGFILE)" cleancod: