Imported Upstream version 2.9.0
[debian/cc1111] / 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) --profile --dumpall --stack-auto
10
11 OBJ = dhry.o
12
13 all: dhry.bin
14
15 dhry.ihx: dhry.c
16         $(CC) $(CFLAGS) dhry.c
17
18 dhry.gb: dhry.c
19         $(CC) $(CFLAGS) dhry.c
20
21 dhry.c: dhry.h
22
23 dhry.bin: dhry.ihx
24         cat $< | $(TOPDIR)/bin/makebin > $@
25
26 native:
27         gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
28
29 clean:
30         rm -f *~ dhry *.o *.gb *.ihx *.rel *.dump* *.lst *.sym *.map *.asm *.bin *.gb