1 # Simple Makefile for dhrystone and sdcc
3 CC = /home/michaelh/projects/sdcc/bin/sdcc
4 # -DNOENUM is here to make the results more predictable
6 CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -DBROKEN_SDCC=1
7 LIBDIR = /home/michaelh/projects/sdcc/device/lib/z80/
15 $(LD) -n -- -i -j -k$(LIBDIR) -lz80.lib \
16 -b_CODE=0x200 -b_DATA=0xc000 dhry.ihx $(LIBDIR)crt0.o $(OBJ)
17 cat dhry.ihx | ../../makebin/makebin > dhry.rom
20 gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c