-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
170 lines (150 loc) · 4.57 KB
/
Makefile
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
#
# MICO --- a free CORBA implementation
# Copyright (C) 1997 Kay Roemer & Arno Puder
# Copyright (c) 1998-2010 by The Mico Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Send comments and/or bug reports to:
#
include MakeVars
ADMDIRS = admin include
ifeq ($(ORB_CORE_ONLY), no)
LIBDIRS = orb ir idl auxdir coss ccm
PRGDIRS = orb ir cpp idl daemon auxdir coss ccm tools
else
LIBDIRS = orb
PRGDIRS= orb
endif
EXTRADIRS = test demo
ALLDIRS = admin orb ir daemon idl cpp auxdir coss ccm test tools demo
INSTALLDIRS = admin orb ir daemon idl cpp auxdir coss ccm tools include man demo
# Bootstrap minimal build configuration
MINLIBDIRS = orb ir idl
MINPRGDIRS = cpp idl
all .NOTPARALLEL: system
world .NOTPARALLEL: system extra
system:
ifeq ($(USE_PCH_DIR), yes)
-mkdir pch
endif
for i in $(ADMDIRS); do $(MAKE) -C $$i adm || exit 1; done
for i in $(LIBDIRS); do $(MAKE) -C $$i .depend && $(MAKE) -C $$i lib || exit 1; done
for i in $(PRGDIRS); do $(MAKE) -C $$i .depend && $(MAKE) -C $$i prg || exit 1; done
extra:
for i in $(EXTRADIRS); do $(MAKE) -C $$i all || exit 1; done
clean:
find . -name '*~' | xargs rm -f foobarbazbummbang
for i in $(ALLDIRS); do $(MAKE) -C $$i clean || exit 1; done
if test -f doc/Makefile; then $(MAKE) -C doc clean || exit 1; fi
rm -rf libs
ifeq ($(USE_PCH_DIR), yes)
rm -rf pch
endif
rm -f FAQ core
distclean: clean
rm -f demo/MakeVars.install admin/mico-c++ admin/mico-shc++
rm -f admin/mico-ld admin/mico-shld admin/mico-ar admin/mico-setup.sh
rm -f admin/mico-setup.csh demo/siegel/diffs
rm -f admin/mico-config
rm -f MakeVars
rm -f config.*
rm -f include/mico/config.h
rm -f include/mico/config.idl
install:
for i in $(INSTALLDIRS); do $(MAKE) -C $$i install || exit 1; done
if test -f doc/doc.ps; then \
$(IDIRCMD) $(SHARED_INSTDIR)/doc/mico; \
$(IMANCMD) doc/doc.ps $(SHARED_INSTDIR)/doc/mico/manual.ps; \
fi
$(LDCONFIG)
install-cd:
for i in $(INSTALLDIRS); do $(MAKE) -C $$i install-cd || exit 1; done
if test -f doc/doc.ps; then \
$(IDIRCMD) $(SHARED_INSTDIR)/doc/mico; \
$(IMANCMD) doc/doc.ps $(SHARED_INSTDIR)/doc/mico/manual.ps; \
fi
dist:
admin/mksrcdist
release:
admin/mkrelease
manifest: distclean
admin/mkmanifest
autoconf:
autoconf
sed -e 's/^extern "C" void exit(int);/#include <stdlib.h>/g' < configure > configure.tmp
mv configure.tmp configure
chmod +x configure
dep:
for i in $(ADMDIRS); do $(MAKE) -C $$i adm || exit 1; done
for i in $(PRGDIRS); do $(MAKE) -C $$i .depend || exit 1; done
generate:
$(MAKE) -C orb generate
$(MAKE) -C ir generate
$(MAKE) -C daemon generate
$(MAKE) -C ccm generate
bootstrap:
ifeq ($(USE_SL3), yes)
ifeq ($(USE_CSL2), yes)
ifeq ($(USE_CSIV2), yes)
ifeq ($(USE_MESSAGING), yes)
ifeq ($(THREADING_POLICIES), yes)
@echo
@echo "Starting MICO bootstrap..."
@echo
ifeq ($(USE_PCH_DIR), yes)
-mkdir pch
endif
for i in $(ADMDIRS); do $(MAKE) -C $$i adm || exit 1; done
for i in $(MINLIBDIRS); do $(MAKE) -C $$i lib || exit 1; done
for i in $(MINPRGDIRS); do $(MAKE) -C $$i prg || exit 1; done
$(MAKE) generate
$(MAKE) clean
$(MAKE) all
find . -name '*.backup' -exec rm \{} \;
@echo
@echo "MICO bootstrap finished successfully"
@echo
else
@echo
@echo "ERROR: you have to enable MICO Threading Policies for bootstrap (do not use --disable-threading-policies configure option)"
@echo
endif
else
@echo
@echo "ERROR: you have to enable MICO Messaging for bootstrap (--enable-messaging configure option)"
@echo
endif
else
@echo
@echo "ERROR: you have to enable MICO CSIv2 for bootstrap (--enable-csiv2 configure option)"
@echo
endif
else
@echo
@echo "ERROR: you have to enable MICO CSL2 for bootstrap (--enable-csl2 configure option)"
@echo
endif
else
@echo
@echo "ERROR: you have to enable MICO SL3 for bootstrap (--enable-sl3 configure option)"
@echo
endif
check:
$(MAKE) -C test check
.depend:
for i in $(ADMDIRS); do $(MAKE) -C $$i adm || exit 1; done
for i in $(PRGDIRS); do $(MAKE) -C $$i .depend || exit 1; done