824fac0f2a9705db0d17c860f8a00a65b59cf96e
[fw/sdcc] / support / tests / dhrystone / Makefile
1 # Simple Makefile for dhrystone and sdcc
2
3 PROC = gbz80
4 PORT = gb
5
6 CC = /home/michaelh/projects/gbdk-support/lcc/lcc
7 # -DNOENUM is here to make the results more predictable
8 CFLAGS =
9 CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM
10 LIBDIR = /home/michaelh/projects/gbdk-lib/build/
11 LD = link-$(PROC)
12 LDFLAGS = -v
13 AS = as-$(PROC)
14
15 OBJ = dhry.o
16
17 all: dhry
18
19 dhry: $(OBJ)
20         $(CC) -o dhry.gb dhry.o
21
22 native:
23         gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
24
25 dhry.c:
26
27 clean:
28         rm -r *~ dhry