Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / tests / dhrystone / Makefile
blob62d194fa2e982ccf6e55d15d24705bac0bb9d051
1 # Simple Makefile for dhrystone and sdcc
2 TOPDIR = ../../..
4 PROC = z80
6 CC = $(TOPDIR)/bin/sdcc
8 # -DNOENUM is here to make the results more predictable
9 CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -V -m$(PROC) --profile --dumpall --stack-auto
11 OBJ = dhry.o
13 all: dhry.bin
15 dhry.ihx: dhry.c
16 $(CC) $(CFLAGS) dhry.c
18 dhry.gb: dhry.c
19 $(CC) $(CFLAGS) dhry.c
21 dhry.c: dhry.h
23 dhry.bin: dhry.ihx
24 cat $< | $(TOPDIR)/bin/makebin > $@
26 native:
27 gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
29 clean:
30 rm -f *~ dhry *.o *.gb *.ihx *.rel *.dump* *.lst *.sym *.map *.asm *.bin *.gb