-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 896 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# makefile per la phase 1
#Iommi, Monti
#commands for compiling (CMP) and linking (LNK)
CMP=mipsel-linux-gcc -ansi -pedantic -Wall
LNK=mipsel-linux-ld -T
#paths
path=/usr/local
share=/share/umps2
lib=/lib/umps2
#Objects to be linked
#umpscore.x
umpscore=$(path)$(share)/elf32ltsmip.h.umpscore.x
#crtso.o
crtso=$(path)$(lib)/crtso.o
#libumps.o
libumps=$(path)$(lib)/libumps.o
#Conversion of ELF object command
elf2umps=umps2-elf2umps
#Compilazione Phase1
CP1 : p1test.o asl.o pcb.o
$(LNK) $(umpscore) $(crtso) p1test.o asl.o pcb.o $(libumps) -o kernel
$(elf2umps) -k kernel
p1test.o : include/*.h include/*.e
$(CMP) -I include/ -c p1test.c
asl.o : include/const13.h include/types13.h
$(CMP) -I include/ -c asl.c
pcb.o : include/const13.h include/types13.h
$(CMP) -I include/ -c pcb.c
clean :
rm -f *.o kernel*
rm -f *.umps
cleanall:
make clean
rm -f *.o kernel*
rm -f *.umps