Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6446 | GerdtR | 1 | Compiler = gcc |
2 | |||
3 | #Compiler_Options = -c -fno-exceptions -D_UNIX_ |
||
4 | Compiler_Options = -c -fno-exceptions -O2 -D_WIN32_ |
||
5 | |||
6 | #-D: _WIN32_ or _UNIX_ |
||
7 | #-D: for _WIN32_ add -D__CONSOLE__ |
||
8 | |||
9 | Exe_file = cmm |
||
10 | |||
11 | |||
12 | |||
13 | Path_Libs = -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 |
||
14 | |||
15 | Add_Libs = d:/TEMP/Dev-Cpp/lib/gcc/mingw32/3.4.2/crtbegin.o d:/TEMP/Dev-Cpp/lib/crt2.o d:/TEMP/Dev-Cpp/lib/gcc/mingw32/3.4.2/crtend.o |
||
16 | |||
17 | Link_Libs = -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 |
||
18 | |||
19 | My_Libs = main.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 port.o |
||
20 | |||
21 | |||
22 | #Link_Libs = -lmingw32 -lgcc -lmoldname -lmingwex -lmingw32 -lmoldname -lmingwex -lmsvcrt -lgcc -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 |
||
23 | |||
24 | #################### |
||
25 | ## Makefile rules ## |
||
26 | #################### |
||
27 | |||
28 | all : $(Exe_file) |
||
29 | |||
30 | $(Exe_file) : $(My_Libs) |
||
31 | ld -o cmm.exe $(Path_Libs) $(Add_Libs) $(My_Libs) $(Link_Libs) |
||
32 | # $(Compiler) -o $(Exe_file) $(All_Libs) |
||
33 | # ld -o cmm.exe -Bdynamic d:/TEMP/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/crtend.o d:/TEMP/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o d:/TEMP/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o -Ld:/TEMP/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2 -Ld:/TEMP/Dev-Cpp/bin/../lib/gcc -Ld:/TEMP/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../.. -Ld:/TEMP/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../.. main.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 port.o -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lmoldname -lmingwex -lmsvcrt -lgcc |
||
34 | |||
35 | |||
36 | |||
37 | |||
38 | clean: |
||
39 | rm *.o |
||
40 | |||
41 | |||
42 | # next are the exceptions that don't have to be compiled with the /zu option |
||
43 | # since they will never be called from a interrupt. hey.. I _tried_ to find |
||
44 | # a clean solution.. |
||
45 | |||
46 | main.o : main.cpp |
||
47 | $(Compiler) $(Compiler_Options) $< |
||
48 | |||
49 | toka.o : toka.cpp |
||
50 | $(Compiler) $(Compiler_Options) $< |
||
51 | |||
52 | tokb.o : tokb.cpp |
||
53 | $(Compiler) $(Compiler_Options) $< |
||
54 | |||
55 | tokc.o : tokc.cpp |
||
56 | $(Compiler) $(Compiler_Options) $< |
||
57 | |||
58 | toke.o : toke.cpp |
||
59 | $(Compiler) $(Compiler_Options) $< |
||
60 | |||
61 | tokr.o : tokr.cpp |
||
62 | $(Compiler) $(Compiler_Options) $< |
||
63 | |||
64 | errors.o :errors.cpp |
||
65 | $(Compiler) $(Compiler_Options) $< |
||
66 | |||
67 | debug.o : debug.cpp |
||
68 | $(Compiler) $(Compiler_Options) $< |
||
69 | |||
70 | outobj.o : outobj.cpp |
||
71 | $(Compiler) $(Compiler_Options) $< |
||
72 | |||
73 | outpe.o : outpe.cpp |
||
74 | $(Compiler) $(Compiler_Options) $< |
||
75 | |||
76 | disasm.o : disasm.cpp |
||
77 | $(Compiler) $(Compiler_Options) $< |
||
78 | |||
79 | switch.o : switch.cpp |
||
80 | $(Compiler) $(Compiler_Options) $< |
||
81 | |||
82 | outle.o : outle.cpp |
||
83 | $(Compiler) $(Compiler_Options) $< |
||
84 | |||
85 | pointer.o : pointer.cpp |
||
86 | $(Compiler) $(Compiler_Options) $< |
||
87 | |||
88 | new_type.o : new_type.cpp |
||
89 | $(Compiler) $(Compiler_Options) $< |
||
90 | |||
91 | class.o : class.cpp |
||
92 | $(Compiler) $(Compiler_Options) $< |
||
93 | |||
94 | res.o : res.cpp |
||
95 | $(Compiler) $(Compiler_Options) $< |
||
96 | |||
97 | optreg.o : optreg.cpp |
||
98 | $(Compiler) $(Compiler_Options) $< |
||
99 | |||
100 | libobj.o : libobj.cpp |
||
101 | $(Compiler) $(Compiler_Options) $< |
||
102 | |||
103 | port.o: port.cpp |
||
104 | $(Compiler) $(Compiler_Options) $< |
||
105 | |||
106 | .cpp.o: |
||
107 | $(Compiler) $(Compiler_Options) $< |
||
108 | |||
109 | .asm.o: |
||
110 | fasm $<> |