Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / pic16 / spec.mk
blob94ae7be498d0d34b74be77a465fbe223ff24af74
1 # Regression test specification for the pic16 target running with gpsim
3 # path to gpsim
4 ifdef GPSIM_PATH
5 GPSIM := $(WINE) $(GPSIM_PATH)/gpsim$(EXEEXT)
6 else
7 GPSIM := $(WINE) gpsim$(EXEEXT)
8 endif
10 EMU = $(GPSIM)
11 EMU_FLAGS = -i -s
12 EMU_INPUT = -c $(PORTS_DIR)/pic16/gpsim.cmd
14 ifndef SDCC_BIN_PATH
15 ifndef CROSSCOMPILING
16 SDCCFLAGS += --nostdinc -I$(top_srcdir)/device/include/pic16 -I$(top_srcdir)/device/non-free/include/pic16 -I$(top_srcdir)
17 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/pic16 -L$(top_builddir)/device/non-free/lib/build/pic16
18 else
19 SDCCFLAGS += --use-non-free
20 endif
21 else
22 SDCCFLAGS += --use-non-free
23 endif
25 ifdef CROSSCOMPILING
26 SDCCFLAGS += -I$(top_srcdir)
27 endif
29 SDCCFLAGS += -mpic16 -pp18f452 --less-pedantic -Wl,-q
30 SDCCFLAGS += --no-peep
31 SDCCFLAGS += --no-warn-non-free
32 LINKFLAGS += libsdcc.lib libc18f.lib libm18f.lib
34 OBJEXT = .o
35 BINEXT = .cod
37 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
39 # Rule to link into .cod
40 %$(BINEXT): %$(OBJEXT) $(EXTRAS)
41 $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
43 %$(OBJEXT): %.c
44 $(SDCC) $(SDCCFLAGS) -c $< -o $@
46 $(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.c
47 $(SDCC) $(SDCCFLAGS) -c $< -o $@
49 .PRECIOUS: gen/pic16/testfwk.o gen/pic16/support.o
51 $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
52 $(SDCC) $(SDCCFLAGS) -c $< -o $@
54 _clean: