source: soft/tp12/correction/Makefile @ 50

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

Two modifications to better support multi-processors architectures :

1/ The _ioc_read() and _ioc_write() functions have been modified
to use the LL/SC instructions when trying to get the _ioc_busy lock.
This was mandatory to share the IOC controler between several processors.

2/ The _fb_read(), _fb_write(), and the _isr_dma have been modified to use
an array of 256 _dma_busy[pid] locks : Each processor must have its own DMA,
controller, as this array is indexed by the proc_id.

File size: 706 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 $@ $<
27        $(DU) -D $@ > $@.txt
28stdio.o: $(GIET)/stdio.c
29        $(CC) $(CFLAGS) -c -o $@ $<
30        $(DU) -D $@ > $@.txt
31
32main.o: main.c
33        $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
34        $(DU) -D $@ > $@.txt
35
36clean:
37        rm -f *.o bin.soft *.txt core *~
38
Note: See TracBrowser for help on using the repository browser.