]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/hal/powerpc/moab/v2_0/sa_tests/Makefile
Initial revision
[karo-tx-redboot.git] / packages / hal / powerpc / moab / v2_0 / sa_tests / Makefile
1 #
2 # Makefile for simple tests
3 #
4
5 CC = powerpc-eabi-gcc
6 CFLAGS = -mcpu=405 -msoft-float -O2 -g
7 LDFLAGS = -msoft-float -mcpu=405 -g -nostdlib -Wl,-static -Wl,-Map,$@.map
8
9 TESTS = test_sdram_ocm.elf test_sdram_dram.elf test_flash.elf
10
11 .S.o:
12         $(CC) $(CFLAGS) -c -o $@ $*.S
13
14 all: ${TESTS}
15
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}
21
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}
25
26 clean:
27         rm -f *.o *~ ${TESTS} *.map *.elf