projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lots.
[fw/sdcc]
/
support
/
tests
/
dhrystone
/
Makefile
diff --git
a/support/tests/dhrystone/Makefile
b/support/tests/dhrystone/Makefile
index f5090adf339523d89702fbf5a5f41afd163c1565..824fac0f2a9705db0d17c860f8a00a65b59cf96e 100644
(file)
--- a/
support/tests/dhrystone/Makefile
+++ b/
support/tests/dhrystone/Makefile
@@
-1,29
+1,28
@@
# Simple Makefile for dhrystone and sdcc
# Simple Makefile for dhrystone and sdcc
-CC = /home/michaelh/projects/sdcc/bin/sdcc
+PROC = gbz80
+PORT = gb
+
+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 = -mgbz80 -v --dumpall
-CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM -DBROKEN_SDCC=0 -DHZ=100
-LIBDIR = /home/michaelh/projects/sdcc/device/lib/z80/
-LD = link-z80
+CFLAGS =
+CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM
+LIBDIR = /home/michaelh/projects/gbdk-lib/build/
+LD = link-$(PROC)
+LDFLAGS = -v
+AS = as-$(PROC)
OBJ = dhry.o
all: dhry
dhry: $(OBJ)
OBJ = dhry.o
all: dhry
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
+ $(CC) -o dhry.gb dhry.o
native:
gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
native:
gcc -g -O2 -DREG= -DNOSTRUCTASSIGN -DNOENUM -o dhry dhry.c
-.c.o:
- $(CC) $(CFLAGS) $<
-
-dhry.c: $(CC)
+dhry.c:
clean:
rm -r *~ dhry
clean:
rm -r *~ dhry
-