source: soft/tp18/correction/Makefile @ 82

Last change on this file since 82 was 44, checked in by alain, 13 years ago
File size: 1.0 KB
Line 
1LD=mipsel-unknown-elf-ld
2CC=mipsel-unknown-elf-gcc
3AS=mipsel-unknown-elf-as
4DU=mipsel-unknown-elf-objdump
5
6OBJS=giet.o \
7     reset.o \
8         isr.o \
9         main0.o \
10         main1.o \
11         main2.o \
12         main3.o \
13         stdio.o \
14         drivers.o \
15
16GIET?=../../giet
17
18CFLAGS=-Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb
19
20bin.soft: $(OBJS) ldscript
21        $(LD) -o $@ -T ldscript $(OBJS)
22        $(DU) -D $@ > $@.txt
23
24reset.o: reset.s
25        $(AS) -mips32 -o $@ $<
26
27giet.o: $(GIET)/giet.s
28        $(AS) -mips32 -o $@ $<
29
30isr.o: $(GIET)/isr.s
31        $(AS) -mips32 -o $@ $<
32
33stdio.o: $(GIET)/stdio.c
34        $(CC) $(CFLAGS) -c -o $@ $<
35        $(DU) -D $@ > $@.txt
36
37drivers.o: $(GIET)/drivers.c
38        $(CC) $(CFLAGS) -c -o $@ $<
39        $(DU) -D $@ > $@.txt
40
41main0.o: main0.c
42        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
43        $(DU) -D $@ > $@.txt
44
45main1.o: main1.c
46        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
47        $(DU) -D $@ > $@.txt
48
49main2.o: main2.c
50        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
51        $(DU) -D $@ > $@.txt
52
53main3.o: main3.c
54        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
55        $(DU) -D $@ > $@.txt
56
57clean:
58        rm -f *.o bin.soft *.txt core *~
Note: See TracBrowser for help on using the repository browser.