RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
-SDCCFLAGS += --lesspedantic --profile
+SDCCFLAGS += --lesspedantic --profile -DREENTRANT=
EXEEXT = .bin
# 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)