source: soft/tp18/correction/Makefile @ 31

Last change on this file since 31 was 25, checked in by porquet, 14 years ago

corrections sur tp18

File size: 1.0 KB
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        main0.o \
11        main1.o \
12        main2.o \
13        main3.o \
14        stdio.o \
15        drivers.o \
16
17GIET= ../../giet
18
19CFLAGS= -Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb
20
21bin.soft: $(OBJS) ldscript
22        $(LD) -q -o $@ -T ldscript $(OBJS)
23        $(DU) -D $@ > $@.txt
24
25reset.o: reset.s
26        $(AS) -mips32 -o $@ $<
27
28giet.o: $(GIET)/giet.s
29        $(AS) -mips32 -o $@ $<
30
31isr.o: $(GIET)/isr.s
32        $(AS) -mips32 -o $@ $<
33
34stdio.o: $(GIET)/stdio.c
35        $(CC) $(CFLAGS) -c -o $@ $<
36        $(DU) -D $@ > $@.txt
37
38drivers.o: $(GIET)/drivers.c
39        $(CC) $(CFLAGS) -c -o $@ $<
40        $(DU) -D $@ > $@.txt
41
42main0.o: main0.c
43        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
44        $(DU) -D $@ > $@.txt
45
46main1.o: main1.c
47        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
48        $(DU) -D $@ > $@.txt
49
50main2.o: main2.c
51        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
52        $(DU) -D $@ > $@.txt
53
54main3.o: main3.c
55        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
56        $(DU) -D $@ > $@.txt
57
58clean:
59        rm -f *.o bin.soft *.txt core *~
Note: See TracBrowser for help on using the repository browser.