/[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 71464 - (show annotations)
Wed Dec 12 05:29:37 2007 UTC (11 years, 11 months ago) by manus
File size: 6918 byte(s)
Merged changes from HEAD rev#71444.

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)/eiffel.rc%" ../../../$appl.rc ; fi %N%
95 %%N%
96 %$appl.res: ../../../$appl.rc Makefile%N%
97 %%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%
98 %"
99
100 -- precompilation
101 precompile: "driver.exe: E1/emain.o $(OBJECTS) driver.res precomp.lib%N%
102 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/mkdir%" -p $(ISE_C_COMPILER)%N%
103 %%T$(RM) $@%N%
104 %%T$(CC) $(LDFLAGS) $(CCLDFLAGS) -o driver.exe E1/emain.o $(PRECOMP_OBJECTS) %
105 %driver.res $(OBJECTS) $(EXTERNALS) $(EIFLIB) $sharedlibs%N%
106 %%T$(MV) driver.exe $(ISE_C_COMPILER)/driver.exe%N%
107 %%T$(MV) precomp.lib $(ISE_C_COMPILER)/precomp.lib%N%
108 %%T$(RM) driver.exe%N%
109 %%T$(RM) precomp.lib%N%
110 %%N%
111 %driver.res: %N%
112 %%T$(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/eiffel.rc%" driver.rc%N%
113 %%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%
114 %%T$(RM) driver.rc%N%
115 %%N%
116 %precomp.lib: $(OBJECTS)%N%
117 %%T$(RM) $@%N%
118 %%T%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/ld%" -r -o precomp.lib $(C_OBJECTS) $(EXTERNALS)%N%
119 %%N"
120
121 -- cecil
122 cecil_make: "$(STATIC_CECIL): $(OBJECTS)%N%
123 %%T$(AR) x $(EIFLIB)%N%
124 %%T$(AR) rc $(STATIC_CECIL) $(OBJECTS) $(EXTERNALS) $(PRECOMP_OBJECTS) $(RCECIL)%N%
125 %%T$(RANLIB) $(STATIC_CECIL)%N%
126 %%T$(RM) $(RCECIL)"
127
128 cecil_def: "%
129 %DEF_FILE= c_$appl.def %N%
130 %c_$appl.def: %N%
131 %%T$(RM) $@%N%
132 %%T@echo LIBRARY c_$appl.dll > $@%N%
133 %%T@echo DESCRIPTION %'c_$appl.dll%' >> $@%N%
134 %%T@type %"$(ISE_EIFFEL)/studio/spec/$(ISE_PLATFORM)/templates/cecil.def%" >> $@"
135
136 cecil_dynlib: "\%N%
137 %%T--dlltool-name %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/dlltool%" \%N%
138 %%T--as %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/as%" \%N%
139 %%T--def $(DEF_FILE) --output-lib c_dll_$appl.lib -o $(SHARED_CECIL)%N"
140
141 system_dynlib: "\%N%
142 %%T--dlltool-name %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/dlltool%" \%N%
143 %%T--as %"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/bin/as%" \%N%
144 %%T--def $(DEF_FILE) --output-lib dll_$appl.lib -o $(SYSTEM_IN_DYNAMIC_LIB)%N"
145
146 il_system_compilation_line: "%
147 %$(IL_SYSTEM): $(OBJECTS) $(IL_RESOURCE).res%N%
148 %%T$(RM) $(IL_SYSTEM) %N%
149 %%T$(CC) -shared -Wl,--kill-at -o $(IL_SYSTEM) $(OBJECTS) $(SHAREDLIBS) $(EXTERNALS) $(IL_RESOURCE).res%N%
150 %%T$(RM) $(OBJECTS)%N%
151 %%Techo Success > completed.eif%N%N%
152 %../../../$(IL_RESOURCE).rc:%N%
153 %%T$(MV) %"$(ISE_EIFFEL)/studio/config/$(ISE_PLATFORM)/$(ISE_C_COMPILER)/eiffel.rc%" ../../../$(IL_RESOURCE).rc%N%
154 %%N%
155 %$(IL_RESOURCE).res: ../../../$(IL_RESOURCE).rc Makefile%N%
156 %%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"
157
158
159 -- done
160 completed: "%Techo done > completed.eif"
161
162 all: "all:: "
163
164 intermediate_file_ext: "o"
165
166 make_intermediate: "%T$(RM) $@%N%
167 %%T$(LD) -r -o $@ $(OBJECTS)%N%T$(CREATE_TEST)"
168
169 -- options below are for config internal use
170 -- mind the spaces!
171
172 no_subs: "!NO!SUBS!"
173
174 -- platform change directory command
175 cd: "cd"
176
177 -- text for remove command
178 rm_text: "RM ="
179
180 -- text for make command
181 make_text: "MAKE"
182
183 -- text for C-compiler command
184 cc_text: "$(CC) $(CFLAGS)"
185
186 cobj_text: ".c.o:"
187 cppobj_text: ".cpp.o:"
188 xobj_text: ".x.o:"
189 xppobj_text: ".xpp.o:"
190
191 obj_text: ".o "
192
193 eobj_text: "$(EOBJ"
194
195 objects__text: "$(OBJECTS)"
196
197 cecil_text: "cecil_make $appl"
198
199 -- platform 'parent' directory
200 updir: ".."
201
202 emain_text: "emain"
203
204 emain_obj_text: "emain.o"
205
206 objects_text: "OBJECTS = "
207 c_objects_text: "C_OBJECTS = "
208
209 eobjects_text: "EOBJECTS = "
210
211 obj_file_ext: "o"
212
213 executable_file_ext: ".exe"
214
215 driver_text: "\driver"
216
217 driver_filename: "driver.exe"
218
219 externals_text: "EXTERNALS"
220
221 externals_continuation_text: "EXTERNALS = \"
222
223 start_test: "if [ ! -f finished ] ; then"
224
225 end_test: "; fi"
226
227 create_test: "%"$(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/msys/1.0/bin/touch%" finished%N%
228 %PATH := $(ISE_EIFFEL)/gcc/$(ISE_PLATFORM)/mingw/libexec/gcc/mingw32/3.4.2;$(PATH)"
229
230 -- Layout variables
231
232 rt_include: "$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/include"
233 rt_lib: "$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/lib"
234 rt_templates: "$ISE_EIFFEL/studio/config/$ISE_PLATFORM/templates"
235 x2c: "$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/x2c.exe"
236

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23