1 # Regression test specification for the pic14 target running with gpsim
5 GPSIM
= $(GPSIM_PATH
)/gpsim
$(EXEEXT
)
10 EMU_INPUT
= $(PORTS_DIR
)/$(PORT_BASE
)/gpsim.cmd
12 EMU
= ${WINE} ${GPSIM}
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
19 SDCCFLAGS
+= --use-non-free
22 SDCCFLAGS
+= --use-non-free
26 SDCCFLAGS
+= -I
$(top_srcdir
)
29 SDCCFLAGS
+= -mpic14
-pp16f877
--less-pedantic
30 SDCCFLAGS
+= --no-warn-non-free
31 LINKFLAGS
+= libsdcc.lib libm.lib
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
$@
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
$@