source: soft/tp14/soft/Makefile @ 40

Last change on this file since 40 was 14, checked in by alain, 14 years ago
File size: 788 bytes
Line 
1
2LD=mipsel-unknown-elf-ld
3CC=mipsel-unknown-elf-gcc
4AS=mipsel-unknown-elf-as
5DU=mipsel-unknown-elf-objdump
6
7OBJS=   giet.o \
8        reset.o \
9        isr.o \
10        main.o \
11        stdio.o \
12        drivers.o \
13
14SYSTEM= /users/cao/alain/giet_2010/
15
16CFLAGS= -Wall -O2 -fno-builtin -fomit-frame-pointer -mips32 -ggdb
17
18bin.soft: $(OBJS) ldscript
19        $(LD) -q -o $@ -T ldscript $(OBJS)
20        $(DU) -D $@ > $@.txt
21
22reset.o: reset.s
23        $(AS) -mips32 -o $@ $<
24
25giet.o: $(SYSTEM)giet.s
26        $(AS) -mips32 -o $@ $<
27
28isr.o: $(SYSTEM)isr.s
29        $(AS) -mips32 -o $@ $<
30
31stdio.o: $(SYSTEM)stdio.c
32        $(CC) $(CFLAGS) -c -o $@ $<
33        $(DU) -D $@ > $@.txt
34
35drivers.o: $(SYSTEM)drivers.c
36        $(CC) $(CFLAGS) -c -o $@ $<
37        $(DU) -D $@ > $@.txt
38
39main.o: main.c
40        $(CC) $(CFLAGS) -I$(SYSTEM) -c -o $@ $<
41        $(DU) -D $@ > $@.txt
42
43clean:
44        rm -f *.o bin.soft *.txt core *~
Note: See TracBrowser for help on using the repository browser.