source: soft/tp14/correction/Makefile @ 100

Last change on this file since 100 was 58, checked in by porquet, 13 years ago

change makefile variables

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