summaryrefslogtreecommitdiff
path: root/support/tests/dhrystone/Makefile
blob: 62d194fa2e982ccf6e55d15d24705bac0bb9d051 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Simple Makefile for dhrystone and sdcc
TOPDIR = ../../..

PROC = z80

CC = $(TOPDIR)/bin/sdcc

# -DNOENUM is here to make the results more predictable
CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -V -m$(PROC) --profile --dumpall --stack-auto

OBJ = dhry.o

all: dhry.bin

dhry.ihx: dhry.c
	$(CC) $(CFLAGS) dhry.c

dhry.gb: dhry.c
	$(CC) $(CFLAGS) dhry.c

dhry.c: dhry.h

dhry.bin: dhry.ihx
	cat $< | $(TOPDIR)/bin/makebin > $@

native:
	gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c

clean:
	rm -f *~ dhry *.o *.gb *.ihx *.rel *.dump* *.lst *.sym *.map *.asm *.bin *.gb