source: trunk/softs/soft_sort_giet/Makefile @ 629

Last change on this file since 629 was 626, checked in by cfuguet, 11 years ago

Introducing generic soft_sort_giet application for the
GIET nano-kernel.

It uses the number of clusters and the number of processors
defined in the hard_config.h file to deduce the number of
threads executing the application.

  • Property svn:executable set to *
File size: 796 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         main.o
10
11CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb
12
13GIET =  ../giet_tsar
14
15bin.soft: $(OBJS) ldscript
16        $(LD) -o $@ -T ldscript $(OBJS)
17        $(DU) -D $@ > $@.txt
18
19reset.o: $(GIET)/reset.S hard_config.h
20        $(CC) -I. $(CFLAGS) -c -o $@ $<
21        $(DU) -D $@ > $@.txt
22
23giet.o: $(GIET)/giet.S hard_config.h
24        $(CC) -I. $(CFLAGS) -c -o $@ $<
25        $(DU) -D $@ > $@.txt
26
27stdio.o: $(GIET)/stdio.c hard_config.h
28        $(CC) -I. $(CFLAGS) -c -o $@ $<
29        $(DU) -D $@ > $@.txt
30
31main.o: main.c hard_config.h
32        $(CC) -I. $(CFLAGS) -I$(GIET) -c -o $@ $<
33        $(DU) -D $@ > $@.txt
34
35clean:
36        rm -f *.o bin.soft *.txt core term* temp
Note: See TracBrowser for help on using the repository browser.