projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use 'ao-dbg' instead of 's51' to communicate with TeleMetrum
[fw/sdcc]
/
support
/
tests
/
dhrystone
/
Makefile
diff --git
a/support/tests/dhrystone/Makefile
b/support/tests/dhrystone/Makefile
index e87bc05025e309d2dd113907c116ddbbe6e7c213..62d194fa2e982ccf6e55d15d24705bac0bb9d051 100644
(file)
--- a/
support/tests/dhrystone/Makefile
+++ b/
support/tests/dhrystone/Makefile
@@
-1,29
+1,30
@@
# Simple Makefile for dhrystone and sdcc
# Simple Makefile for dhrystone and sdcc
+TOPDIR = ../../..
+
+PROC = z80
+
+CC = $(TOPDIR)/bin/sdcc
-CC = /home/michaelh/projects/sdcc/bin/sdcc
# -DNOENUM is here to make the results more predictable
# -DNOENUM is here to make the results more predictable
-CFLAGS = -mz80 -v --dumpall
-CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -DBROKEN_SDCC=0 -DHZ=100
-LIBDIR = /home/michaelh/projects/sdcc/device/lib/z80/
-LD = link-z80
+CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -V -m$(PROC) --profile --dumpall --stack-auto
OBJ = dhry.o
OBJ = dhry.o
-all: dhry
+all: dhry
.bin
-dhry: $(OBJ)
- $(LD) -n -- -i -m -k$(LIBDIR) -lz80.lib \
- -b_CODE=0x200 dhry.ihx $(LIBDIR)crt0.o $(OBJ)
- cat dhry.ihx | ../../makebin/makebin > dhry.rom
+dhry.ihx: dhry.c
+ $(CC) $(CFLAGS) dhry.c
-native:
-
gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry
dhry.c
+dhry.gb: dhry.c
+
$(CC) $(CFLAGS)
dhry.c
-.c.o:
- $(CC) $(CFLAGS) $<
+dhry.c: dhry.h
-dhry.c: $(CC)
+dhry.bin: dhry.ihx
+ cat $< | $(TOPDIR)/bin/makebin > $@
-
clean
:
- rm -r *~ dhry
+
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