1 # Port specification for compiling on the host machines compiler
3 # runtimeout in seconds
8 SDCCFLAGS
= @CFLAGS@
$(CPPFLAGS
) -DPORT_HOST
=1 -DREENTRANT
= -I
$(top_builddir
) -I
$(top_srcdir
)
10 # disable all warnings:
12 # enable all warnings:
13 #SDCCFLAGS+= @WALL_FLAG@
19 # otherwise `make` deletes testfwk.o and `make -j` will fail
20 .PRECIOUS
: $(PORT_CASES_DIR
)/%$(OBJEXT
)
23 EXTRAS
= $(PORT_CASES_DIR
)/testfwk
$(OBJEXT
) $(PORT_CASES_DIR
)/support
$(OBJEXT
)
24 include $(srcdir)/fwk
/lib
/spec.mk
27 SIM_TIMEOUT
= ${RUN_TIMEOUT}
29 %$(BINEXT
): %$(OBJEXT
) $(EXTRAS
) $(FWKLIB
)
30 ${M_V_CCLD}$(SDCC
) $(SDCCFLAGS
) $(SDLDFLAGS
) -o
$@
$< $(EXTRAS
) $(FWKLIB
) -lm
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
$@