source: trunk/softs/soft_filter_giet/Makefile @ 645

Last change on this file since 645 was 248, checked in by meunier, 12 years ago

Updates in the soft_filter application (bug corrections, formatting, and adaptation to the architecture generic_mmu)

File size: 883 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 = reset.o \
8        giet.o \
9        isr.o \
10        drivers.o \
11        stdio.o \
12        main.o
13
14CFLAGS = -Wall -g -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb
15
16GIET =  ../giet_tsar
17
18bin.soft: $(OBJS) ldscript
19        $(LD) -o $@ -T ldscript $(OBJS)
20        $(DU) -D $@ > $@.txt
21
22reset.o: $(GIET)/reset.s
23        $(AS) -g -mips32 -o $@ $<
24        $(DU) -D $@ > $@.txt
25
26giet.o: $(GIET)/giet.s
27        $(AS) -g -mips32 -o $@ $<
28        $(DU) -D $@ > $@.txt
29
30isr.o: $(GIET)/isr.c
31        $(CC) $(CFLAGS) -c -o $@ $<
32        $(DU) -D $@ > $@.txt
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
42main.o: main.c
43        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
44        $(DU) -D $@ > $@.txt
45
46clean:
47        rm -f *.o bin.soft *.txt core *~ proc* term* temp
Note: See TracBrowser for help on using the repository browser.