RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
-SDCCFLAGS += --lesspedantic --profile
+SDCCFLAGS += --lesspedantic --profile -DREENTRANT= -DGENERIC=
EXEEXT = .bin
%$(OBJEXT): %.s
../../bin/as-z80 -plosgff $@ $<
+%$(OBJEXT): %.c
+ $(SDCC) $(SDCCFLAGS) -c $<
+
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
mkdir -p `dirname $@`