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