2 # Makefile for simple tests
6 CFLAGS = -mcpu=405 -msoft-float -O2 -g
7 LDFLAGS = -msoft-float -mcpu=405 -g -nostdlib -Wl,-static -Wl,-Map,$@.map
9 TESTS = test_sdram_ocm.elf test_sdram_dram.elf test_flash.elf
12 $(CC) $(CFLAGS) -c -o $@ $*.S
16 TEST_SDRAM_OBJS = start.o tty.o sdram_test.o
17 test_sdram_ocm.elf: ${TEST_SDRAM_OBJS}
18 $(CC) $(LDFLAGS) -Tppc_ocm.ld -o $@ ${TEST_SDRAM_OBJS}
19 test_sdram_dram.elf: ${TEST_SDRAM_OBJS}
20 $(CC) $(LDFLAGS) -Tppc_dram.ld -o $@ ${TEST_SDRAM_OBJS}
22 TEST_FLASH_OBJS = start.o tty.o flash_test.o
23 test_flash.elf: ${TEST_FLASH_OBJS}
24 $(CC) $(LDFLAGS) -Tppc_ocm.ld -o $@ ${TEST_FLASH_OBJS}
27 rm -f *.o *~ ${TESTS} *.map *.elf