summaryrefslogtreecommitdiff
path: root/Makefile
blob: 54947ac8b8f83fb62c1dd1df1ec88eecee701b9a (plain)
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
#----------------------------------------------------------------------------
#       $Id$
#
#       Top-level Makefile for the ACE toolkit libraries, tests, and
#       applications
#----------------------------------------------------------------------------

#### Please see ACE-INSTALL.html for build information.

#----------------------------------------------------------------------------
#       Local macros
#----------------------------------------------------------------------------

INFO    = README \
          THANKS \
          VERSION

DIRS    = ace \
	  ACEXML \
          netsvcs \
          tests \
          apps \
          examples \
          performance-tests \
          websvcs \
	  Kokyu

CLONE   = Makefile \
          ace \
          apps \
          bin \
          lib \
          etc \
          examples \
          include \
          netsvcs \
          performance-tests \
          TAO \
          tests \
          websvcs \
	  ACEXML \
	  Kokyu

#----------------------------------------------------------------------------
#       Include macros and targets
#----------------------------------------------------------------------------

include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU

# Optional TAO targets.
-include $(ACE_ROOT)/TAO/tao_targets.GNU

# For the following to work you need to compile the
# $(ACE_ROOT)/bin/clone.cpp file and install it in your ~/bin
# directory (or some place similar).

.PHONY: clone
clone:
	@for dir in $(CLONE); \
        do \
                (clone -s $(ACE_ROOT)/$$dir $$dir) \
        done

CORE_DIRS= \
	ace \
	apps/gperf/src \
	TAO/tao \
	TAO/TAO_IDL \
	Kokyu \
	TAO/orbsvcs/orbsvcs \
	TAO/orbsvcs/Naming_Service

CIAO_CORE_DIRS= \
        ace \
        apps/gperf/src \
	ACEXML \
	Kokyu \
        TAO/tao \
        TAO/TAO_IDL \
        TAO/orbsvcs/orbsvcs \
        TAO/orbsvcs/Naming_Service \
        TAO/CIAO/ciao \
        TAO/CIAO/tools 

CIAO_MPC_DIRS= \
	TAO/CIAO/ciao \
	TAO/CIAO/tools

.PHONY: CIAO_Core MPC_Make Core reverseclean
Core:
	@for dir in $(CORE_DIRS); \
	do \
		$(MAKE) -C $$dir; \
	done

CIAO_Core: MPC_Make
	@for dir in $(CIAO_CORE_DIRS); \
	do \
		$(MAKE) -C $$dir; \
	done

MPC_Make:
	@for dir in $(CIAO_MPC_DIRS); \
	do \
		cd $(ACE_ROOT)/$$dir && $(ACE_ROOT)/bin/mwc.pl; \
	done
	cd $(ACE_ROOT)

reverseclean:
	@$(ACE_ROOT)/bin/reverse_clean $(MAKE) $(DIRS)

#### NOTE:  The following comments describe how to create kits.
####        It's intended for use by ACE+TAO developers and
####        maintainers only.  ACE+TAO users need not be concerned
####        with creating kits, just unpacking and using them.

#### The "release" and "releaseall" targets can be used to create
#### the ACE and ACE+TAO kits.  By default, each creates a new beta
#### release.  To create a new minor or major release, add REL=minor
#### or REL=major, respectively, to the make invocation.
####
#### NOTE: the REL modifier applies to _both_ ACE and TAO in
#### releaseall!
####
#### To create a new ACE minor release and a TAO beta release:
####   % make release REL=minor
####   % cd TAO
####   % make release
####
#### There are some other release/releaseall options [default value is in
#### brackets]:
####   ACE_TAG [ACE version in your workspace]: prepend tag with -ta
####   TAO_TAG [TAO version in your workspace]: prepend tag with -tt
####
####   NOTE: the ACE and TAO versions will be updated automatically
####   by release/releaseall.  ACE_TAG and TAO_TAG can be overridden
####   to kit a particular version.
####
####   APPLY_NEW_TAG [enabled]: set to null to disable
####   CHECK [disabled]: set to -n to see what make_release will do, but not
####     do it
####   INSTALL_KIT [enabled]: set to null to not install in public
####     ftp/http directory on host ace
####   REL [beta]: set to minor or major, optionally, when applying a new tag
####   ZIP_FILES [enabled]: set to -z to disable creation of .zip files
####
#### Example creation of ACE-only kit, version ACE-5_0_1 from current
#### workspace:
#### make release ACE_TAG='-ta ACE-5_0_1' APPLY_NEW_TAG= \
####   INSTALL_KIT= ZIP_FILES=-z

