X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fregression%2FMakefile;h=4a5468a884a31ddbf73377a96621276068126f27;hb=d5a894fa00d4da47d6f7110282dd16e49d872350;hp=641c99754d90328e5bf7a0599c143b2d1859958e;hpb=9c5f50d6b3f4b30c087406b83bbd322e7e7185db;p=fw%2Fsdcc diff --git a/src/regression/Makefile b/src/regression/Makefile index 641c9975..4a5468a8 100644 --- a/src/regression/Makefile +++ b/src/regression/Makefile @@ -49,12 +49,15 @@ #Q ?= # be verbose Q ?= @ # be quiet -CC = sdcc +SDCC_SRC=../.. +SDCC_BIN=../.. + +CC = $(SDCC_BIN)/bin/sdcc LINKER = gplink -USE_PIC16 ?= 1 +USE_PIC16 ?= 0 ifeq ($(strip $(filter 1 yes,$(USE_PIC16))),) TARGETPIC = 16f877 -TARGETPIC = 16f84 +#TARGETPIC = 16f84 CFLAGS = -mpic14 -p$(TARGETPIC) DIR = pic else @@ -64,8 +67,8 @@ DIR = pic16 endif CFLAGS += -Wl,-q CFLAGS += -Wl,--map -CFLAGS += -I ../../device/include/$(DIR) -CFLAGS += -L ../../device/lib/$(DIR)/bin +CFLAGS += -I $(SDCC_SRC)/device/include/$(DIR) +CFLAGS += -L $(SDCC_BIN)/device/lib/$(DIR)/bin #CFLAGS += --no-pcode-opt #CFLAGS += -V @@ -108,6 +111,7 @@ SRC = add.c \ configword.c \ empty.c \ for.c \ + init0.c \ inline.c \ mult1.c \ nestfor.c \