forked from AdaCore/PolyORB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
2621 lines (2445 loc) · 133 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Main PolyORB Makefile
.PHONY: default
default: all
# To use this make file, say "make <targets>".
# You must be in the top-level polyorb directory.
# (???We probably want a convenient way to do a build from any subdirectory.)
# You still have to do:
# support/reconfig
# ./configure ...
# first, although this make file mostly ignores the results of configure.
# NOTE: You must set the ADA_PROJECT_PATH so that we can find xmlada.gpr.
# See projects/polyorb_src_soap.gpr.
# Interesting targets to use from the command line:
#
# all (the default) -- builds all of PolyORB, but not examples,
# testsuite, docs
#
# examples -- builds the examples
#
# testsuite -- builds the examples and testsuite
#
# run_tests -- runs the testsuite (presumes polyorb built)
#
# all-and-test -- builds everything needed, then runs the testsuite
#
# polyorb_src_corba.gpr -- target to build src/corba (and similarly for all
# the *.gpr files in the projects subdirectory). That is, there is a ".PHONY"
# target with the same name as each project file, sans directory name.
#
# libpolyorb-corba.a -- ".PHONY" target to build the library
# lib/libpolyorb-corba.a (and similarly for all the other libraries).
# Each of these depends on the *.gpr target (e.g. lib/libpolyorb-corba.a
# depends on polyorb_src_corba.gpr).
#
# examples/corba/all_functions/build-test -- target to build a particular
# example (and similarly for other subdirectories under examples).
#
# testsuite/corba/all_exceptions/build-test -- target to build a particular
# test (and similarly for other subdirectories under testsuite).
#
# docs -- target to build the document.
################################################################
# Don't rely on undefined variables being empty, nor on builtin stuff.
# Note that these do not override command-line options; these options are
# in addition.
MAKEFLAGS := --no-builtin-rules \
--no-builtin-variables \
--warn-undefined-variables
################################################################
include Makefile.common
HOST_EXE_SUFFIX := @HOST_EXE_SUFFIX@
TARGET_EXE_SUFFIX := @TARGET_EXE_SUFFIX@
CC_FOR_TARGET := @CC_FOR_TARGET@
GNATCHOP := @GNATCHOP@
GNATMAKE := @GNATMAKE@
GPRBUILD_FOR_TARGET := @GPRBUILD_FOR_TARGET@
# Flags common to build and target
# Do not use := for the following flags, so that they can be overriden on
# the command line if needed. Also, need to specify PARALLEL_GNATMAKE_FLAGS
# before GNATMAKE_FLAGS, otherwise this variable is simply ignored.
CFLAGS = @CFLAGS@
ADAFLAGS = @ADAFLAGS@
CPPFLAGS = @CPPFLAGS@
PARALLEL_GNATMAKE_FLAGS = -j0
EXTRA_GNATMAKE_FLAGS = @EXTRA_GNATMAKE_FLAGS@
# EXTRA_GNATMAKE_FLAGS are user-provided, empty by default (typically
# used to specify a non-default --RTS switch).
ifneq ($(filter -%args,$(EXTRA_GNATMAKE_FLAGS)),)
MARGS:=-margs
endif
BASE_GNATMAKE_FLAGS :=--create-missing-dirs ${ADAFLAGS} ${PARALLEL_GNATMAKE_FLAGS} ${EXTRA_GNATMAKE_FLAGS} ${MARGS}
# Gnatmake flags for units built from project files
# Note: if EXTRA_GNATMAKE_FLAGS contains a -%args argument, we add -margs at
# the end because further builder flags may need to be passed.
COMP_TOOLS_GNATMAKE_FLAGS := @STYLE_SWITCHES@ -gnatwa@WARNINGS_MODE@ -gnat12 -gnatec=${top_builddir}/compilers/config.adc ${BASE_GNATMAKE_FLAGS}
# Gnatmake flags for compilation tools mains, built without project files
# Extra flags for target
CFLAGS_FOR_TARGET := @CFLAGS_FOR_TARGET@
ADAFLAGS_FOR_TARGET := @ADAFLAGS_FOR_TARGET@
GNATMAKE_FLAGS_FOR_TARGET := -XLIBRARY_TYPE=@LIBRARY_TYPE@ -cargs ${ADAFLAGS_FOR_TARGET}
# Feature substitutions
HAVE_ADA_DYNAMIC_PRIORITIES := @HAVE_ADA_DYNAMIC_PRIORITIES@
HAVE_GPRBUILD := @HAVE_GPRBUILD@
HAVE_SSL := @HAVE_SSL@
OPENSSL := @OPENSSL@
.PHONY: all
all: all-compilers perfect-hash polyorb-idl-stamps do-gnatmake
IDLAC_bin := compilers/@IDLAC@/@IDLAC@
IDLAC_WRAPPER := ${top_builddir}/contrib/idlac_wrapper/idlac_wrapper
# Cancel build-in implicit rule
%: %.o
# IDLAC_bin is rebuilt as part of the all-compilers target
${IDLAC_bin}: all-compilers
# Path separator -- ":" or ";" for Unix/Windows.
# Note that @PATH_SEPARATOR@ is : for cygwin, so we need to adjust that.
@WINDOWS_FALSE@PATH_SEP := @PATH_SEPARATOR@
@WINDOWS_TRUE@PATH_SEP := ;
################################################################
# Subcomponents build control
include Makefile.common.project
################################################################
# Rules for building programs in the 'compilers' directory
COMPILER_EXES := gnatprfh/gnatprfh
ifeq "${filter corba, ${APPLI_LIST}}" "corba"
COMPILER_EXES += @IDLAC@/@IDLAC@
endif
ifeq "${filter dsa, ${APPLI_LIST}}" "dsa"
COMPILER_EXES += gnatdist/po_gnatdist
endif
COMPILERS := ${foreach comp,${COMPILER_EXES},${notdir ${comp}}}
.PHONY: all-compilers
all-compilers: ${patsubst %, build-%, ${COMPILERS}}
################
# gnatprfh tool
.PHONY: build-gnatprfh
build-gnatprfh: compiler_dir := gnatprfh
#############################
# idlac IDL-to-Ada compiler #
#############################
#???Compare with Makefile.am.
.PHONY: build-testparser \
build-testlexer \
build-testgen \
build-idlac
build-testgen build-idlac: \
PRJ_GNATMAKE_FLAGS := -I${top_srcdir}/compilers/common_files \
-I${top_builddir}/compilers/common_files
build-testparser build-testlexer build-testgen build-idlac: \
compiler_dir := idlac
###########################
# iac IDL-to-Ada compiler #
###########################
.PHONY: build-mknodes build-iac
build-mknodes build-iac : \
PRJ_GNATMAKE_FLAGS := -I${top_srcdir}/compilers/common_files \
-I${top_builddir}/compilers/common_files
build-mknodes build-iac : \
compiler_dir := iac
IAC_NODES_STAMPS= \
compilers/iac/frontend-nodes.idl-stamp \
compilers/iac/backend-be_corba_ada-nodes.idl-stamp
IAC_NODES_SOURCES= \
${IAC_NODES_STAMPS:.idl-stamp=.ads} \
${IAC_NODES_STAMPS:.idl-stamp=.adb}
${IAC_NODES_STAMPS}: %-stamp: ${top_srcdir}/% build-mknodes
cd compilers/iac && ./mknodes $< && touch ${notdir $@}
${filter %.ads,${IAC_NODES_SOURCES}}: %.ads: %.idl-stamp
${filter %.adb,${IAC_NODES_SOURCES}}: %.adb: %.idl-stamp
# Additional dependency of iac upon files generated by mknodes
build-iac: ${IAC_NODES_SOURCES}
##################################
# gnatdist DSA partitioning tool #
##################################
.PHONY: build-po_gnatdist
build-po_gnatdist: \
PRJ_GNATMAKE_FLAGS := -I${top_srcdir}/compilers/common_files \
-I${top_builddir}/compilers/common_files
build-po_gnatdist: \
compiler_dir := gnatdist
################################################
# Common build rule for all compile-time tools #
################################################
build-gnatprfh \
\
build-testparser \
build-testlexer \
build-testgen \
build-idlac \
\
build-mknodes \
build-iac \
\
build-po_gnatdist \
\
: build-%:
mkdir -p compilers/${compiler_dir} && \
cd compilers/${compiler_dir} && \
${GNATMAKE} -m \
$*.adb \
${COMP_TOOLS_GNATMAKE_FLAGS} \
-I${top_srcdir}/compilers/${compiler_dir} \
${PRJ_GNATMAKE_FLAGS} -bargs -E
# Binder switch -E causes traceback information to be included in
# Exception_Occurrences.
# The following variables are used for invoking idlac. There is a static
# pattern rule for each; see "Rules for running idlac", below. Each file
# mumble.idl has a corresponding empty mumble.idl-stamp file, which is
# 'touch'ed to record the time at which idlac was run. Targets that use
# the output of idlac should depend on the .idl-stamp files, rather than the
# actual .ads/.adb files produced by idlac. This allows the optimization
# implemented in idlac_wrapper. There can be more than one .idl-stamp for the
# same .idl file, in different directories, if we wish to run idlac more than
# once on the same file with different options.
# For each mumble.idl-stamp, we write:
# xxx_idl_stamps += mumble.idl-stamp # causes the target to exist
# mumble.idl-stamp: idlac_flags := ... # flags used to compile that target
# xxx indicates the directories for the .idl and .idl-stamp files;
# self_idl_stamps is for cases where the .idl-stamp is put in the same
# directory as the .idl.
idls_idl_stamps :=
interop_corba_idl_stamps :=
interop_corba_iop_idl_stamps :=
interop_corba_security_idl_stamps :=
interop_corba_security_gssup_idl_stamps :=
misc_corba_dynamicany_idl_stamps :=
misc_corba_messaging_idl_stamps :=
misc_corba_portableinterceptor_idl_stamps :=
rtcorba_corba_rtcorba_idl_stamps :=
self_idl_stamps :=
all_idl_stamps = \
${idls_idl_stamps} \
${interop_corba_idl_stamps} \
${interop_corba_iop_idl_stamps} \
${interop_corba_security_idl_stamps} \
${interop_corba_security_gssup_idl_stamps} \
${misc_corba_dynamicany_idl_stamps} \
${misc_corba_messaging_idl_stamps} \
${misc_corba_portableinterceptor_idl_stamps} \
${rtcorba_corba_rtcorba_idl_stamps} \
${self_idl_stamps}
idlac_include_dirs := \
idls/CORBA_IDL idls/CORBA_PIDL idls/Misc idls/Interop \
idls/Misc idls/cos/event idls/cos/notification idls/cos/time
idlac_include_flags := \
${addprefix -I${top_srcdir}/,${idlac_include_dirs}} \
-I.
# Command used to run idlac:
ifeq (@USE_IDLAC_WRAPPER@,yes)
idlac := ${IDLAC_WRAPPER} --idlac="${top_builddir}/${IDLAC_bin}" ${idlac_include_flags}
installed_idlac := ${IDLAC_WRAPPER} --idlac=@IDLAC@ ${idlac_include_flags}
else
idlac := ${top_builddir}/${IDLAC_bin} ${idlac_include_flags}
installed_idlac := @IDLAC@ ${idlac_include_flags}
endif
################################################################
# Rules for running gnatprfh in the src/soap directory
.PHONY: perfect-hash
perfect-hash: build-gnatprfh src/soap/polyorb-http_methods.adb src/soap/polyorb-http_headers.adb
GNATPRFH = ${top_builddir}/compilers/gnatprfh/gnatprfh$(HOST_EXE_SUFFIX)
GEN_HTTP_BODY = ${top_srcdir}/src/soap/gen_http_body
${GNATPRFH}: build-gnatprfh
src/soap/polyorb-http_methods.adb: ${GEN_HTTP_BODY} ${GNATPRFH}
# Note that the second gen_http_body command below overwrites perfect_hash.adb
# with different content.
src/soap/polyorb-http_methods.adb src/soap/polyorb-http_headers.adb: ${GEN_HTTP_BODY} ${GNATPRFH} ${top_srcdir}/src/soap/polyorb-http_methods.ads ${top_srcdir}/src/soap/polyorb-http_headers.ads
mkdir -p src/soap
cd src/soap && ${GEN_HTTP_BODY} ${GNATPRFH} ${top_srcdir}/src/soap Method
cd src/soap && ${GEN_HTTP_BODY} ${GNATPRFH} ${top_srcdir}/src/soap Header
################################################################
# src/giop, tools/po_catref. gen_codeset.
GEN_CODESET = src/giop/tools/gen_codeset${HOST_EXE_SUFFIX}
${GEN_CODESET}: build-gen_codeset
build-gen_codeset:
mkdir -p src/giop/tools && cd src/giop/tools && \
${GNATMAKE} gen_codeset -I${top_srcdir}/src/giop/tools ${COMP_TOOLS_GNATMAKE_FLAGS} -bargs -E
src/giop/polyorb-giop_p-code_sets-data.ads-stamp: ${top_srcdir}/src/giop/cs_registry1.2h ${GEN_CODESET}
cd src/giop && ./tools/gen_codeset -c "PolyORB.GIOP_P.Code_Sets.Data" \
polyorb-giop_p-code_sets-data.ads.new \
< $<
cd src/giop && ${MOVEIFCHANGE} polyorb-giop_p-code_sets-data.ads.new polyorb-giop_p-code_sets-data.ads
touch src/giop/polyorb-giop_p-code_sets-data.ads-stamp
tools/po_catref/polyorb-giop_p-code_sets-description_data.ads-stamp: ${top_srcdir}/src/giop/cs_registry1.2h ${GEN_CODESET} Makefile
cd tools/po_catref && ${top_builddir}/${GEN_CODESET} -d "PolyORB.GIOP_P.Code_Sets.Description_Data" \
polyorb-giop_p-code_sets-description_data.ads.new \
< $<
cd tools/po_catref && ${MOVEIFCHANGE} polyorb-giop_p-code_sets-description_data.ads.new polyorb-giop_p-code_sets-description_data.ads
touch tools/po_catref/polyorb-giop_p-code_sets-description_data.ads-stamp
################################################################
# PolyORB IDL files
server_idl_stamps := \
cos/event/CosEventChannelAdmin.idl-stamp \
cos/event/CosEventComm.idl-stamp \
cos/event/CosTypedEventChannelAdmin.idl-stamp \
cos/event/CosTypedEventComm.idl-stamp \
cos/naming/CosNaming.idl-stamp \
cos/notification/CosNotification.idl-stamp \
cos/notification/CosNotifyChannelAdmin.idl-stamp \
cos/notification/CosNotifyComm.idl-stamp \
cos/notification/CosNotifyFilter.idl-stamp \
cos/time/CosTime.idl-stamp
idls_idl_stamps += ${server_idl_stamps}
${server_idl_stamps}: idlac_flags := -s
client_idl_stamps := ${server_idl_stamps:cos/%=idls/cos/%} \
idls/cos/time/TimeBase.idl-stamp
self_idl_stamps += ${client_idl_stamps}
${client_idl_stamps}: idlac_flags := -c
self_idl_stamps += cos/naming/File.idl-stamp
cos/naming/File.idl-stamp: idlac_flags :=
interop_corba_idl_stamps += src/corba/CONV_FRAME.idl-stamp
src/corba/CONV_FRAME.idl-stamp: idlac_flags :=
misc_corba_dynamicany_idl_stamps += src/corba/dynamicany/DynamicAny.idl-stamp
src/corba/dynamicany/DynamicAny.idl-stamp: idlac_flags :=
interop_corba_iop_idl_stamps += src/corba/iop/IOP.idl-stamp
src/corba/iop/IOP.idl-stamp: idlac_flags :=
misc_corba_messaging_idl_stamps += src/corba/messaging/Messaging.idl-stamp
src/corba/messaging/Messaging.idl-stamp: idlac_flags :=
misc_corba_portableinterceptor_idl_stamps += src/corba/portableinterceptor/PortableInterceptor.idl-stamp
src/corba/portableinterceptor/PortableInterceptor.idl-stamp: idlac_flags :=
misc_corba_portableinterceptor_idl_stamps += src/corba/portableinterceptor/Dynamic.idl-stamp
src/corba/portableinterceptor/Dynamic.idl-stamp: idlac_flags :=
rtcorba_corba_rtcorba_idl_stamps += src/corba/rtcorba/RTCosScheduling.idl-stamp
src/corba/rtcorba/RTCosScheduling.idl-stamp: idlac_flags :=
interop_corba_security_idl_stamps += src/corba/security/CSI.idl-stamp
src/corba/security/CSI.idl-stamp: idlac_flags := -c
interop_corba_security_idl_stamps += src/corba/security/CSIIOP.idl-stamp
src/corba/security/CSIIOP.idl-stamp: idlac_flags := -c
interop_corba_security_gssup_idl_stamps += src/corba/security/gssup/GSSUP.idl-stamp
src/corba/security/gssup/GSSUP.idl-stamp: idlac_flags := -c
# This is expanded here, and therefore leaves out the examples below.
polyorb_idl_stamps := ${all_idl_stamps} # All so far, that is.
.PHONY: polyorb-idl-stamps
polyorb-idl-stamps: build-@IDLAC@ ${polyorb_idl_stamps} cos/ir/orb.idl-stamp
#???What is the following all about? Why does it "chmod" and "rm"?
cos/ir/orb.idl-stamp: ${top_srcdir}/idls/CORBA_IDL/orb.idl ${top_srcdir}/idls/CORBA_IDL/CORBA_InterfaceRepository.idl ${top_srcdir}/idls/CORBA_IDL/CORBA_TypeCode.idl ${IDLAC_bin} ${IDLAC_WRAPPER}
@chmod a+x ${IDLAC_WRAPPER}
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} $<
${RM} cos/ir/corba-repository_root.ads
touch $@
################################################################
#????idls_dirs := \
# cos/naming \
# idls/CORBA_IDL \
# idls/CORBA_PIDL \
# idls/Interop \
# idls/Misc \
# idls/RTCORBA \
# idls/cos/collection \
# idls/cos/concurrency \
# idls/cos/event \
# idls/cos/externalization \
# idls/cos/licensing \
# idls/cos/lifecycle \
# idls/cos/naming \
# idls/cos/notification \
# idls/cos/persistent \
# idls/cos/property \
# idls/cos/query \
# idls/cos/relationship \
# idls/cos/security \
# idls/cos/time \
# idls/cos/trader \
# idls/cos/transaction
################################################################
# Targets for compiling the PolyORB Ada code
# ???Currently, this depends on all the .idl-stamp files;
# we could make this more fine-grained.
# Get list of all .gpr files, and strip off directory name. Note that most are
# in ${top_srcdir}/projects, but some are generated from *.gpr.in, and are
# therefore in ${top_builddir}/projects. Use ${sort} to remove duplicates
# (in case srcdir and builddir are the same).
ALL_PROJECT_FILES := ${sort \
${notdir ${wildcard ${top_srcdir}/projects/*.gpr}} \
${notdir ${wildcard ${top_builddir}/projects/*.gpr}}}
# Remove the ones that shouldn't be built:
IGNORED_PROJECT_FILES := polyorb_build_all.gpr polyorb_common.gpr polyorb_config.gpr
PROJECT_FILES := ${filter-out ${IGNORED_PROJECT_FILES},${ALL_PROJECT_FILES}}
# The ones that start with "polyorb_tools_" are for building (target)
# executables. The rest are for building libraries.
LIBRARY_PROJECT_FILES := ${filter-out polyorb_tools_%,${PROJECT_FILES}}
EXE_PROJECT_FILES := ${filter polyorb_tools_%,${PROJECT_FILES}}
# Additional C sources
C_FILES= src/csupport.c
.PHONY: do-gnatmake
do-gnatmake: ${POLYORB_LIBS} ${SERVICE_LIBS} ${EXE_PROJECT_FILES} #??? ${APPLI_EXES} ${SERVICE_EXES}
#???lib/polyorb.ali is missing the first time around.
# Because we can't share library directories!
.PHONY: libpolyorb-aws.a
libpolyorb-aws.a: polyorb_src_aws.gpr
.PHONY: libpolyorb-corba-cos-event-impl.a
libpolyorb-corba-cos-event-impl.a: polyorb_cos_event.gpr
.PHONY: libpolyorb-corba-cos-ir-impl.a
libpolyorb-corba-cos-ir-impl.a: polyorb_cos_ir.gpr
.PHONY: libpolyorb-corba-cos-naming-impl.a
libpolyorb-corba-cos-naming-impl.a: polyorb_cos_naming.gpr
.PHONY: libpolyorb-corba-cos-notification-impl.a
libpolyorb-corba-cos-notification-impl.a: polyorb_cos_notification.gpr
.PHONY: libpolyorb-corba-cos-time-impl.a
libpolyorb-corba-cos-time-impl.a: polyorb_cos_time.gpr
.PHONY: libpolyorb-corba-cos-event.a
libpolyorb-corba-cos-event.a: polyorb_idls_cos_event.gpr
.PHONY: libpolyorb-corba-cos-naming.a
libpolyorb-corba-cos-naming.a: polyorb_idls_cos_naming.gpr
.PHONY: libpolyorb-corba-cos-notification.a
libpolyorb-corba-cos-notification.a: polyorb_idls_cos_notification.gpr
.PHONY: libpolyorb-corba-cos-time.a
libpolyorb-corba-cos-time.a: polyorb_idls_cos_time.gpr
.PHONY: libpolyorb.a
libpolyorb.a: polyorb.gpr polyorb_src.gpr
.PHONY: libpolyorb-corba.a
libpolyorb-corba.a: polyorb_src_corba.gpr
.PHONY: libpolyorb-corba-dynamicany.a
libpolyorb-corba-dynamicany.a: polyorb_src_corba_dynamicany.gpr
.PHONY: libpolyorb-corba-iop.a
libpolyorb-corba-iop.a: polyorb_src_corba_iop.gpr
.PHONY: libpolyorb-corba-messaging.a
libpolyorb-corba-messaging.a: polyorb_src_corba_messaging.gpr
.PHONY: libpolyorb-corba-portableinterceptor.a
libpolyorb-corba-portableinterceptor.a: polyorb_src_corba_portableinterceptor.gpr
.PHONY: libpolyorb-corba-rtcorba.a
libpolyorb-corba-rtcorba.a: polyorb_src_corba_rtcorba.gpr
.PHONY: libpolyorb-corba-security.a
libpolyorb-corba-security.a: polyorb_src_corba_security.gpr
.PHONY: libpolyorb-corba-security-gssup.a
libpolyorb-corba-security-gssup.a: polyorb_src_corba_security_gssup.gpr
.PHONY: libpolyorb-dsa.a
libpolyorb-dsa.a: polyorb_src_dsa.gpr
ifeq (${HAVE_GPRBUILD}, no)
polyorb_src_dsa.gpr: PRJ_GNATMAKE_FLAGS := -a
# Some components of the DSA application personality are child units of
# System: use -a to allow gnatmake to compile them.
endif
.PHONY: libpolyorb-dns.a
libpolyorb-dns.a: polyorb_src_dns.gpr
.PHONY: libpolyorb-dns-udns.a
libpolyorb-dns-udns.a: polyorb_src_dns_udns.gpr
.PHONY: libpolyorb-dns-mdns.a
libpolyorb-dns-mdns.a: polyorb_src_dns_mdns.gpr
.PHONY: libpolyorb-giop.a
libpolyorb-giop.a: polyorb_src_giop.gpr
.PHONY: libpolyorb-giop-diop.a
libpolyorb-giop-diop.a: polyorb_src_giop_diop.gpr
.PHONY: libpolyorb-giop-iiop.a
libpolyorb-giop-iiop.a: polyorb_src_giop_iiop.gpr
.PHONY: libpolyorb-giop-iiop-security.a
libpolyorb-giop-iiop-security.a: polyorb_src_giop_iiop_security.gpr
.PHONY: libpolyorb-giop-iiop-security-tls.a
libpolyorb-giop-iiop-security-tls.a: polyorb_src_giop_iiop_security_tls.gpr
.PHONY: libpolyorb-giop-iiop-ssliop.a
libpolyorb-giop-iiop-ssliop.a: polyorb_src_giop_iiop_ssliop.gpr
.PHONY: libpolyorb-giop-miop.a
libpolyorb-giop-miop.a: polyorb_src_giop_miop.gpr
.PHONY: libpolyorb-moma.a
libpolyorb-moma.a: polyorb_src_moma.gpr
.PHONY: libpolyorb-security.a
libpolyorb-security.a: polyorb_src_security.gpr
.PHONY: libpolyorb-security-gssup.a
libpolyorb-security-gssup.a: polyorb_src_security_gssup.gpr
.PHONY: libpolyorb-security-tls.a
libpolyorb-security-tls.a: polyorb_src_security_tls.gpr
.PHONY: libpolyorb-security-x509.a
libpolyorb-security-x509.a: polyorb_src_security_x509.gpr
.PHONY: libpolyorb-setup.a
libpolyorb-setup.a: polyorb_src_setup.gpr
.PHONY: libpolyorb-setup-security.a
libpolyorb-setup-security.a: polyorb_src_setup_security.gpr
.PHONY: libpolyorb-soap.a
libpolyorb-soap.a: polyorb_src_soap.gpr
.PHONY: libpolyorb-srp.a
libpolyorb-srp.a: polyorb_src_srp.gpr
.PHONY: libpolyorb-ssl.a
libpolyorb-ssl.a: polyorb_src_ssl.gpr
.PHONY: libpolyorb-web_common.a
libpolyorb-web_common.a: polyorb_src_web_common.gpr
# Additional dependencies between projects
polyorb_src_corba.gpr: polyorb_src_corba_dynamicany.gpr polyorb_src_corba_iop.gpr polyorb_src_corba_messaging.gpr polyorb_src_corba_portableinterceptor.gpr polyorb_src_corba_rtcorba.gpr
polyorb_src_setup.gpr: @APPLI_PRJS@ @PROTO_PRJS@
polyorb.gpr: @SERVICE_PRJS@ @SETUP_PRJS@
ifeq (${HAVE_SSL},yes)
polyorb_src_giop_iiop.gpr: polyorb_src_giop_iiop_security.gpr polyorb_src_giop_iiop_security_tls.gpr
polyorb_src_corba.gpr: polyorb_src_corba_security.gpr polyorb_src_corba_security_gssup.gpr
C_FILES += \
src/ssl/polyorb_ssl.c \
src/security/polyorb_asn1.c \
src/security/x509/polyorb_x509.c
endif
# Additional dependencies on C sources, if building using gnatmake
ifeq (${HAVE_GPRBUILD}, no)
polyorb_src.gpr: src/csupport.o
polyorb_src_ssl.gpr: src/ssl/polyorb_ssl.o
polyorb_src_security.gpr: src/security/polyorb_asn1.o
polyorb_src_security_x509.gpr: src/security/x509/polyorb_x509.o
# Rule for compilation of C source files
C_OBJECTS=${C_FILES:.c=.o}
${C_OBJECTS}: %.o: ${top_srcdir}/%.c
${CC_FOR_TARGET} -c -o $@ -I${top_builddir}/src ${CPPFLAGS} ${CFLAGS} ${CFLAGS_FOR_TARGET} $<
endif
### No additions to C_FILES / C_OBJECTS beyond this point
# The mkdir.flag targets are used to create the necessary directories. There is
# one ALI directory for each project file (for example, ali/src_corba is the
# ALI directory for projects/polyorb_src_corba.gpr). There is also a single
# library directory (lib) shared by all project files.
# Note: This would be unnecessary if we used the -p switch of gnatmake,
# but we want this to work with older versions of gnatmake that do not
# support -p (this option was introduced in GNAT 6.0).
# WAG: 5.04
ALI_MKDIR_FLAGS = ${patsubst %.gpr,ali/%/mkdir.flag,${PROJECT_FILES}}
C_MKDIR_FLAGS = ${patsubst %,%mkdir.flag,${dir ${C_OBJECTS}}}
MKDIR_FLAGS = ${ALI_MKDIR_FLAGS} ${C_MKDIR_FLAGS} lib/mkdir.flag
${MKDIR_FLAGS}: %/mkdir.flag:
mkdir -p $*
touch $@
# Note that each polyorb_foo.gpr target depends on ALL .../mkdir.flag targets,
# because gnatmake needs to look at the ALI directories for imported
# projects.
PRJ_GNATMAKE_FLAGS :=
# This variable is used to pass additional per-project command line switches
# to gnatmake.
.PHONY: ${PROJECT_FILES}
${PROJECT_FILES}: %.gpr: \
${MKDIR_FLAGS} \
perfect-hash \
polyorb-idl-stamps \
build-gen_codeset \
src/giop/polyorb-giop_p-code_sets-data.ads-stamp \
tools/po_catref/polyorb-giop_p-code_sets-description_data.ads-stamp
${GPRBUILD_FOR_TARGET} -aP"${top_builddir}/projects" -aP"${top_srcdir}/projects" -P $@ ${BASE_GNATMAKE_FLAGS} ${PRJ_GNATMAKE_FLAGS} ${GNATMAKE_FLAGS_FOR_TARGET} -bargs -E
################
# Installation #
################
# Note: some testsuite targets refer to installation paths, so this must
# occur first.
host=@host@
target=@target@
ifeq (${target}, ${host})
target_prefix=${prefix}
host_exe_dir=${prefix}/bin
host_cmdprefix=
target_exe_dir=${prefix}/bin
else
target_prefix=${prefix}/${target}
host_exe_dir=${prefix}/bin
host_cmdprefix=${target}-
target_exe_dir=${target_prefix}/bin
endif
projects_subdir=lib/gnat/polyorb
.PHONY: install
install:
@echo " Sources dir: ${top_srcdir}"
@echo " Build dir: ${top_builddir}"
@echo "Install prefix: ${prefix}"
@echo " Host: ${host}"
@echo " Target: ${target}"
${PINSTALL} -d ${prefix}/bin ${target_prefix}/bin
${RM} -fr "${target_prefix}/${projects_subdir}"
${PINSTALL} -d ${target_prefix}/${projects_subdir}
${PINSTALL} -d ${target_prefix}/lib/polyorb
${PINSTALL} -d ${target_prefix}/lib/polyorb/static
${RM} -fr "${target_prefix}/include/polyorb"
${PINSTALL} -d ${target_prefix}/include/polyorb
for comp in ${COMPILER_EXES}; do \
${INSTALL_BIN} ${top_builddir}/compilers/$${comp}${HOST_EXE_SUFFIX} ${host_exe_dir}/${host_cmdprefix}`basename $${comp}`${HOST_EXE_SUFFIX}; \
done
${INSTALL_SCRIPT} ${top_builddir}/polyorb-config ${host_exe_dir}/${host_cmdprefix}polyorb-config
for tool in po_cos_naming/po_cos_naming po_cos_naming/po_cos_naming_shell po_cos_naming/ir_ab_names po_ir/po_ir po_catref/po_catref po_createref/po_createref po_names/po_names po_dumpir/po_dumpir; do \
${INSTALL_BIN} ${top_builddir}/tools/$$tool${TARGET_EXE_SUFFIX} ${target_exe_dir}/`basename $$tool`${TARGET_EXE_SUFFIX}; \
done
ls ${top_builddir}/lib/*.a | ${PINSTALL} -m 444 - ${target_prefix}/lib/polyorb/static
ls ${top_builddir}/lib/*.so | ${PINSTALL} -m 555 - ${target_prefix}/lib
ls ${top_builddir}/lib/*.dll | ${PINSTALL} -m 555 - ${target_prefix}/lib
ls ${top_srcdir}/projects-distrib/*.gpr | ${PINSTALL} -m 444 - ${target_prefix}/lib/gnat
ls ${top_builddir}/projects-distrib/*.gpr | ${PINSTALL} -m 444 - ${target_prefix}/lib/gnat
ls ${top_srcdir}/projects-distrib/polyorb/*.gpr | ${PINSTALL} -m 444 - ${target_prefix}/${projects_subdir}
ls ${top_builddir}/projects-distrib/polyorb/*.gpr | ${PINSTALL} -m 444 - ${target_prefix}/${projects_subdir}
(find \
${top_builddir}/src \
${top_builddir}/cos \
${top_builddir}/idls \
${top_srcdir}/src \
${top_srcdir}/cos \
${top_srcdir}/idls \
-name '*.ads' -o -name '*.adb' -o -name '*.idl') | \
${PINSTALL} -m 444 - ${target_prefix}/include/polyorb
(find \
${top_builddir}/ali \
-name '*.ali' \
-a ! -name 'polyorb-dsa_p-partitions.ali' \
-a ! -name 'polyorb-dsa_p-storages-config.ali' \
-a ! -name 'polyorb-partition_elaboration.ali') | \
${PINSTALL} -m 444 - ${target_prefix}/lib/polyorb
# Install documentation only if it has been built locally, or
# pre-built and packaged with sources. In that case, pass
# SPHINXBUILD=true to child make process in order to bypass
# check for existence of sphinx-build.
if [ -r doc/_build ]; \
then \
(cd doc && ${MAKE} install prefix="${prefix}" SPHINXBUILD=true); \
elif [ -r $(top_srcdir)/doc/_build ]; \
then \
(cd doc && ${MAKE} install prefix="${prefix}" doc_build_dir="$(top_srcdir)/doc/" SPHINXBUILD=true); \
fi
# polyorb-dsa_p-partitions.ali is a special case above.
# It is never installed, so that this unit is recompiled for each application
# by gnatdist. This is necessary because two compilations must occur:
# receiving stubs for the main partition, and calling stubs for others.
#
# Note that any change of the location where DSA application personality
# files are installed (relative to ${prefix}) must be reflected in
# gnatdist.
################################################################
##########################
# examples and testsuite #
##########################
# We treat the examples and testsuite directories the same.
# Each subdirectory that has test (or example) programs should contain
# local.gpr, and may contain one or more *.idl files. We use 'find' to find
# all of the *.idl.
#
# In addition, if there are any idl files, we need to define the flags to use
# with idlac, and make the test target depend on building the idl, like this:
# ${current_dir}<...>.idl-stamp: idlac_flags := <...>
# ${test_target}: ${current_dir}<...>.idl-stamp
# Note that ${current_dir} contains a trailing slash.
# local.gpr should contain:
# with "polyorb", "polyorb_test_common";
#
# project local is
#
# Dir := external ("Test_Dir");
# Obj_Dir := PolyORB_Test_Common.Build_Dir & Dir;
# for Object_Dir use Obj_Dir;
# for Source_Dirs use (Obj_Dir, PolyORB_Test_Common.Source_Dir & Dir);
#
# package Compiler is
#
# for Default_Switches ("Ada")
# use PolyORB_Test_Common.Compiler'Default_Switches ("Ada");
#
# end Compiler;
#
# for Main use (<...>);
#
# end local;
# The only variable part is the Mains.
test_dirs := ${top_srcdir}/examples ${top_srcdir}/testsuite
test_idls := ${shell find ${test_dirs} -name '*.idl' 2> /dev/null}
test_idls := ${patsubst ${top_srcdir}/%,%,${test_idls}}
test_idl_stamps := ${patsubst %.idl,%.idl-stamp,${test_idls}}
ifeq (@USE_INSTALLED@,yes)
${test_idl_stamps}: %.idl-stamp: ${top_srcdir}/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${installed_idlac} ${idlac_flags} $<
touch $@
else
self_idl_stamps += ${test_idl_stamps}
endif
# Include all the Makefile.local files.
@LOCAL_MAKEFILES@
test_targets := ${sort ${test_targets}}
TESTSUITE_GNATMAKE_FLAGS := -aP"${top_builddir}/testsuite/projects" -aP"${top_srcdir}/testsuite/projects"
ifeq (@USE_INSTALLED@,yes)
INSTALLED_IAC=$(shell which iac)
ifeq ($(strip ${INSTALLED_IAC}),)
$(error Installed iac(1) not found)
endif
INSTALLED_TARGET_PREFIX=${shell echo `dirname ${INSTALLED_IAC}`/..}
TESTSUITE_GNATMAKE_FLAGS += -aP"${INSTALLED_TARGET_PREFIX}/${projects_subdir}"
else
# If building examples and testsuite using the newly built PolyORB,
# add build-time project files to project path.
TESTSUITE_GNATMAKE_FLAGS += -aP"${top_builddir}/projects" -aP"${top_srcdir}/projects"
endif
.PHONY: ${test_targets}
${test_targets}: %/build-test:
${GPRBUILD_FOR_TARGET} "-XTest_Dir=$*" $(TESTSUITE_GNATMAKE_FLAGS) -P ${top_srcdir}/$*/local.gpr ${BASE_GNATMAKE_FLAGS} ${GNATMAKE_FLAGS_FOR_TARGET} -bargs -E
# Set active_tests to a subset of test_targets -- remove the ones that are for
# application personalities that were not configured. Note: examples/polyorb
# and testsuite/core are built unconditionally, independent of personalities.
# Note that two tests are for multiple personalities: examples/bbs is built
# only if we are configured for both corba and dsa, and
# examples/corba/all_types is built only if we are configured for both corba
# and moma. Also remove the ones that depend on ssl, if we're not configured
# with ssl support.
active_tests := ${test_targets}
ifneq "${filter corba, ${APPLI_LIST}}" "corba"
active_tests := ${filter-out examples/corba/%,${active_tests}}
active_tests := ${filter-out testsuite/corba/%,${active_tests}}
active_tests := ${filter-out examples/bbs/%,${active_tests}}
endif
ifneq "${filter dsa, ${APPLI_LIST}}" "dsa"
active_tests := ${filter-out examples/dsa/%,${active_tests}}
active_tests := ${filter-out testsuite/acats/%,${active_tests}}
active_tests := ${filter-out examples/bbs/%,${active_tests}}
endif
ifneq "${filter moma, ${APPLI_LIST}}" "moma"
active_tests := ${filter-out examples/moma/%,${active_tests}}
active_tests := ${filter-out examples/corba/all_types/%,${active_tests}}
endif
ifneq "${filter aws, ${APPLI_LIST}}" "aws"
active_tests := ${filter-out examples/aws/%,${active_tests}}
endif
ifneq "${HAVE_ADA_DYNAMIC_PRIORITIES}" "true"
active_tests := ${filter-out examples/corba/rtcorba/%,${active_tests}}
active_tests := ${filter-out testsuite/corba/rtcorba/%,${active_tests}}
endif
#???The following are disabled for now, because of minor build problems:
skip_tests := examples/bbs \
examples/dsa \
testsuite/acats/CXE1001 \
testsuite/acats/CXE2001 \
testsuite/acats/CXE4001 \
testsuite/acats/CXE4002 \
testsuite/acats/CXE4005 \
testsuite/acats/CXE4006
skip_tests := ${patsubst %,%/build-test,${skip_tests}}
active_tests := ${filter-out ${skip_tests},${active_tests}}
active_tests := ${sort ${active_tests}}
.PHONY: print_active_tests
print_active_tests:
@echo "All tests: ${patsubst %/build-test,%,${test_targets}}"
@echo "Tests to build: ${patsubst %/build-test,%,${active_tests}}"
.PHONY: testsuite
testsuite: print_active_tests ${active_tests}
# Create the 'examples' target as a subset of 'testsuite' -- just the ones
# under the 'examples' subdirectory:
active_examples := ${filter examples/%,${active_tests}}
.PHONY: examples
examples: ${active_examples}
.PHONY: run_tests
run_tests:
cd testsuite && ./testsuite.py --diffs --testsuite-src-dir=${top_srcdir}/testsuite
# 'all' depends on either build-iac or build-idlac; we might as well build
# both, here. We run_tests via recursive make, rather than having all-and-test
# depend on run_tests, so it works for parallel make (run_tests should not
# run concurrently with the other stuff).
.PHONY: all-and-test
all-and-test: all build-iac build-idlac examples testsuite
${MAKE} run_tests
################################################################
# Rules for running idlac on .idl files
# These patterns are all the same, except the directories where they expect to
# find the .idl file, and the directories where they put the .idl-stamp files.
# Each target that is part of xxx_idl_stamps should have set idlac_flags
# as a target-specific variable.
${idls_idl_stamps}: %.idl-stamp: ${top_srcdir}/idls/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${interop_corba_idl_stamps}: src/corba/%.idl-stamp: ${top_srcdir}/idls/Interop/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${interop_corba_iop_idl_stamps}: src/corba/iop/%.idl-stamp: ${top_srcdir}/idls/Interop/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${interop_corba_security_idl_stamps}: src/corba/security/%.idl-stamp: ${top_srcdir}/idls/Interop/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${interop_corba_security_gssup_idl_stamps}: src/corba/security/gssup/%.idl-stamp: ${top_srcdir}/idls/Interop/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${misc_corba_dynamicany_idl_stamps}: src/corba/dynamicany/%.idl-stamp: ${top_srcdir}/idls/Misc/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${misc_corba_messaging_idl_stamps}: src/corba/messaging/%.idl-stamp: ${top_srcdir}/idls/Misc/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${misc_corba_portableinterceptor_idl_stamps}: src/corba/portableinterceptor/%.idl-stamp: ${top_srcdir}/idls/Misc/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${rtcorba_corba_rtcorba_idl_stamps}: src/corba/rtcorba/%.idl-stamp: ${top_srcdir}/idls/RTCORBA/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${self_idl_stamps}: %.idl-stamp: ${top_srcdir}/%.idl
mkdir -p ${dir $@}
cd ${dir $@} && ${idlac} ${idlac_flags} $<
touch $@
${all_idl_stamps}: ${IDLAC_bin} ${IDLAC_WRAPPER}
#################
# Documentation #
#################
# We use the old make files for the documentation; recursively invoke make in
# the docs directory.
.PHONY: docs
docs:
(cd doc && ${MAKE} sources html latexpdf MANIFEST)
force::
.PHONY: clean distclean
clean:
${RM} -f ${all_idl_stamps} ./cos/ir/orb.idl-stamp # ???and more
${RM} -f ${idlac_output_files}
find . -name '*.ali' -o -name '*.o' -o -name 'b__*.ad?'| xargs ${RM} -f
${RM} -f lib/lib*.a
${RM} -f ${all_example_exes}
(cd compilers && ${RM} -f ${COMPILER_EXES})
${RM} -f ${MKDIR_FLAGS}
${RM} -f ${IAC_NODES_STAMPS}
${RM} -f ${IAC_NODES_SOURCES}
${RM} -f src/soap/polyorb-http_methods.adb src/soap/polyorb-http_headers.adb
${RM} -f cos/ir/po_ir
${RM} -f src/giop/tools/gen_codeset
${RM} -f src/giop/polyorb-giop_p-code_sets-data.ads
${RM} -f src/giop/polyorb-giop_p-code_sets-data.ads-stamp
${RM} -f src/soap/perfect_hash.adb
${RM} -f src/soap/perfect_hash.ads
${RM} -f tools/po_catref/po_catref
${RM} -f tools/po_cos_naming/ir_ab_names
${RM} -f tools/po_cos_naming/po_cos_naming
${RM} -f tools/po_cos_naming/po_cos_naming_shell
${RM} -f tools/po_createref/po_createref
${RM} -f tools/po_catref/polyorb-giop_p-code_sets-description_data.ads
${RM} -f tools/po_catref/polyorb-giop_p-code_sets-description_data.ads-stamp
${RM} -f tools/po_dumpir/po_dumpir
${RM} -f tools/po_names/po_names
distclean: clean
${SHELL} ${top_srcdir}/support/cleanup-conf-files
${RM} -f config.*
.SUFFIXES: .c .o
# This tells make to delete half-baked files, as recommended by section 5.4 of
# the GNU Make manual.
.DELETE_ON_ERROR:
idlac_output_files := \
cos/event/coseventchanneladmin-consumeradmin-skel.adb \
cos/event/coseventchanneladmin-consumeradmin-skel.ads \
cos/event/coseventchanneladmin-eventchannel-skel.adb \
cos/event/coseventchanneladmin-eventchannel-skel.ads \
cos/event/coseventchanneladmin-proxypullconsumer-skel.adb \
cos/event/coseventchanneladmin-proxypullconsumer-skel.ads \
cos/event/coseventchanneladmin-proxypullsupplier-skel.adb \
cos/event/coseventchanneladmin-proxypullsupplier-skel.ads \
cos/event/coseventchanneladmin-proxypushconsumer-skel.adb \
cos/event/coseventchanneladmin-proxypushconsumer-skel.ads \
cos/event/coseventchanneladmin-proxypushsupplier-skel.adb \
cos/event/coseventchanneladmin-proxypushsupplier-skel.ads \
cos/event/coseventchanneladmin-supplieradmin-skel.adb \
cos/event/coseventchanneladmin-supplieradmin-skel.ads \
cos/event/coseventcomm-pullconsumer-skel.adb \
cos/event/coseventcomm-pullconsumer-skel.ads \
cos/event/coseventcomm-pullsupplier-skel.adb \
cos/event/coseventcomm-pullsupplier-skel.ads \
cos/event/coseventcomm-pushconsumer-skel.adb \
cos/event/coseventcomm-pushconsumer-skel.ads \
cos/event/coseventcomm-pushsupplier-skel.adb \