Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / pic14 / spec.mk
blob13b460db401dc823bac90950401ae22783b1be7a
1 # Regression test specification for the pic14 target running with gpsim
3 # path to gpsim
4 ifdef GPSIM_PATH
5 GPSIM = $(GPSIM_PATH)/gpsim$(EXEEXT)
6 else
7 GPSIM = gpsim$(EXEEXT)
8 endif
10 EMU_INPUT = $(PORTS_DIR)/$(PORT_BASE)/gpsim.cmd
11 EMU_FLAGS = -i -c
12 EMU = ${WINE} ${GPSIM}
14 ifndef SDCC_BIN_PATH
15 ifndef CROSSCOMPILING
16 SDCCFLAGS += --nostdinc -I$(top_srcdir)/device/include/pic14 -I$(top_srcdir)/device/non-free/include/pic14 -I$(top_srcdir)
17 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/pic14 -L$(top_builddir)/device/non-free/lib/build/pic14
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 += -mpic14 -pp16f877 --less-pedantic
30 SDCCFLAGS += --no-warn-non-free
31 LINKFLAGS += libsdcc.lib libm.lib
33 OBJEXT = .o
34 BINEXT = .cod
36 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
38 # Rule to link into .ihx
39 %$(BINEXT): %$(OBJEXT) $(EXTRAS)
40 -$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
42 %$(OBJEXT): %.c
43 -$(SDCC) $(SDCCFLAGS) -c $< -o $@
45 $(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.c
46 -$(SDCC) $(SDCCFLAGS) -c $< -o $@
48 .PRECIOUS: gen/pic14/testfwk.o gen/pic14/support.o
50 $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
51 $(SDCC) $(SDCCFLAGS) -c $< -o $@
53 _clean: