disable -fPIC for the GC for performance reasons
[ghc-hetmet.git] / rts / ghc.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 #      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 #      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 # -----------------------------------------------------------------------------
14 # Building the RTS
15
16 # We build the RTS with stage 1
17 rts_dist_HC = $(GHC_STAGE1)
18
19 # merge GhcLibWays and GhcRTSWays but strip out duplicates
20 rts_WAYS = $(GhcLibWays) $(filter-out $(GhcLibWays),$(GhcRTSWays))
21 rts_dist_WAYS = $(rts_WAYS)
22
23 ALL_RTS_LIBS = rts/dist/build/libHSrtsmain.a \
24                $(foreach way,$(rts_WAYS),rts/dist/build/libHSrts$($(way)_libsuf))
25 all_rts : $(ALL_RTS_LIBS)
26
27 # -----------------------------------------------------------------------------
28 # Defining the sources
29
30 ALL_DIRS = hooks parallel sm eventlog
31
32 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
33 ALL_DIRS += win32
34 else
35 ALL_DIRS += posix
36 endif
37
38 EXCLUDED_SRCS += rts/Main.c
39 EXCLUDED_SRCS += rts/parallel/SysMan.c
40 EXCLUDED_SRCS += rts/dyn-wrapper.c
41 EXCLUDED_SRCS += $(wildcard rts/Vis*.c)
42
43 rts_C_SRCS = $(filter-out $(EXCLUDED_SRCS),$(wildcard rts/*.c $(foreach dir,$(ALL_DIRS),rts/$(dir)/*.c)))
44 rts_CMM_SRCS = $(wildcard rts/*.cmm)
45
46 # Don't compile .S files when bootstrapping a new arch
47 ifeq "$(TARGETPLATFORM)" "$(HOSTPLATFORM)"
48 ifneq "$(findstring $(TargetArch_CPP), powerpc powerpc64)" ""
49 rts_S_SRCS += rts/AdjustorAsm.S
50 else
51 ifneq "$(findstring $(TargetOS_CPP), darwin)" ""
52 rts_S_SRCS += rts/AdjustorAsm.S
53 endif
54 endif
55 endif
56
57 ifeq "$(GhcUnregisterised)" "YES"
58 GENAPPLY_OPTS = -u
59 endif
60
61 rts_AUTO_APPLY_CMM = rts/dist/build/AutoApply.cmm
62
63 $(rts_AUTO_APPLY_CMM): $(GENAPPLY_INPLACE)
64         "$(GENAPPLY_INPLACE)" >$@
65
66 rts/dist/build/sm/Evac_thr.c : rts/sm/Evac.c | $$(dir $$@)/.
67         cp $< $@
68 rts/dist/build/sm/Scav_thr.c : rts/sm/Scav.c | $$(dir $$@)/.
69         cp $< $@
70
71 rts_H_FILES = $(wildcard includes/*.h) $(wildcard rts/*.h)
72
73 ifeq "$(HaveDtrace)" "YES"
74 DTRACEPROBES_H = rts/dist/build/RtsProbes.h
75 rts_H_FILES += $(DTRACEPROBES_H)
76 endif
77
78 # collect the -l flags that we need to link the rts dyn lib.
79 rts/libs.depend : $(GHC_PKG_INPLACE)
80         "$(GHC_PKG_INPLACE)" field rts extra-libraries \
81           | sed -e 's/^extra-libraries: //' -e 's/\([a-z0-9]*\)[ ]*/-l\1 /g' > $@
82
83
84 # ----------------------------------------------------------------------------
85 # On Windows, as the RTS and base libraries have recursive imports,
86 #       we have to break the loop with "import libraries".
87 #       These are made from rts/win32/libHS*.def which contain lists of
88 #       all the symbols in those libraries used by the RTS.
89 #
90 ifneq "$$(findstring dyn, $1)" ""
91 ifeq  "$(HOSTPLATFORM)" "i386-unknown-mingw32" 
92
93 ALL_RTS_DEF_LIBNAMES    = base ghc-prim
94 ALL_RTS_DEF_LIBS        = \
95         rts/dist/build/win32/libHSbase.dll.a \
96         rts/dist/build/win32/libHSghc-prim.dll.a \
97         rts/dist/build/win32/libHSffi.dll.a 
98
99 # -- import libs for the regular Haskell libraries
100 define make-importlib-def # args $1 = lib name
101 rts/dist/build/win32/libHS$1.def : rts/win32/libHS$1.def
102         cat rts/win32/libHS$1.def \
103                 | sed "s/@LibVersion@/$$(libraries/$1_dist-install_VERSION)/" \
104                 | sed "s/@ProjectVersion@/$(ProjectVersion)/" \
105                 > rts/dist/build/win32/libHS$1.def
106
107 rts/dist/build/win32/libHS$1.dll.a : rts/dist/build/win32/libHS$1.def
108         "$$(DLLTOOL)"   -d rts/dist/build/win32/libHS$1.def \
109                         -l rts/dist/build/win32/libHS$1.dll.a
110 endef
111 $(foreach lib,$(ALL_RTS_DEF_LIBNAMES),$(eval $(call make-importlib-def,$(lib))))
112
113
114 # -- import libs for libffi
115 rts/dist/build/win32/libHSffi.def : rts/win32/libHSffi.def
116         cat rts/win32/libHSffi.def \
117                 | sed "s/@ProjectVersion@/$(ProjectVersion)/" \
118                 > rts/dist/build/win32/libHSffi.def
119
120 rts/dist/build/win32/libHSffi.dll.a : rts/dist/build/win32/libHSffi.def
121         "$(DLLTOOL)"    -d rts/dist/build/win32/libHSffi.def \
122                         -l rts/dist/build/win32/libHSffi.dll.a
123 endif
124 endif
125
126
127 #-----------------------------------------------------------------------------
128 # Building one way
129 define build-rts-way # args: $1 = way
130
131 ifneq "$$(BINDIST)" "YES"
132
133 # The per-way CC_OPTS
134 ifneq "$$(findstring debug, $1)" ""
135 rts_dist_$1_HC_OPTS =
136 rts_dist_$1_CC_OPTS = -g -O0
137 else
138 rts_dist_$1_HC_OPTS = $$(GhcRtsHcOpts)
139 rts_dist_$1_CC_OPTS = $$(GhcRtsCcOpts)
140 endif
141
142 ifneq "$$(findstring thr, $1)" ""
143 rts_$1_EXTRA_C_SRCS  =  rts/dist/build/sm/Evac_thr.c rts/dist/build/sm/Scav_thr.c
144 endif
145
146 $(call distdir-way-opts,rts,dist,$1)
147 $(call c-suffix-rules,rts,dist,$1,YES)
148 $(call cmm-suffix-rules,rts,dist,$1)
149 $(call hs-suffix-rules-srcdir,rts,dist,$1,$$(dir))
150 # hs-suffix-rules-srcdir is needed when BootingFromHc to get the .hc rules
151
152 rts_$1_LIB_NAME = libHSrts$$($1_libsuf)
153 rts_$1_LIB = rts/dist/build/$$(rts_$1_LIB_NAME)
154
155 rts_$1_C_OBJS   = $$(patsubst rts/%.c,rts/dist/build/%.$$($1_osuf),$$(rts_C_SRCS)) $$(patsubst %.c,%.$$($1_osuf),$$(rts_$1_EXTRA_C_SRCS))
156 rts_$1_S_OBJS   = $$(patsubst rts/%.S,rts/dist/build/%.$$($1_osuf),$$(rts_S_SRCS))
157 rts_$1_CMM_OBJS = $$(patsubst rts/%.cmm,rts/dist/build/%.$$($1_osuf),$$(rts_CMM_SRCS)) $$(patsubst %.cmm,%.$$($1_osuf),$$(rts_AUTO_APPLY_CMM))
158
159 rts_$1_OBJS = $$(rts_$1_C_OBJS) $$(rts_$1_S_OBJS) $$(rts_$1_CMM_OBJS)
160
161 rts_dist_$1_CC_OPTS += -DRtsWay=$$(DQ)rts_$1$$(DQ)
162
163 # Making a shared library for the RTS.
164 ifneq "$$(findstring dyn, $1)" ""
165 ifeq "$$(HOSTPLATFORM)" "i386-unknown-mingw32"
166 $$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend
167         "$$(RM)" $$(RM_OPTS) $$@
168         "$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
169           -no-auto-link-packages `cat rts/libs.depend` $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) -o $$@
170 else
171 $$(rts_$1_LIB) : $$(rts_$1_OBJS) rts/libs.depend
172         "$$(RM)" $$(RM_OPTS) $$@
173         "$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
174           -no-auto-link-packages `cat rts/libs.depend` $$(rts_$1_OBJS) -o $$@
175 ifeq "$$(darwin_TARGET_OS)" "1"
176         # Ensure library's install name is correct before anyone links with it.
177         install_name_tool -id $(ghclibdir)/$$(rts_$1_LIB_NAME) $$@
178 endif
179 endif
180 else
181 $$(rts_$1_LIB) : $$(rts_$1_OBJS)
182         "$$(RM)" $$(RM_OPTS) $$@
183         echo $$(rts_$1_OBJS) | "$$(XARGS)" $$(XARGS_OPTS) "$$(AR)" $$(AR_OPTS) $$(EXTRA_AR_ARGS) $$@
184 endif
185
186 endif
187
188 endef
189
190 # And expand the above for each way:
191 $(foreach way,$(rts_WAYS),$(eval $(call build-rts-way,$(way))))
192
193 #-----------------------------------------------------------------------------
194 # Flags for compiling every file
195
196 # We like plenty of warnings.
197 WARNING_OPTS += -Wall
198 ifeq "$(GccLT34)" "YES"
199 WARNING_OPTS += -W
200 else
201 WARNING_OPTS += -Wextra
202 endif
203 WARNING_OPTS += -Wstrict-prototypes 
204 WARNING_OPTS += -Wmissing-prototypes 
205 WARNING_OPTS += -Wmissing-declarations
206 WARNING_OPTS += -Winline
207 WARNING_OPTS += -Waggregate-return
208 WARNING_OPTS += -Wpointer-arith
209 WARNING_OPTS += -Wmissing-noreturn
210 WARNING_OPTS += -Wnested-externs
211 WARNING_OPTS += -Wredundant-decls 
212
213 # These ones are hard to avoid:
214 #WARNING_OPTS += -Wconversion
215 #WARNING_OPTS += -Wbad-function-cast
216 #WARNING_OPTS += -Wshadow
217 #WARNING_OPTS += -Wcast-qual
218
219 # This one seems buggy on GCC 4.1.2, which is the only GCC version we 
220 # have that can bootstrap the SPARC build. We end up with lots of supurious
221 # warnings of the form "cast increases required alignment of target type".
222 # Some legitimate warnings can be fixed by adding an intermediate cast to
223 # (void*), but we get others in rts/sm/GCUtils.c concerning the gct var
224 # that look innocuous to me. We could enable this again once we deprecate
225 # support for registerised builds on this arch. -- BL 2010/02/03
226 # WARNING_OPTS += -Wcast-align
227
228 STANDARD_OPTS += -Iincludes -Irts
229 # COMPILING_RTS is only used when building Win32 DLL support.
230 STANDARD_OPTS += -DCOMPILING_RTS
231
232 # HC_OPTS is included in both .c and .cmm compilations, whereas CC_OPTS is
233 # only included in .c compilations.  HC_OPTS included the WAY_* opts, which
234 # must be included in both types of compilations.
235
236 rts_CC_OPTS += $(WARNING_OPTS)
237 rts_CC_OPTS += $(STANDARD_OPTS)
238
239 rts_HC_OPTS += $(STANDARD_OPTS) -package-name rts
240
241 ifneq "$(GhcWithSMP)" "YES"
242 rts_CC_OPTS += -DNOSMP
243 rts_HC_OPTS += -optc-DNOSMP
244 endif
245
246 ifeq "$(UseLibFFIForAdjustors)" "YES"
247 rts_CC_OPTS += -DUSE_LIBFFI_FOR_ADJUSTORS
248 endif
249
250 # Mac OS X: make sure we compile for the right OS version
251 rts_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS)
252 rts_HC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS))
253 rts_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS))
254
255 # Otherwise the stack-smash handler gets triggered.
256 ifneq "$(findstring $(TargetOS_CPP), darwin openbsd)" ""
257 rts_HC_OPTS += -optc-fno-stack-protector
258 endif
259
260 # We *want* type-checking of hand-written cmm.
261 rts_HC_OPTS += -dcmm-lint 
262
263 # -fno-strict-aliasing is required for the runtime, because we often
264 # use a variety of types to represent closure pointers (StgPtr,
265 # StgClosure, StgMVar, etc.), and without -fno-strict-aliasing gcc is
266 # allowed to assume that these pointers do not alias.  eg. without
267 # this flag we get problems in sm/Evac.c:copy() with gcc 3.4.3, the
268 # upd_evacee() assigments get moved before the object copy.
269 rts_CC_OPTS += -fno-strict-aliasing
270
271 rts_CC_OPTS += -fno-common
272
273 ifeq "$(BeConservative)" "YES"
274 rts_CC_OPTS += -DBE_CONSERVATIVE
275 endif
276
277 #-----------------------------------------------------------------------------
278 # Flags for compiling specific files
279
280 # XXX DQ is now the same on all platforms, so get rid of it
281 DQ = \"
282
283 # If RtsMain.c is built with optimisation then the SEH exception stuff on
284 # Windows gets confused.
285 # This has to be in HC rather than CC opts, as otherwise there's a
286 # -optc-O2 that comes after it.
287 rts/RtsMain_HC_OPTS += -optc-O0
288
289 rts/RtsMessages_CC_OPTS += -DProjectVersion=$(DQ)$(ProjectVersion)$(DQ)
290 rts/RtsUtils_CC_OPTS += -DProjectVersion=$(DQ)$(ProjectVersion)$(DQ)
291 #
292 rts/RtsUtils_CC_OPTS += -DHostPlatform=$(DQ)$(HOSTPLATFORM)$(DQ)
293 rts/RtsUtils_CC_OPTS += -DHostArch=$(DQ)$(HostArch_CPP)$(DQ)
294 rts/RtsUtils_CC_OPTS += -DHostOS=$(DQ)$(HostOS_CPP)$(DQ)
295 rts/RtsUtils_CC_OPTS += -DHostVendor=$(DQ)$(HostVendor_CPP)$(DQ)
296 #
297 rts/RtsUtils_CC_OPTS += -DBuildPlatform=$(DQ)$(BUILDPLATFORM)$(DQ)
298 rts/RtsUtils_CC_OPTS += -DBuildArch=$(DQ)$(BuildArch_CPP)$(DQ)
299 rts/RtsUtils_CC_OPTS += -DBuildOS=$(DQ)$(BuildOS_CPP)$(DQ)
300 rts/RtsUtils_CC_OPTS += -DBuildVendor=$(DQ)$(BuildVendor_CPP)$(DQ)
301 #
302 rts/RtsUtils_CC_OPTS += -DTargetPlatform=$(DQ)$(TARGETPLATFORM)$(DQ)
303 rts/RtsUtils_CC_OPTS += -DTargetArch=$(DQ)$(TargetArch_CPP)$(DQ)
304 rts/RtsUtils_CC_OPTS += -DTargetOS=$(DQ)$(TargetOS_CPP)$(DQ)
305 rts/RtsUtils_CC_OPTS += -DTargetVendor=$(DQ)$(TargetVendor_CPP)$(DQ)
306 #
307 rts/RtsUtils_CC_OPTS += -DGhcUnregisterised=$(DQ)$(GhcUnregisterised)$(DQ)
308 rts/RtsUtils_CC_OPTS += -DGhcEnableTablesNextToCode=$(DQ)$(GhcEnableTablesNextToCode)$(DQ)
309
310 # Compile various performance-critical pieces *without* -fPIC -dynamic
311 # even when building a shared library.  If we don't do this, then the
312 # GC runs about 50% slower on x86 due to the overheads of PIC.  The
313 # cost of doing this is a little runtime linking and less sharing, but
314 # not much.
315 #
316 # On x86_64 this doesn't work, because all objects in a shared library
317 # must be compiled with -fPIC (since the 32-bit relocations generated
318 # by the default small memory can't be resolved at runtime).  So we
319 # only do this on i386.
320
321 ifeq "$(TargetArch_CPP)" "i386"
322 rts/sm/Evac_HC_OPTS           += -fno-PIC
323 rts/sm/Evac_thr_HC_OPTS       += -fno-PIC
324 rts/sm/Scav_HC_OPTS           += -fno-PIC
325 rts/sm/Scav_thr_HC_OPTS       += -fno-PIC
326 rts/sm/Compact_HC_OPTS        += -fno-PIC
327 rts/sm/GC_HC_OPTS             += -fno-PIC
328
329 # -static is also necessary for these bits, otherwise the NCG
330 # -generates dynamic references:
331 rts/Updates_HC_OPTS += -fno-PIC -static
332 rts/StgMiscClosures_HC_OPTS += -fno-PIC -static
333 rts/PrimOps_HC_OPTS += -fno-PIC -static
334 rts/Apply_HC_OPTS += -fno-PIC -static
335 rts/dist/build/AutoApply_HC_OPTS += -fno-PIC -static
336 endif
337
338 # ffi.h triggers prototype warnings, so disable them here:
339 rts/Interpreter_CC_OPTS += -Wno-strict-prototypes
340 rts/Adjustor_CC_OPTS    += -Wno-strict-prototypes
341 rts/sm/Storage_CC_OPTS  += -Wno-strict-prototypes
342
343 # inlining warnings happen in Compact
344 rts/sm/Compact_CC_OPTS += -Wno-inline
345
346 # emits warnings about call-clobbered registers on x86_64
347 rts/StgCRun_CC_OPTS += -w
348
349 rts/RetainerProfile_CC_OPTS += -w
350 rts/RetainerSet_CC_OPTS += -Wno-format
351 # On Windows:
352 rts/win32/ConsoleHandler_CC_OPTS += -w
353 rts/win32/ThrIOManager_CC_OPTS += -w
354 # The above warning supression flags are a temporary kludge.
355 # While working on this module you are encouraged to remove it and fix
356 # any warnings in the module. See
357 #     http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
358 # for details
359
360 # Without this, thread_obj will not be inlined (at least on x86 with GCC 4.1.0)
361 rts/sm/Compact_CC_OPTS += -finline-limit=2500
362
363 # -O3 helps unroll some loops (especially in copy() with a constant argument).
364 rts/sm/Evac_CC_OPTS += -funroll-loops
365 rts/dist/build/sm/Evac_thr_HC_OPTS += -optc-funroll-loops
366
367 # These files are just copies of sm/Evac.c and sm/Scav.c respectively,
368 # but compiled with -DPARALLEL_GC.
369 rts/dist/build/sm/Evac_thr_CC_OPTS += -DPARALLEL_GC -Irts/sm
370 rts/dist/build/sm/Scav_thr_CC_OPTS += -DPARALLEL_GC -Irts/sm
371
372 #-----------------------------------------------------------------------------
373 # Add PAPI library if needed
374
375 ifeq "$(GhcRtsWithPapi)" "YES"
376
377 rts_CC_OPTS             += -DUSE_PAPI
378
379 rts_PACKAGE_CPP_OPTS    += -DUSE_PAPI
380 rts_PACKAGE_CPP_OPTS    += -DPAPI_INCLUDE_DIR=$(PapiIncludeDir)
381 rts_PACKAGE_CPP_OPTS    += -DPAPI_LIB_DIR=$(PapiLibDir)
382
383 ifneq "$(PapiIncludeDir)" ""
384 rts_HC_OPTS     += -I$(PapiIncludeDir)
385 rts_CC_OPTS     += -I$(PapiIncludeDir)
386 rts_HSC2HS_OPTS += -I$(PapiIncludeDir)
387 endif
388 ifneq "$(PapiLibDirs)" ""
389 rts_LD_OPTS     += -L$(PapiLibDirs)
390 endif
391
392 else # GhcRtsWithPapi==YES
393
394 rts_PACKAGE_CPP_OPTS += -DPAPI_INCLUDE_DIR=""
395 rts_PACKAGE_CPP_OPTS += -DPAPI_LIB_DIR=""
396
397 endif
398
399 # -----------------------------------------------------------------------------
400 # dependencies
401
402 rts_WAYS_DASHED = $(subst $(space),,$(patsubst %,-%,$(strip $(rts_WAYS))))
403 rts_dist_depfile_base = rts/dist/build/.depend$(rts_WAYS_DASHED)
404
405 rts_dist_C_SRCS  = $(rts_C_SRCS) $(rts_thr_EXTRA_C_SRCS)
406 rts_dist_S_SRCS =  $(rts_S_SRCS)
407 rts_dist_C_FILES = $(rts_C_SRCS) $(rts_thr_EXTRA_C_SRCS) $(rts_S_SRCS)
408
409 # Hack: we define every way-related option here, so that we get (hopefully)
410 # a superset of the dependencies.  To do this properly, we should generate
411 # a different set of dependencies for each way.  Further hack: PROFILING an
412
413 # TICKY_TICKY can't be used together, so we omit TICKY_TICKY for now.
414 rts_dist_MKDEPENDC_OPTS += -DPROFILING -DTHREADED_RTS -DDEBUG
415
416 ifeq "$(HaveDtrace)" "YES"
417
418 rts_dist_MKDEPENDC_OPTS += -Irts/dist/build
419
420 endif
421
422 $(eval $(call build-dependencies,rts,dist,1))
423
424 $(rts_dist_depfile_c_asm) : libffi/dist-install/build/ffi.h $(DTRACEPROBES_H)
425
426 #-----------------------------------------------------------------------------
427 # libffi stuff
428
429 rts_CC_OPTS     += -Ilibffi/build/include
430 rts_HC_OPTS     += -Ilibffi/build/include
431 rts_HSC2HS_OPTS += -Ilibffi/build/include
432 rts_LD_OPTS     += -Llibffi/build/include
433
434 # -----------------------------------------------------------------------------
435 # compile generic patchable dyn-wrapper
436
437 DYNWRAPPER_SRC = rts/dyn-wrapper.c
438 DYNWRAPPER_PROG = rts/dyn-wrapper$(exeext)
439 $(DYNWRAPPER_PROG): $(DYNWRAPPER_SRC)
440         "$(HC)" -cpp -optc-include -optcdyn-wrapper-patchable-behaviour.h $(INPLACE_EXTRA_FLAGS) $< -o $@
441
442 # -----------------------------------------------------------------------------
443 # compile dtrace probes if dtrace is supported
444
445 ifeq "$(HaveDtrace)" "YES"
446
447 rts_CC_OPTS             += -DDTRACE
448 rts_HC_OPTS             += -DDTRACE
449
450 DTRACEPROBES_SRC = rts/RtsProbes.d
451 $(DTRACEPROBES_H): $(DTRACEPROBES_SRC) | $(dir $@)/.
452         "$(DTRACE)" $(filter -I%,$(rts_CC_OPTS)) -C -h -o $@ -s $<
453
454 endif
455
456 # -----------------------------------------------------------------------------
457 # build the static lib containing the C main symbol
458
459 ifneq "$(BINDIST)" "YES"
460 rts/dist/build/libHSrtsmain.a : rts/dist/build/Main.o
461         "$(AR)" $(AR_OPTS) $(EXTRA_AR_ARGS) $@ $<
462 endif
463
464 # -----------------------------------------------------------------------------
465 # The RTS package config
466
467 # If -DDEBUG is in effect, adjust package conf accordingly..
468 ifneq "$(strip $(filter -optc-DDEBUG,$(GhcRtsHcOpts)))" ""
469 rts_PACKAGE_CPP_OPTS += -DDEBUG
470 endif
471
472 ifeq "$(HaveLibMingwEx)" "YES"
473 rts_PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX
474 endif
475
476 $(eval $(call manual-package-config,rts))
477
478 ifneq "$(BootingFromHc)" "YES"
479 rts/package.conf.inplace : $(includes_H_CONFIG) $(includes_H_PLATFORM)
480 endif
481
482 # -----------------------------------------------------------------------------
483 # installing
484
485 INSTALL_LIBS += $(ALL_RTS_LIBS)
486
487 # -----------------------------------------------------------------------------
488 # cleaning
489
490 $(eval $(call clean-target,rts,dist,rts/dist))
491
492 BINDIST_EXTRAS += rts/package.conf.in
493 BINDIST_EXTRAS += $(ALL_RTS_LIBS)
494