2 RELEASE_DATE:=7 April 2003
6 # Move the configuration defines to makefile.conf
8 CPPFLAGS=-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(RELEASE_DATE)"'
9 CFLAGS=-O -g -Wall $(CPPFLAGS)
13 romcc: romcc.c Makefile
14 $(CC) $(CFLAGS) -o $@ $<
36 TEST_SRCS:=$(patsubst %, tests/%, $(TESTS))
37 TEST_ASM:=$(patsubst %.c, tests/%.S, $(TESTS))
38 TEST_OBJ:=$(patsubst %.c, tests/%.o, $(TESTS))
39 TEST_ELF:=$(patsubst %.c, tests/%.elf, $(TESTS))
41 $(TEST_ASM): %.S: %.c romcc
42 export ALLOC_CHECK_=2; ./romcc -O $< > $@
47 $(TEST_ELF): %.elf: %.o
48 ld -Ttext 0x1000 $< -o $@
53 echo "TEST_SRCS=$(TEST_SRCS)"
54 echo "TEST_ASM=$(TEST_ASM)"
55 echo "TEST_OBJ=$(TEST_OBJ)"
56 echo "TEST_ELF=$(TEST_ELF)"
59 rm -f romcc core $(TEST_ASM) $(TEST_OBJ) $(TEST_ELF)