1 # A Makefile for SDCC targeting the RCM3319 board. Requires SDCC 4.0.4 or later. Earlier SDCC can be used with a crt0 from SDCC 4.0.4 (linking it explicitly and specifiying --no-std-crt0).
3 CC = $(SDCC) $(SDCCFLAGS)
4 SOURCES = c90base.c c90base-data.c c90base-huffman-recursive.c c90base-isort.c c90float.c c90base-huffman_tree.c stdcbench.c c90base-compression.c c90base-huffman-iterative.c c90base-immul.c c90double.c c90lib.c c90lib-lnlc.c c90lib-peep.c c90lib-peep-stm8.c c90lib-htab.c portme.c
5 OBJECTS = $(SOURCES:.c=.rel)
11 stdcbench.ihx: $(OBJECTS)
12 $(CC) *.rel -o stdcbench.ihx
13 cp stdcbench.ihx image.ihx
15 %.rel: %.c *.h portme.h
18 portme.c: examples/portme.c.SDCC-R3KA
19 cp examples/portme.c.SDCC-R3KA portme.c
21 portme.h: examples/portme.h.SDCC-R3KA
22 cp examples/portme.h.SDCC-R3KA portme.h
25 rm -f *.asm *.lst *.rel *.sym *.rst *.map *.lk *.cdb portme.c portme.h