* src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
[fw/sdcc] / src / regression / Makefile
index 3e096e7817eac2e18f72b01a00c0107d738dc7ba..c072227d0e7071899cf4838a2231cbbac5cef3b6 100644 (file)
 # make cleano
 #  - removes either the .stc, .asm, .cod or .o files
 
+# verboseness
+#Q ?= # be verbose
+Q ?= @ # be quiet
 
-CC = ../../bin/sdcc
+CC = sdcc
 LINKER = gplink
-TARGETPIC = 16f873
-TARGETPIC2 = 16f877
-CFLAGS = -mpic14 -c -pp$(TARGETPIC)
+TARGETPIC = 16f877
+CFLAGS = -I ../../device/include/pic -mpic14 -c -pp$(TARGETPIC)
 
 .SUFFIXES: .asm .c .cod .stc
 
@@ -111,12 +113,12 @@ all:      test
 
 # The asm files are generated by sdcc
 .c.o:
-       $(CC) $(CFLAGS)  $*.c
+       $(Q)$(CC) $(CFLAGS)  $*.c
 
 # The .cod files are generated by gpasm
 # these get loaded by gpsim.
 .o.cod:
-       $(LINKER) --map -c -s $(TARGETPIC2).lkr -o $*.o $*.o
+       $(Q)$(LINKER) --map -c -o $*.o $*.o
 
 #      gpasm $*.asm
 
@@ -125,8 +127,8 @@ all:        test
 
 # The .stc files are script files for gpsim
 .cod.stc:
-       ./$(CREATESTC) $*.cod $*.stc
-       ./$(SIMULATE) $*.stc $(LOGFILE)
+       $(Q)./$(CREATESTC) $*.cod $*.stc
+       $(Q)./$(SIMULATE) $*.stc $(LOGFILE)
 
 # this will also make .stc files
 #%.stc : %.cod
@@ -144,7 +146,7 @@ stc : $(STC)
        echo $(STC)
 
 test:  $(STC)
-       echo "Done - Results are in $(LOGFILE)"
+       $(Q)echo "Done - Results are in $(LOGFILE)"
 
 cleancod:
        files="$(COD)" ; \