projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2001-10-21 Michael Hope <michaelh@juju.net.nz>
[fw/sdcc]
/
support
/
tests
/
dhrystone
/
Makefile
diff --git
a/support/tests/dhrystone/Makefile
b/support/tests/dhrystone/Makefile
index 1eba231c8fce7911f4a5a20abfc570be1af337e3..62d194fa2e982ccf6e55d15d24705bac0bb9d051 100644
(file)
--- a/
support/tests/dhrystone/Makefile
+++ b/
support/tests/dhrystone/Makefile
@@
-1,32
+1,30
@@
# Simple Makefile for dhrystone and sdcc
# Simple Makefile for dhrystone and sdcc
+TOPDIR = ../../..
-PROC = gbz80
-PORT = gb
+PROC = z80
+
+CC = $(TOPDIR)/bin/sdcc
-CC = /home/michaelh/projects/gbdk-support/lcc/lcc
# -DNOENUM is here to make the results more predictable
# -DNOENUM is here to make the results more predictable
-CFLAGS = -Wl-m -mz80/consolez80 -v --prefix=/home/michaelh/projects/gbdk-current/
-CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM
-LIBDIR = /home/michaelh/projects/gbdk-lib/build/
-LD = link-$(PROC)
-LDFLAGS = -v
-AS = as-$(PROC)
+CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -V -m$(PROC) --profile --dumpall --stack-auto
OBJ = dhry.o
OBJ = dhry.o
-all: dhry
+all: dhry.bin
+
+dhry.ihx: dhry.c
+ $(CC) $(CFLAGS) dhry.c
-dhry: dhry.s $(OBJ)
- -$(CC) $(CFLAGS) -o dhry.gb dhry.o
- cat dhry.ihx | ../../makebin/makebin > dhry.rom
+dhry.gb: dhry.c
+ $(CC) $(CFLAGS) dhry.c
-dhry.s: dhry.c
- $(CC) $(CFLAGS) -S -o dhry.s 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
native:
gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
-dhry.c:
-
clean:
clean:
- rm -f *~ dhry *.o *.gb
+ rm -f *~ dhry *.o *.gb
*.ihx *.rel *.dump* *.lst *.sym *.map *.asm *.bin *.gb