CONTROLLED_FILES = \
        ACE-INSTALL.html \
        ACE-install.sh \
        ASNMP \
        AUTHORS \
        COPYING \
        ChangeLog* \
        FAQ \
        Makefile \
        Makefile.am \
        PROBLEM-REPORT-FORM \
        README \
        THANKS \
        TODO \
        VERSION \
	ACEXML \
        ace \
        ace-config.1.in \
        ace-config.in \
        aceConf.sh.in \
        apps \
        bin \
        lib \
        docs \
        etc \
        examples \
        include \
        m4 \
        netsvcs \
        os-patches \
        performance-tests \
        tests \
	Kokyu \
        websvcs

RELEASE_FILES = \
        $(addprefix ACE_wrappers/,$(CONTROLLED_FILES)) \
        ACE_wrappers/ACE-INSTALL \
        ACE_wrappers/man

ALL_RELEASE_FILES = \
        $(RELEASE_FILES) \
        ACE_wrappers/TAO

RELEASE_LIB_FILES = \
        ACE_wrappers/VERSION \
        ACE_wrappers/ace \
        ACE_wrappers/bin \
        ACE_wrappers/lib \
        ACE_wrappers/etc \
        ACE_wrappers/include \
        ACE_wrappers/m4 \
        ACE_wrappers/netsvcs \
        ACE_wrappers/tests \
        ACE_wrappers/websvcs

# Files that should get tagged at release time but shouldn't be in any
# of the release file lists since they may already be in a directory
# found in those lists.
RELEASE_TAG_FILES = \
        html \
        man/Makefile.am \
        man/man3/Makefile.am

.PHONY: release releasetao releaseall tag

ACE_TAG_VALUE = $(shell head -1 VERSION | perl -ne \
                's/.* ([\d\.]+),.*\n/$$1/; tr/./_/; print "ACE-$$_";')
ACE_TAG       = -ta $(ACE_TAG_VALUE)
TAO_TAG_VALUE = $(shell head -1 TAO/VERSION | perl -ne \
                's/.* ([\d\.]+),.*\n/$$1/; tr/./_/; print "TAO-$$_";')
TAO_TAG       = -tt $(TAO_TAG_VALUE)
CIAO_TAG_VALUE = $(shell head -1 TAO/CIAO/VERSION | perl -ne \
                's/.* ([\d\.]+),.*\n/$$1/; tr/./_/; print "CIAO-$$_";')
CIAO_TAG       = -tc $(CIAO_TAG_VALUE)
APPLY_NEW_TAG      = tag
CHECK              =
GENERATE_MAN_PAGES = -g
INSTALL_KIT        = -i
REL                = beta
ZIP_FILES          =

#### The release target creates the ACE (only) kit.
release: $(APPLY_NEW_TAG)
	@$(ACE_ROOT)/bin/make_release -k ace $(ACE_TAG) \
         $(INSTALL_KIT) $(ZIP_FILES) $(CHECK)

tag:
	@$(ACE_ROOT)/bin/make_release $(CHECK) -k ace -v $(REL) -u

#### The following target is for use by the TAO Makefile.  It should not
#### be called directly from the command line.  The releasetao target
#### creates the combined ACE-TAO kit.
releasetao:
	@$(ACE_ROOT)/bin/make_release -k ace+tao $(ACE_TAG) $(TAO_TAG) \
         $(INSTALL_KIT) $(ZIP_FILES) $(CHECK)

#### The following target is for use by the CIAO Makefile.  It should not
#### be called directly from the command line.  The releaseciao target
#### creates the combined ACE+TAO+CIAO kit.
releaseciao:
	@$(ACE_ROOT)/bin/make_release -k ace+tao+ciao $(ACE_TAG) $(TAO_TAG) $(CIAO_TAG) \
         $(INSTALL_KIT) $(ZIP_FILES) $(CHECK)

#### The releaseall target:
releaseall: $(APPLY_NEW_TAG)
	@cd TAO  &&  $(MAKE) -s releaseall REL=$(REL)

### Generate man pages
genmanpages:
	@$(ACE_ROOT)/bin/generate_rel_manpages

.PHONY: show_controlled_files show_release_files show_release_lib_files
.PHONY: show_release_tag_files

show_controlled_files:
	@echo $(CONTROLLED_FILES)

show_release_files:
	@echo $(RELEASE_FILES)

show_release_lib_files:
	@echo $(RELEASE_LIB_FILES)

show_release_tag_files:
	@echo $(RELEASE_TAG_FILES)

ACE-INSTALL: ACE-INSTALL.html
	@lynx -dump $< > $@