Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6446 GerdtR 1
Compiler                = gcc
2
Linker					= kos32-ld
3
 
4
Includes 		= -I d:\TEMP\mprog\kos\includes
5
 
6
Compiler_Options       = -c -fno-exceptions -D_KOS_
7
 
8
Exe_file                = cmm.kex
9
 
10
 
11
Path_Libs		= -Ld:/TEMP/Dev-Cpp/lib/kos
12
#-Ld:/TEMP/Dev-Cpp/lib/gcc/mingw32/3.4.2 -Ld:/TEMP/Dev-Cpp/lib/gcc -Ld:/TEMP/Dev-Cpp/lib -Ld:/TEMP/Dev-Cpp/lib
13
 
14
Add_Libs		=
15
 
16
Link_Libs		= -lc -lgcc
17
 
18
My_Libs	 		= main.o port.o toka.o tokb.o tokc.o toke.o tokr.o errors.o debug.o outobj.o outpe.o disasm.o switch.o outle.o pointer.o new_type.o class.o res.o optreg.o libobj.o
19
 
20
####################
21
## Makefile rules ##
22
####################
23
 
24
all        : $(Exe_file)
25
 
26
$(Exe_file) : $(My_Libs)
27
	$(Linker) -o cmm.kex -static -nostdlib -T static.lds --stack 0x100000 $(Path_Libs) $(Add_Libs) $(My_Libs) $(Link_Libs)
28
	objcopy cmm.kex -O binary
29
	kpack cmm.kex
30
 
31
clean:
32
	rm *.o
33
 
34
 
35
# next are the exceptions that don't have to be compiled with the /zu option
36
# since they will never be called from a interrupt. hey.. I _tried_ to find
37
# a clean solution..
38
 
39
main.o :  main.cpp
40
	$(Compiler) $(Compiler_Options) $<
41
 
42
toka.o :  toka.cpp
43
	$(Compiler) $(Compiler_Options) $<
44
 
45
tokb.o :  tokb.cpp
46
	$(Compiler) $(Compiler_Options) $<
47
 
48
tokc.o :  tokc.cpp
49
	$(Compiler) $(Compiler_Options) $<
50
 
51
toke.o :  toke.cpp
52
	$(Compiler) $(Compiler_Options) $<
53
 
54
tokr.o :  tokr.cpp
55
	$(Compiler) $(Compiler_Options) $<
56
 
57
errors.o :errors.cpp
58
	$(Compiler) $(Compiler_Options) $<
59
 
60
debug.o : debug.cpp
61
	$(Compiler) $(Compiler_Options) $<
62
 
63
outobj.o : outobj.cpp
64
	$(Compiler) $(Compiler_Options) $<
65
 
66
outpe.o : outpe.cpp
67
	$(Compiler) $(Compiler_Options) $<
68
 
69
disasm.o : disasm.cpp
70
	$(Compiler) $(Compiler_Options) $<
71
 
72
switch.o : switch.cpp
73
	$(Compiler) $(Compiler_Options) $<
74
 
75
outle.o : outle.cpp
76
	$(Compiler) $(Compiler_Options) $<
77
 
78
pointer.o : pointer.cpp
79
	$(Compiler) $(Compiler_Options) $<
80
 
81
new_type.o : new_type.cpp
82
	$(Compiler) $(Compiler_Options) $<
83
 
84
class.o : class.cpp
85
	$(Compiler) $(Compiler_Options) $<
86
 
87
res.o : res.cpp
88
	$(Compiler) $(Compiler_Options) $<
89
 
90
optreg.o : optreg.cpp
91
	$(Compiler) $(Compiler_Options) $<
92
 
93
libobj.o : libobj.cpp
94
	$(Compiler) $(Compiler_Options) $<
95
 
96
port.o: port.cpp
97
	$(Compiler) $(Compiler_Options) $<
98
 
99
.cpp.o:
100
	$(Compiler) $(Compiler_Options) $<
101
 
102
.asm.o:
103
	fasm $<
104