source: soft/tp8/correction/Makefile @ 24

Last change on this file since 24 was 10, checked in by alain, 14 years ago

sources tp10

File size: 645 bytes
Line 
1LD=mipsel-unknown-elf-ld
2CC=mipsel-unknown-elf-gcc
3AS=mipsel-unknown-elf-as
4DU=mipsel-unknown-elf-objdump
5
6OBJS= reset.o   \
7          giet.o        \
8          stdio.o       \
9          drivers.o     \
10          main.o
11
12CFLAGS= -Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb
13
14GIET= ../../giet
15
16bin.soft: $(OBJS) ldscript
17        $(LD) -o $@ -T ldscript $(OBJS)
18        $(DU) -D $@ > $@.txt
19
20reset.o: reset.s
21        $(AS) -g -mips32 -o $@ $<
22giet.o: $(GIET)/giet.s
23        $(AS) -g -mips32 -o $@ $<
24
25drivers.o: $(GIET)/drivers.c
26        $(CC) $(CFLAGS) -c -o $@ $<
27stdio.o: $(GIET)/stdio.c
28        $(CC) $(CFLAGS) -c -o $@ $<
29
30main.o: main.c
31        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
32
33clean:
34        rm -f *.o bin.soft *.txt core *~
35
Note: See TracBrowser for help on using the repository browser.