/[eiffelstudio]/branches/Eiffel_61/Delivery/studio/config/windows/mingw/config.eif
ViewVC logotype

Contents of /branches/Eiffel_61/Delivery/studio/config/windows/mingw/config.eif

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71342 - (show annotations)
Mon Dec 3 05:31:41 2007 UTC (12 years ago) by manus
File size: 7092 byte(s)
Removed the -s option as otherwise we think that no C compilation is going on.

1 --
2 -- Config.eif for mingw
3 --
4
5 -- Directory separator
6 directory_separator: "/"
7 subcommand_separator: " && "
8 quick_compilation: True
9 smart_checking: False
10
11 -- include_path
12 include_path: "$(INCLUDE_PATH)"
13
14 -- C-compiler
15 cc: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/gcc%""
16 cpp: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/gcc%""
17
18 -- C-linker
19 sharedlink: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/dllwrap%""
20
21 -- optimization flags
22 optimize: "-O2"
23 wkoptimize: "-O0"
24
25 -- compiler flags
26 ccflags: "-imacros eif_config.mingw.h -D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x400 -DNONAMELESSUNION -D_UNICODE -DUNICODE $(ISE_CFLAGS)"
27 mtccflags: "$ccflags -DEIF_THREADS"
28 cppflags: "$ccflags"
29 mtcppflags: "$mtccflags"
30 shared_flags: "-DEIF_USE_DLL"
31 il_flags: "-DEIF_IL_DLL"
32
33 large: ""
34
35 -- linker flags
36 ar: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/ar%""
37 ld: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/ld%""
38 ldflags: ""
39 mtldflags: ""
40 ccldflags: ""
41 console_flags: "-mconsole"
42 windows_flags: "-mwindows"
43 ldsharedflags: ""
44 mtldsharedflags: ""
45
46 -- eiffel run-time specification
47 prefix: "$(ISE_C_COMPILER)/"
48 shared_prefix: "$(ISE_C_COMPILER)/dll_"
49 mt_prefix: "mt"
50 eiflib: "finalized"
51 wkeiflib: "wkbench"
52 boehmgclib: "gc"
53 suffix: ".a"
54 shared_suffix: ".dll"
55 shared_rt_suffix: ".dll"
56
57 -- libraries
58 libs: ""
59 mtlibs: ""
60 sharedlibs: "-luser32 -lwsock32 -ladvapi32 -lgdi32 -lshell32 -lmsimg32 -lcomdlg32 -luuid -lole32 %
61 %-loleaut32 -lcomctl32 -lmpr $(ISE_SHAREDLIBS)"
62
63 mkdep: ""
64
65 -- platform $(MV) command
66 mv: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/cp%""
67 cp: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/cp%""
68
69 ranlib: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/ranlib.exe%""
70
71 -- platform remove command
72 rm: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/rm%" -f"
73 safe_rm: "if [ -f @ ] ; then $(RM) @ ; fi"
74 file_exist: ""
75 rmdir: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/rd%""
76
77 -- make program
78 make: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/make.exe%""
79 make_utility: "$(ISE_EIFFEL)\gcc\$(ISE_PLATFORM)\msys\1.0\bin\make.exe"
80 make_flags: ""
81 command_makefile: "%"for %%i in ($(EXTERNAL_MAKEFILES)) do $(MAKE) -f %%i%""
82
83 dpflags: ""
84
85 continuation: "\"
86
87 appl_make: "$appl.exe: E1/emain.o $(OBJECTS) $appl.res %N%
88 %%T$(COMMAND_MAKEFILE)%N%
89 %%T$(RM) $@%N%
90 %%T$(CC) $(LDFLAGS) $(CCLDFLAGS) -o $appl.exe E1/emain.o $(PRECOMP_OBJECTS) %
91 %$appl.res $(OBJECTS) $(EXTERNALS) $(EIFLIB) $sharedlibs%N%
92 %%N%
93 %../../../$appl.rc:%N%
94 %%Tif [ ! -f ../../../$appl.rc ] ; then $(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/gnu.ico%" ../../../gnu.ico ; fi %N%
95 %%Tif [ ! -f ../../../$appl.rc ] ; then $(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/eiffel.rc%" ../../../$appl.rc ; fi %N%
96 %%N%
97 %$appl.res: ../../../$appl.rc Makefile%N%
98 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/windres%" --preprocessor='%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/cpp.exe%"' -I../../.. ../../../$appl.rc -O coff -o $appl.res%N%
99 %"
100
101 -- precompilation
102 precompile: "driver.exe: E1/emain.o $(OBJECTS) driver.res precomp.lib%N%
103 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/mkdir%" -p $(ISE_C_COMPILER)%N%
104 %%T$(RM) $@%N%
105 %%T$(CC) $(LDFLAGS) $(CCLDFLAGS) -o driver.exe E1/emain.o $(PRECOMP_OBJECTS) %
106 %driver.res $(OBJECTS) $(EXTERNALS) $(EIFLIB) $sharedlibs%N%
107 %%T$(MV) driver.exe $(ISE_C_COMPILER)/driver.exe%N%
108 %%T$(MV) precomp.lib $(ISE_C_COMPILER)/precomp.lib%N%
109 %%T$(RM) driver.exe%N%
110 %%T$(RM) precomp.lib%N%
111 %%N%
112 %driver.res: %N%
113 %%T$(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/eiffel.rc%" driver.rc%N%
114 %%T$(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/gnu.ico%" gnu.ico%N%
115 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/windres%" --preprocessor='%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/cpp.exe%"' driver.rc -O coff -o driver.res%N%
116 %%T$(RM) driver.rc%N%
117 %%T$(RM) gnu.ico%N%
118 %%N%
119 %precomp.lib: $(OBJECTS)%N%
120 %%T$(RM) $@%N%
121 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/ld%" -r -o precomp.lib $(C_OBJECTS) $(EXTERNALS)%N%
122 %%N"
123
124 -- cecil
125 cecil_make: "$(STATIC_CECIL): $(OBJECTS)%N%
126 %%T$(AR) x $(EIFLIB)%N%
127 %%T$(AR) rc $(STATIC_CECIL) $(OBJECTS) $(EXTERNALS) $(PRECOMP_OBJECTS) $(RCECIL)%N%
128 %%T$(RANLIB) $(STATIC_CECIL)%N%
129 %%T$(RM) $(RCECIL)"
130
131 cecil_def: "%
132 %DEF_FILE= c_$appl.def %N%
133 %c_$appl.def: %N%
134 %%T$(RM) $@%N%
135 %%T@echo LIBRARY c_$appl.dll > $@%N%
136 %%T@echo DESCRIPTION %'c_$appl.dll%' >> $@%N%
137 %%T@type %"$(ISE_EIFFEL)/studio/spec/$(ISE_PLATFORM)/templates/cecil.def%" >> $@"
138
139 cecil_dynlib: "\%N%
140 %%T--dlltool-name %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/dlltool%" \%N%
141 %%T--as %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/as%" \%N%
142 %%T--def $(DEF_FILE) --output-lib c_dll_$appl.lib -o $(SHARED_CECIL)%N"
143
144 system_dynlib: "\%N%
145 %%T--dlltool-name %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/dlltool%" \%N%
146 %%T--as %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/as%" \%N%
147 %%T--def $(DEF_FILE) --output-lib dll_$appl.lib -o $(SYSTEM_IN_DYNAMIC_LIB)%N"
148
149 il_system_compilation_line: "%
150 %$(IL_SYSTEM): $(OBJECTS) $(IL_RESOURCE).res%N%
151 %%T$(RM) $(IL_SYSTEM) %N%
152 %%T$(CC) -shared -Wl,--kill-at -o $(IL_SYSTEM) $(OBJECTS) $(SHAREDLIBS) $(EXTERNALS) $(IL_RESOURCE).res%N%
153 %%T$(RM) $(OBJECTS)%N%
154 %%Techo Success > completed.eif%N%N%
155 %../../../$(IL_RESOURCE).rc:%N%
156 %%T$(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/eiffel.rc%" ../../../$(IL_RESOURCE).rc%N%
157 %%N%
158 %$(IL_RESOURCE).res: ../../../$(IL_RESOURCE).rc Makefile%N%
159 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/windres%" --preprocessor='%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/cpp.exe%"' -I ../../../ ../../../$(IL_RESOURCE).rc -O coff -o $(IL_RESOURCE).res%N"
160
161
162 -- done
163 completed: "%Techo done > completed.eif"
164
165 all: "all:: "
166
167 intermediate_file_ext: "o"
168
169 make_intermediate: "%T$(RM) $@%N%
170 %%T$(LD) -r -o $@ $(OBJECTS)%N%T$(CREATE_TEST)"
171
172 -- options below are for config internal use
173 -- mind the spaces!
174
175 no_subs: "!NO!SUBS!"
176
177 -- platform change directory command
178 cd: "cd"
179
180 -- text for remove command
181 rm_text: "RM ="
182
183 -- text for make command
184 make_text: "MAKE"
185
186 -- text for C-compiler command
187 cc_text: "$(CC) $(CFLAGS)"
188
189 cobj_text: ".c.o:"
190 cppobj_text: ".cpp.o:"
191 xobj_text: ".x.o:"
192 xppobj_text: ".xpp.o:"
193
194 obj_text: ".o "
195
196 eobj_text: "$(EOBJ"
197
198 objects__text: "$(OBJECTS)"
199
200 cecil_text: "cecil_make $appl"
201
202 -- platform 'parent' directory
203 updir: ".."
204
205 emain_text: "emain"
206
207 emain_obj_text: "emain.o"
208
209 objects_text: "OBJECTS = "
210 c_objects_text: "C_OBJECTS = "
211
212 eobjects_text: "EOBJECTS = "
213
214 obj_file_ext: "o"
215
216 executable_file_ext: ".exe"
217
218 driver_text: "\driver"
219
220 driver_filename: "driver.exe"
221
222 externals_text: "EXTERNALS"
223
224 externals_continuation_text: "EXTERNALS = \"
225
226 start_test: "if [ ! -f finished ] ; then"
227
228 end_test: "; fi"
229
230 create_test: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/touch%" finished"
231
232 -- Layout variables
233
234 rt_include: "$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/include"
235 rt_lib: "$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/lib"
236 rt_templates: "$ISE_EIFFEL/studio/config/$ISE_PLATFORM/templates"
237 x2c: "$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/x2c.exe"
238

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23