Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / host / spec.mk.in
blob064ce3d3431bca4d71b81622e36198f93feba651
1 # Port specification for compiling on the host machines compiler
3 # runtimeout in seconds
4 RUN_TIMEOUT = 1
6 CC = @CC@
7 SDCC =${CC}
8 SDCCFLAGS = @CFLAGS@ $(CPPFLAGS) -DPORT_HOST=1 -DREENTRANT= -I$(top_builddir) -I$(top_srcdir)
9 SDLDFLAGS = @LDFLAGS@
10 # disable all warnings:
11 SDCCFLAGS+= -w
12 # enable all warnings:
13 #SDCCFLAGS+= @WALL_FLAG@
15 BINEXT = .bin
16 OBJEXT = .o
17 INC_DIR = .
19 # otherwise `make` deletes testfwk.o and `make -j` will fail
20 .PRECIOUS: $(PORT_CASES_DIR)/%$(OBJEXT)
22 # Required extras
23 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
24 include $(srcdir)/fwk/lib/spec.mk
26 EMU_INPUT =
27 SIM_TIMEOUT = ${RUN_TIMEOUT}
29 %$(BINEXT): %$(OBJEXT) $(EXTRAS) $(FWKLIB)
30 ${M_V_CCLD}$(SDCC) $(SDCCFLAGS) $(SDLDFLAGS) -o $@ $< $(EXTRAS) $(FWKLIB) -lm
32 #%$(OBJEXT): %.c
33 # $(SDCC) $(SDCCFLAGS) -c $< -o $@
35 $(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.c
36 ${M_V_CC}$(SDCC) $(SDCCFLAGS) -c $< -o $@
38 $(PORT_CASES_DIR)/%$(OBJEXT): $(srcdir)/fwk/lib/%.c
39 ${M_V_CC}$(SDCC) $(SDCCFLAGS) -c $< -o $@
42 _clean: