~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to bin/MakeProjectCreator/templates/gnu.mpd

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#----------------------------------------------------------------------------
2
 
#       GNU Makefile
3
 
#
4
 
# @file <%project_file%>
5
 
#
6
 
# gnu.mpd,v 1.65 2003/12/15 18:50:46 jwillemsen Exp
7
 
#
8
 
# This file was automatically generated by MPC.  Any changes made directly to
9
 
# this file will be lost the next time it is generated.
10
 
#
11
 
#----------------------------------------------------------------------------
12
 
<%marker(top)%>
13
 
MAKEFILE         = <%project_file%>
14
 
DEPENDENCY_FILE  = .depend.<%project_file%>
15
 
<%if(exename)%>
16
 
BIN_UNCHECKED    = <%exename%>
17
 
<%endif%>
18
 
<%if(staticname)%>
19
 
 
20
 
## LIB may be set to empty later on in this file
21
 
LIB_UNCHECKED    = lib<%staticname%>.a
22
 
LIB              = $(LIB_UNCHECKED)
23
 
<%if(!sharedname)%>
24
 
static_libs_only = 1
25
 
<%endif%>
26
 
<%endif%>
27
 
<%if(sharedname)%>
28
 
 
29
 
## SHLIB may be set to empty later on in this file
30
 
SHLIB_UNCHECKED  = lib<%sharedname%>.$(SOEXT)
31
 
SHLIB            = $(SHLIB_UNCHECKED)
32
 
<%endif%>
33
 
<%if(tao)%>
34
 
 
35
 
ifndef TAO_ROOT
36
 
  TAO_ROOT = $(ACE_ROOT)/TAO
37
 
endif
38
 
ifndef CIAO_ROOT
39
 
  CIAO_ROOT = $(TAO_ROOT)/CIAO
40
 
endif
41
 
<%endif%>
42
 
<%if(idl_files)%>
43
 
 
44
 
TAO_IDL = <%idl_compiler%>
45
 
IDL_FILES =<%foreach(idl_files)%> <%noextension(idl_file)%><%endfor%>
46
 
IDL_SRC = $(foreach ext, C.cpp S.cpp, $(foreach file, $(IDL_FILES), $(file)$(ext)))
47
 
<%endif%>
48
 
 
49
 
<%if(grouped_source_files)%>
50
 
<%foreach(grouped_source_files)%>
51
 
<%grouped_source_file%> = \
52
 
<%foreach(grouped_source_file->files)%>
53
 
  <%noextension(grouped_source_file->file)%><%fornotlast(" \\")%>
54
 
<%endfor%>
55
 
 
56
 
<%endfor%>
57
 
ifndef <%grouped_source_files->component_name%>
58
 
  <%grouped_source_files->component_name%> = \
59
 
<%foreach(grouped_source_files)%>
60
 
    <%grouped_source_file%><%fornotlast(" \\")%>
61
 
<%endfor%>
62
 
endif # <%grouped_source_files->component_name%>
63
 
 
64
 
<%foreach(grouped_source_files)%>
65
 
ifneq (,$(findstring <%grouped_source_file%>, $(<%grouped_source_files->component_name%>)))
66
 
  FILES += $(<%grouped_source_file%>)
67
 
endif # <%grouped_source_file%>
68
 
 
69
 
<%endfor%>
70
 
<%else%>
71
 
FILES = \
72
 
<%foreach(source_files)%>
73
 
  <%noextension(source_file)%><%fornotlast(" \\")%>
74
 
<%endfor%>
75
 
 
76
 
<%endif%>
77
 
<%if(resource_files)%>
78
 
RESOURCES += \
79
 
<%foreach(resource_files)%>
80
 
  <%resource_file%><%fornotlast(" \\")%>
81
 
<%endfor%>
82
 
 
83
 
<%endif%>
84
 
<%vpath%>
85
 
#----------------------------------------------------------------------------
86
 
#       Include macros and targets
87
 
#----------------------------------------------------------------------------
88
 
<%marker(macros)%>
89
 
<%if(exename)%>
90
 
LDLIBS =<%foreach(libs)%> -l<%lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(defaultlibs)%> -l<%defaultlib%><%endfor%>
91
 
<%else%>
92
 
<%if(sharedname)%>
93
 
ACE_SHLIBS =<%foreach(libs)%> -l<%lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(defaultlibs)%> -l<%defaultlib%><%endfor%>
94
 
<%endif%>
95
 
<%endif%>
96
 
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
97
 
## We don't need the ACELIB setting from wrapper_macros.GNU
98
 
ACELIB =
99
 
<%if(tao)%>
100
 
include $(TAO_ROOT)/rules.tao.GNU
101
 
<%endif%>
102
 
 
103
 
# To build multiple executables in the same directory on AIX, it works
104
 
# best to have a template directory per project.
105
 
# The compiler/linker isn't too smart about instantiating templates...
106
 
ifdef TEMPINCDIR
107
 
TEMPINCDIR := $(TEMPINCDIR)/<%project_name%>
108
 
 
109
 
all: $(TEMPINCDIR)
110
 
 
111
 
endif
112
 
<%if(exename)%>
113
 
OUTPUT_DIRECTORY = <%if(install)%><%install%><%else%>.<%endif%>
114
 
<%else%>
115
 
OUTPUT_DIRECTORY = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
116
 
<%endif%>
117
 
all: $(OUTPUT_DIRECTORY)
118
 
 
119
 
$(OUTPUT_DIRECTORY):
120
 
        -@mkdir -p "$(OUTPUT_DIRECTORY)"
121
 
 
122
 
<%if(!exename)%>
123
 
<%if(compname)%>
124
 
CURRENT_COMPONENTS := $(shell sh $(ACE_ROOT)/bin/ace_components <%compname%>)
125
 
<%endif%>
126
 
<%foreach(requires)%>
127
 
ifeq ($(<%require%>),1)
128
 
<%endfor%>
129
 
<%foreach(avoids)%>
130
 
ifneq ($(<%avoid%>),1)
131
 
<%endfor%>
132
 
<%foreach(comps)%>
133
 
ifeq (<%comp%>, $(findstring <%comp%>, $(CURRENT_COMPONENTS)))
134
 
<%endfor%>
135
 
<%foreach(comps)%>
136
 
else
137
 
<%if(staticname)%>
138
 
  LIB   =
139
 
<%endif%>
140
 
<%if(sharedname)%>
141
 
  SHLIB =
142
 
<%endif%>
143
 
  all: comp_warning
144
 
endif
145
 
<%endfor%>
146
 
<%foreach(avoids)%>
147
 
else
148
 
<%if(staticname)%>
149
 
  LIB   =
150
 
<%endif%>
151
 
<%if(sharedname)%>
152
 
  SHLIB =
153
 
<%endif%>
154
 
  all: avoid_warning
155
 
endif
156
 
<%endfor%>
157
 
<%foreach(requires)%>
158
 
else
159
 
<%if(staticname)%>
160
 
  LIB   =
161
 
<%endif%>
162
 
<%if(sharedname)%>
163
 
  SHLIB =
164
 
<%endif%>
165
 
  all: require_warning
166
 
endif
167
 
<%endfor%>
168
 
 
169
 
<%if(tagname)%>
170
 
ifeq (,$(<%tagname%>))
171
 
<%endif%>
172
 
<%foreach(requires)%>
173
 
ifeq ($(<%require%>),1)
174
 
<%endfor%>
175
 
<%foreach(avoids)%>
176
 
ifneq ($(<%avoid%>),1)
177
 
<%endfor%>
178
 
<%foreach(avoids)%>
179
 
else
180
 
<%if(staticname)%>
181
 
  LIB   =
182
 
<%endif%>
183
 
<%if(sharedname)%>
184
 
  SHLIB =
185
 
<%endif%>
186
 
  all: avoid_warning
187
 
endif
188
 
<%endfor%>
189
 
<%foreach(requires)%>
190
 
else
191
 
<%if(staticname)%>
192
 
  LIB   =
193
 
<%endif%>
194
 
<%if(sharedname)%>
195
 
  SHLIB =
196
 
<%endif%>
197
 
  all: require_warning
198
 
endif
199
 
<%endfor%>
200
 
<%if(tagname)%>
201
 
else
202
 
<%foreach(requires)%>
203
 
ifeq ($(<%require%>),1)
204
 
<%endfor%>
205
 
<%foreach(avoids)%>
206
 
ifneq ($(<%avoid%>),1)
207
 
<%endfor%>
208
 
<%foreach(tagchecks)%>
209
 
  ifeq (<%tagcheck%>, $(findstring <%tagcheck%>, $(<%tagname%>)))
210
 
<%endfor%>
211
 
<%foreach(tagchecks)%>
212
 
  else
213
 
    LIB   =
214
 
    SHLIB =
215
 
  endif
216
 
<%endfor%>
217
 
<%foreach(avoids)%>
218
 
else
219
 
  LIB   =
220
 
  SHLIB =
221
 
  all: avoid_warning
222
 
endif
223
 
<%endfor%>
224
 
<%foreach(requires)%>
225
 
else
226
 
  LIB   =
227
 
  SHLIB =
228
 
  all: require_warning
229
 
endif
230
 
<%endfor%>
231
 
endif
232
 
<%endif%>
233
 
<%endif%>
234
 
 
235
 
<%if(exename)%>
236
 
<%if(compname)%>
237
 
CURRENT_COMPONENTS := $(shell sh $(ACE_ROOT)/bin/ace_components <%compname%>)
238
 
<%endif%>
239
 
<%foreach(requires)%>
240
 
ifeq ($(<%require%>),1)
241
 
<%endfor%>
242
 
<%foreach(avoids)%>
243
 
ifneq ($(<%avoid%>),1)
244
 
<%endfor%>
245
 
<%foreach(comps)%>
246
 
ifeq (<%comp%>, $(findstring <%comp%>, $(CURRENT_COMPONENTS)))
247
 
<%endfor%>
248
 
BIN    = $(BIN_UNCHECKED)
249
 
<%foreach(comps)%>
250
 
else
251
 
  all: comp_warning
252
 
endif
253
 
<%endfor%>
254
 
<%foreach(avoids)%>
255
 
else
256
 
  all: avoid_warning
257
 
endif
258
 
<%endfor%>
259
 
<%foreach(requires)%>
260
 
else
261
 
  all: require_warning
262
 
endif
263
 
<%endfor%>
264
 
 
265
 
OBJS   = $(addsuffix .o, $(notdir $(FILES)))
266
 
SRC    = $(addsuffix .cpp, $(FILES))
267
 
<%endif%>
268
 
ifneq (,$(RC))
269
 
  FILES += $(RESOURCES)
270
 
endif
271
 
 
272
 
<%if(sharedname || staticname)%>
273
 
LSRC   = $(addsuffix .cpp, $(FILES))
274
 
<%endif%>
275
 
<%if(!comps)%>
276
 
<%if(tagname)%>
277
 
ifeq (,$(<%tagname%>))
278
 
<%endif%>
279
 
<%if(grouped_source_files)%>
280
 
BUILD += <%grouped_source_files->component_name%>
281
 
<%endif%>
282
 
<%if(tagname)%>
283
 
else
284
 
<%foreach(tagchecks)%>
285
 
  ifeq (<%tagcheck%>, $(findstring <%tagcheck%>, $(<%tagname%>)))
286
 
<%endfor%>
287
 
<%if(grouped_source_files)%>
288
 
    BUILD += <%grouped_source_files->component_name%>
289
 
<%endif%>
290
 
<%foreach(tagchecks)%>
291
 
  endif
292
 
<%endfor%>
293
 
endif
294
 
<%endif%>
295
 
<%else%>
296
 
<%if(grouped_source_files)%>
297
 
<%if(grouped_source_files->component_name)%>
298
 
<%foreach(requires)%>
299
 
ifeq ($(<%require%>),1)
300
 
<%endfor%>
301
 
<%foreach(avoids)%>
302
 
ifneq ($(<%avoid%>),1)
303
 
<%endfor%>
304
 
<%foreach(comps)%>
305
 
ifeq (<%comp%>, $(findstring <%comp%>, $(CURRENT_COMPONENTS)))
306
 
<%endfor%>
307
 
  BUILD += <%grouped_source_files->component_name%>
308
 
<%foreach(comps avoids requires)%>
309
 
endif
310
 
<%endfor%>
311
 
<%endif%>
312
 
<%endif%>
313
 
<%endif%>
314
 
 
315
 
<%if(idl_files)%>
316
 
<%if(exename)%>
317
 
ifneq ($(BIN),)
318
 
<%else%>
319
 
<%if(sharedname)%>
320
 
ifneq ($(SHLIB),)
321
 
<%else%>
322
 
<%if(staticname)%>
323
 
ifneq ($(LIB),)
324
 
<%endif%>
325
 
<%endif%>
326
 
<%endif%>
327
 
all: idl_stubs
328
 
 
329
 
# This rule forces make to run the idl_stubs
330
 
# target before building any of the source files.
331
 
FORCED_IDL_STUBS = <%source_files%>
332
 
<%if(exename)%>
333
 
endif
334
 
<%else%>
335
 
<%if(sharedname)%>
336
 
endif
337
 
<%else%>
338
 
<%if(staticname)%>
339
 
endif
340
 
<%endif%>
341
 
<%endif%>
342
 
<%endif%>
343
 
 
344
 
<%endif%>
345
 
<%marker(circuit)%>
346
 
include $(ACE_ROOT)/include/makeinclude/macros.GNU
347
 
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
348
 
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
349
 
<%if(install)%>
350
 
 
351
 
INSTALL_CHECK = <%install%>
352
 
ifeq ($(INSTALL_CHECK),)
353
 
  INSTALL = $(INSTALL_CHECK)
354
 
else
355
 
ifneq ($(INSTALL_CHECK),.)
356
 
<%if(exename)%>
357
 
  INSBIN  = $(INSTALL_CHECK)
358
 
  INSTALL = $(VBIN:%=$(INSBIN)/%$(EXEEXT))
359
 
  CLEANUP_INSTALL += $(CLEANUP_BIN:%=$(INSBIN)/%$(EXEEXT))
360
 
<%endif%>
361
 
endif
362
 
endif
363
 
<%else%>
364
 
<%if(!exename)%>
365
 
 
366
 
INSTALL_CHECK = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
367
 
ifeq ($(INSTALL_CHECK),.)
368
 
  ifeq ($(PWD),)
369
 
    PWD=$(shell pwd)
370
 
  endif
371
 
  INSLIB = $(PWD)
372
 
else
373
 
  INSLIB  = $(INSTALL_CHECK)
374
 
endif
375
 
<%endif%>
376
 
 
377
 
<%endif%>
378
 
<%if(sharedname || staticname)%>
379
 
include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
380
 
<%endif%>
381
 
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
382
 
<%if(tao)%>
383
 
include $(TAO_ROOT)/taoconfig.mk
384
 
<%endif%>
385
 
 
386
 
<%if(includes)%>
387
 
CPPFLAGS     +=<%foreach(includes)%> -I<%include%><%endfor%>
388
 
<%endif%>
389
 
<%if(macros)%>
390
 
CPPFLAGS     +=<%foreach(macros)%> -D<%macro%><%endfor%>
391
 
<%endif%>
392
 
<%if(idlpreprocessor)%>
393
 
ifeq ($(TAO_IDL_PREPROCESSOR),)
394
 
  CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\"$(strip $(CXX))\"
395
 
else
396
 
  CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\"$(subst \,\,$(TAO_IDL_PREPROCESSOR))\"
397
 
endif
398
 
<%endif%>
399
 
<%if(dynamicflags)%>
400
 
ifeq ($(shared_libs),1)
401
 
  ifneq ($(SHLIB),)
402
 
    CPPFLAGS +=<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
403
 
  endif
404
 
endif
405
 
<%endif%>
406
 
<%if(staticflags)%>
407
 
ifeq ($(static_libs),1)
408
 
  ifneq ($(LIB),)
409
 
    CPPFLAGS +=<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
410
 
  endif
411
 
endif
412
 
<%endif%>
413
 
 
414
 
 
415
 
<%if(libpaths)%>
416
 
LDFLAGS      +=<%foreach(libpaths)%> -L<%libpath%><%endfor%>
417
 
<%endif%>
418
 
 
419
 
<%if(idl_files)%>
420
 
<%if(idlflags)%>
421
 
TAO_IDLFLAGS += <%idlflags%>
422
 
<%endif%>
423
 
<%endif%>
424
 
#----------------------------------------------------------------------------
425
 
#       Local targets
426
 
#----------------------------------------------------------------------------
427
 
<%marker(local)%>
428
 
<%if(comps)%>
429
 
comp_warning:
430
 
        @echo This project will not be built due to one of the following missing components:
431
 
        @echo<%foreach(comps)%> <%comp%><%endfor%>
432
 
 
433
 
<%endif%>
434
 
<%if(requires)%>
435
 
require_warning:
436
 
        @echo This project will not be built due to one of the following missing features:
437
 
        @echo<%foreach(requires)%> <%require%><%endfor%>
438
 
 
439
 
<%endif%>
440
 
<%if(avoids)%>
441
 
avoid_warning:
442
 
        @echo This project will not be built due to one of the following enabled features:
443
 
        @echo<%foreach(avoids)%> <%avoid%><%endfor%>
444
 
 
445
 
<%endif%>
446
 
<%if(custom_types)%>
447
 
<%foreach(custom_types)%>
448
 
<%if(custom_types->libpath)%>
449
 
DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):<%custom_type->libpath%>
450
 
LD_LIBRARY_PATH   := $(LD_LIBRARY_PATH):<%custom_type->libpath%>
451
 
SHLIB_PATH        := $(SHLIB_PATH):<%custom_type->libpath%>
452
 
LIBPATH           := $(LIBPATH):<%custom_type->libpath%>
453
 
PATH              := $(PATH):<%custom_type->libpath%>
454
 
 
455
 
<%endif%>
456
 
<%foreach(custom_type->input_files)%>
457
 
<%if(custom_type->input_file->output_files)%>
458
 
GENERATED_DIRTY +=<%foreach(custom_type->input_file->output_files)%> <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%>
459
 
<%foreach(custom_type->input_file->output_files)%>
460
 
<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%>: <%custom_type->input_file%>
461
 
        <%custom_type->command%> <%if(pch_header)%><%if(custom_type->pch_option)%><%custom_type->pch_option%><%pch_header%> <%endif%><%endif%><%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%custom_type->input_file%> <%if(custom_type->output_option)%><%custom_type->output_option%> $@<%endif%>
462
 
 
463
 
<%endfor%>
464
 
<%endif%>
465
 
<%endfor%>
466
 
<%endfor%>
467
 
ifneq ($(GENERATED_DIRTY),)
468
 
.PRECIOUS: $(GENERATED_DIRTY)
469
 
all: $(GENERATED_DIRTY)
470
 
endif
471
 
 
472
 
<%endif%>
473
 
<%comptarget%>
474
 
<%if(idl_files)%>
475
 
 
476
 
<%foreach(idl_files)%>
477
 
<%if(flag_overrides(idl_file, idlgendir))%>
478
 
ADDITIONAL_IDL_TARGETS += <%flag_overrides(idl_file, idlgendir)%>/<%basenoextension(idl_file)%>C.h
479
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%flag_overrides(idl_file, idlgendir)%>/<%basenoextension(idl_file)%>C.cpp=)
480
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%flag_overrides(idl_file, idlgendir)%>/<%basenoextension(idl_file)%>S.cpp=)
481
 
GENERATED_DIRTY += $(foreach ext, $(IDL_EXT), <%flag_overrides(idl_file, idlgendir)%>/<%basenoextension(idl_file)%>$(ext))
482
 
<%comment(The S.cpp was removed to avoid yet another problem with parallelism.  It doesn't seem necessary since you can't get the S.cpp without the C.cpp)%>
483
 
<%flag_overrides(idl_file, idlgendir)%>/<%basenoextension(idl_file)%>C.h <%flag_overrides(idl_file, idlgendir)%>/<%basenoextension(idl_file)%>C.cpp: <%idl_file%>
484
 
        $(TAO_IDL) -o <%flag_overrides(idl_file, idlgendir)%> <%if(flag_overrides(idl_file, idlflags))%><%flag_overrides(idl_file, idlflags)%><%else%>$(TAO_IDLFLAGS)<%endif%> <%idl_file%>
485
 
<%else%>
486
 
<%if(idlgendir)%>
487
 
ADDITIONAL_IDL_TARGETS += <%idlgendir%>/<%basenoextension(idl_file)%>C.h
488
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%idlgendir%>/<%basenoextension(idl_file)%>C.cpp=)
489
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%idlgendir%>/<%basenoextension(idl_file)%>S.cpp=)
490
 
GENERATED_DIRTY += $(foreach ext, $(IDL_EXT), <%idlgendir%>/<%basenoextension(idl_file)%>$(ext))
491
 
<%comment(The S.cpp was removed to avoid yet another problem with parallelism.  It doesn't seem necessary since you can't get the S.cpp without the C.cpp)%>
492
 
<%idlgendir%>/<%basenoextension(idl_file)%>C.h <%idlgendir%>/<%basenoextension(idl_file)%>C.cpp: <%idl_file%>
493
 
        $(TAO_IDL) -o <%idlgendir%> <%if(flag_overrides(idl_file, idlflags))%><%flag_overrides(idl_file, idlflags)%><%else%>$(TAO_IDLFLAGS)<%endif%> <%idl_file%>
494
 
<%else%>
495
 
# IDL File Directory: <%dirname(idl_file)%>
496
 
<%if(dirname_found)%>
497
 
ADDITIONAL_IDL_TARGETS += <%noextension(idl_file)%>C.h
498
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%dirname(idl_file)%>/<%noextension(idl_file)%>C.cpp=)
499
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%dirname(idl_file)%>/<%noextension(idl_file)%>S.cpp=)
500
 
<%comment(The S.cpp was removed to avoid yet another problem with parallelism.  It doesn't seem necessary since you can't get the S.cpp without the C.cpp)%>
501
 
<%dirname(idl_file)%>/<%noextension(idl_file)%>C.h <%dirname(idl_file)%>/<%noextension(idl_file)%>C.cpp: <%idl_file%>
502
 
        $(TAO_IDL) -o <%dirname(idl_file)%> <%if(flag_overrides(idl_file, idlflags))%><%flag_overrides(idl_file, idlflags)%><%else%>$(TAO_IDLFLAGS)<%endif%> <%idl_file%>
503
 
<%else%>
504
 
<%if(flag_overrides(idl_file, idlflags))%>
505
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%noextension(idl_file)%>C.cpp=)
506
 
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%noextension(idl_file)%>S.cpp=)
507
 
<%comment(The S.cpp was removed to avoid yet another problem with parallelism.  It doesn't seem necessary since you can't get the S.cpp without the C.cpp)%>
508
 
<%noextension(idl_file)%>C.h <%noextension(idl_file)%>C.cpp: <%idl_file%>
509
 
        $(TAO_IDL) <%flag_overrides(idl_file, idlflags)%> <%idl_file%>
510
 
<%endif%>
511
 
<%endif%>
512
 
<%endif%>
513
 
<%endif%>
514
 
<%endfor%>
515
 
 
516
 
ifneq ($(ADDITIONAL_IDL_TARGETS),)
517
 
idl_stubs: $(ADDITIONAL_IDL_TARGETS)
518
 
endif
519
 
 
520
 
ifneq ($(FORCED_IDL_STUBS),)
521
 
$(FORCED_IDL_STUBS): idl_stubs
522
 
endif
523
 
 
524
 
.PRECIOUS: $(foreach ext, $(IDL_EXT), $(foreach file, $(IDL_FILES), $(file)$(ext)))
525
 
<%endif%>
526
 
<%if(exename)%>
527
 
 
528
 
ifndef kylix
529
 
$(BIN): $(addprefix $(VDIR), $(OBJS))
530
 
        $(LINK.cc) $(LDFLAGS) $(CC_OUTPUT_FLAG) $@ $^ $(VLDLIBS) $(POSTLINK)
531
 
else
532
 
$(BIN): $(addprefix $(VDIR), $(OBJS))
533
 
        $(LINK.cc) $(LDFLAGS) $(CC_OUTPUT_FLAG) $(VLDLIBS) $(BORINITEXEOBJ) $(POSTLINK) $^, $@,,
534
 
endif
535
 
<%endif%>
536
 
 
537
 
realclean: clean <%compclean%>
538
 
<%if(idl_files)%>
539
 
        -$(RM) $(foreach ext, $(IDL_EXT), $(foreach file, $(IDL_FILES), $(file)$(ext)))
540
 
<%endif%>
541
 
ifneq ($(GENERATED_DIRTY),)
542
 
        -$(RM) -r $(GENERATED_DIRTY)
543
 
endif
544
 
 
545
 
<%marker(bottom)%>