source: trunk/softs/soft_transpose_giet/Makefile @ 158

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

Introducing the three sub-directories in the softs directory:

  • giet_tsar
  • soft_filter_giet
  • soft_transpose_giet
File size: 901 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        isr.o \
9        drivers.o \
10        stdio.o \
11        main.o
12
13CFLAGS= -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb
14
15GIET=   /Users/alain/soc/tsar-svn-june-2010/softs/giet_tsar
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        $(DU) -D $@ > $@.txt
24
25giet.o: $(GIET)/giet.s
26        $(AS) -g -mips32 -o $@ $<
27        $(DU) -D $@ > $@.txt
28
29isr.o: $(GIET)/isr.c
30        $(CC) $(CFLAGS) -c -o $@ $<
31        $(DU) -D $@ > $@.txt
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
41main.o: main.c
42        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
43        $(DU) -D $@ > $@.txt
44
45clean:
46        rm -f *.o bin.soft *.txt core *~ proc* term* temp
Note: See TracBrowser for help on using the repository browser.