934de057e7f48ca142c38407010e5731d1d2a0ff
[fw/sdcc] / support / tests / dhrystone / Makefile
1 # Simple Makefile for dhrystone and sdcc
2 TOPDIR = ../../..
3
4 PROC = z80
5
6 CC = $(TOPDIR)/bin/sdcc
7
8 # -DNOENUM is here to make the results more predictable
9 CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -V -m$(PROC)
10
11 OBJ = dhry.o
12
13 all: dhry.ihx
14
15 dhry.ihx: dhry.c
16         $(CC) $(CFLAGS) dhry.c
17
18 dhry.c: dhry.h
19
20 dhry.bin: dhry.ihx
21         cat $< | ../../makebin/makebin > $@
22
23 native:
24         gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
25
26 clean:
27         rm -f *~ dhry *.o *.gb *.ihx *.rel