* src/z80/gen.c (shiftIntoPair): Fixed up warning.
[fw/sdcc] / support / regression / ports / z80 / spec.mk
index 133394950bd57910eca111cb5f438b195bc96497..66e9d86d755249f3aebac29250239f1c36262968 100644 (file)
@@ -3,7 +3,7 @@
 
 RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
 
-SDCCFLAGS += --lesspedantic --profile
+SDCCFLAGS += --lesspedantic --profile -DREENTRANT=
 
 EXEEXT = .bin
 
@@ -12,17 +12,23 @@ EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)
 
 # Rule to generate a Emulator .bin file from the .ihx linker output.
 %$(EXEEXT): %.ihx
-       ../makebin/makebin -s 32768 < $< > $@  # Must be 32768 due to a bug in ConsoleZ80
+       $(SDCC_DIR)/bin/makebin -s 32768 < $< > $@
 
 # Rule to link into .ihx
 %.ihx: %.c $(EXTRAS)
        $(SDCC) $(SDCCFLAGS) $< $(EXTRAS)
 
 %$(OBJEXT): %.asm
-       ../../bin/as-z80 -plosgff $@ $<
+       $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
 
 %$(OBJEXT): %.s
-       ../../bin/as-z80 -plosgff $@ $<
+       $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
+
+%$(OBJEXT): %.c
+       $(SDCC) $(SDCCFLAGS) -c $<
+
+fwk/lib/testfwk$(OBJEXT): fwk/lib/testfwk.c
+       $(SDCC) $(SDCCFLAGS) -c $<
 
 # PENDING: Path to sdcc-extra
 %.out: %$(EXEEXT)