1 # Regression test specification for the pic16 target running with gpsim
5 GPSIM
:= $(WINE
) $(GPSIM_PATH
)/gpsim
$(EXEEXT
)
7 GPSIM
:= $(WINE
) gpsim
$(EXEEXT
)
12 EMU_INPUT
= -c
$(PORTS_DIR
)/pic16
/gpsim.cmd
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
19 SDCCFLAGS
+= --use-non-free
22 SDCCFLAGS
+= --use-non-free
26 SDCCFLAGS
+= -I
$(top_srcdir
)
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
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
$@
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
$@