PIC Port - Totally rewrote signed comparisons. It was a horrendously hideous bitch...
[fw/sdcc] / src / regression / Makefile
index eb40eaa0b308d2b76ecbd0f7c8633e5c33abb70a..d5fe5caee08a0822469bfcb6945fef71b47e8f14 100644 (file)
@@ -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,16 +65,21 @@ SRC = b.c \
        add.c \
        add2.c \
        add3.c \
+       and1.c \
        bool1.c \
        call1.c \
        compare.c \
        compare2.c \
        compare3.c \
        compare4.c \
+       compare5.c \
+       compare6.c \
        for.c \
+       or1.c \
        rotate1.c \
        rotate2.c \
        rotate3.c \
+       rotate4.c \
        struct1.c \
        sub.c \
        sub2.c \
@@ -75,6 +87,8 @@ SRC = b.c \
        while.c \
        xor.c
 
+#      mul1.c \
+
 COD := $(patsubst %.c, %.cod, $(SRC))
 ASM := $(patsubst %.c, %.asm, $(SRC))
 STC := $(patsubst %.c, %.stc, $(SRC))
@@ -89,11 +103,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
@@ -109,12 +125,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: