root/juggler/branches/2.2/modules/tweek/Makefile.in

Revision 20220, 11.4 kB (checked in by patrick, 1 year ago)

MFT r20219: Disable building profiled libraries. Right now, Flagpoll does not

quite support what we need in order to be able to build profiled
libraries, and until that is resolved, there is no easy way for
the profiled build to be fixed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # ************** <auto-copyright.pl BEGIN do not edit this line> **************
2 #
3 # VR Juggler is (C) Copyright 1998-2007 by Iowa State University
4 #
5 # Original Authors:
6 #   Allen Bierbaum, Christopher Just,
7 #   Patrick Hartling, Kevin Meinert,
8 #   Carolina Cruz-Neira, Albert Baker
9 #
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Library General Public
12 # License as published by the Free Software Foundation; either
13 # version 2 of the License, or (at your option) any later version.
14 #
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 # Library General Public License for more details.
19 #
20 # You should have received a copy of the GNU Library General Public
21 # License along with this library; if not, write to the
22 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 # Boston, MA 02111-1307, USA.
24 #
25 # *************** <auto-copyright.pl END do not edit this line> ***************
26
27 # -----------------------------------------------------------------------------
28 # Base Makefile.in for Tweek.  It requires GNU make.
29 #
30 # Generated for use on @PLATFORM@
31 # -----------------------------------------------------------------------------
32 # Targets are:
33 #
34 # world           - Build and install everything.
35 # world-all-abi   - Build and install everything using all supported ABIs.
36 # buildworld      - Build everything (same as 'all').
37 # installworld    - Install everything (same as 'install-all').  This requires
38 #                   that 'buildworld' be successfully completed beforehand.
39 # release         - Build and install a release version.
40 #
41 # all             - Build everything.
42 # all-abi         - Build everything using all supported ABIs.
43 # debug           - Build the Tweek libraries (dynamic and static) with
44 #                   debugging symbols turned on.
45 # dbg             - Build the debugging, static copy of the libraries.
46 # ddso            - Build the debugging, dynamic shared object version of the
47 #                   libraries.
48 # optim           - Build the Tweek libraries (dynamic and static) with
49 #                   optimization flags enabled.
50 # opt             - Build the optimized, static version of the libraries.
51 # dso             - Build the dynamic shared object version of the libraries.
52 # obj             - Build the object files using the default value for
53 #                   $(OBJDIR).
54 #
55 # links           - Define links (for developer use only) that provide
56 #                   functionality allowing the use of the $TWEEK_BASE_DIR
57 #                   environment variable.
58 # clean-links     - Remove the symlinks created by 'links'.
59 #
60 # hier            - Make the full directory hierarchy for the installation.
61 # install-all     - Install all versions of the libraries, all header files,
62 #                   and the test code.
63 # install-all-abi - Install every ABI possible on the target platform.
64 # install         - Install the full debugging version of Tweek (with both
65 #                   static and dynamic libraries).
66 # install-debug   - Same as 'install'.
67 # install-dbg     - Install the debugging, static version of the libraries.
68 # install-ddso    - Install the debugging, dynamic shared object version of
69 #                   the libraries.
70 # install-optim   - Install the full optimized version of Tweek (with both
71 #                   static and dynamic libraries).
72 # install-opt     - Install the optimized, static version of the libraries.
73 # install-dso     - Install the dynamic shared object version of the libraries.
74 # install-headers - Install only the header files.
75 # install-test    - Install only the test code.
76 #
77 # docs            - Build the internal and the public documentation.
78 # doc-internal    - Build only the internal documentation.
79 # doc-public      - Build only the public documentation.
80 #
81 # clean           - Clean up everything (uses common 'clean' target).
82 # cleandepend     - Clean up the dependency files (uses common 'cleandepend'
83 #                   target).
84 # clobber         - Clean up everything and remove the directories containing
85 #                   the compiled libraries and its object files.
86 #
87 # info            - Print out information about the build process that may be
88 #                   useful to the user.
89 #
90 # The default target is 'debug'.  'install' will install the debugging, static
91 # version of the libraries.
92 # -----------------------------------------------------------------------------
93
94 default: debug
95
96 # This is a hack to deal with GNU make's ignorance about defined targets.
97 # Without this, the 'default' set in dpp.subdir.mk becomes the default
98 # target, and that's not what we want.
99 DEFAULT_SET=    1
100
101 # Include common definitions.
102 include @topdir@/make.defs.mk
103
104 STARTTIME:=     $(shell LC_TIME=C date)
105
106 BUILD_CXX=              @BUILD_CXX@
107 BUILD_JAVA=             @BUILD_JAVA@
108 BUILD_PYTHON_IDL=       @BUILD_PYTHON_IDL@
109 BUILD_PYTHON_GUI=       @BUILD_PYTHON_GUI@
110 BUILD_EXTENSIONS=       @BUILD_EXTENSIONS@
111
112 BUILD_PROF_C=   @BUILD_PROF_C@
113 BUILD_PROF_CXX= @BUILD_PROF_CXX@
114
115 # If we can build both C and C++ profiled objects, we will build profiled
116 # libraries.
117 #ifeq ($(BUILD_PROF_C), Y)
118 #ifeq ($(BUILD_PROF_CXX), Y)
119 #   BUILD_PROF_LIBS=    1
120 #endif
121 #endif
122
123 # =============================================================================
124 # Lists used for various types of recursion.
125 # =============================================================================
126
127 # Subdirectories used for recursion through the source tree.
128 SUBDIR=         
129
130 ifeq ($(BUILD_CXX), Y)
131    SUBDIR+=     tweek
132 endif
133
134 ifeq ($(BUILD_JAVA), Y)
135    SUBDIR+=     java
136 endif
137
138 # Only build extensions if requested.
139 ifeq ($(BUILD_EXTENSIONS), Y)
140    SUBDIR+=     extensions
141 endif
142
143 # =============================================================================
144 # Library targets.  The default is 'debug' as defined above.
145 # =============================================================================
146
147 # ------------------------------------------------
148 # Build and install everything (i.e., the world).
149 # ------------------------------------------------
150 world:
151         @echo "==============================================================="
152         @echo ">>> Tweek make world started $(STARTTIME)"
153         @echo "==============================================================="
154 ifndef NO_CLEAN
155         @$(MAKE) clobber
156 endif
157         @$(MAKE) $(BEFOREBUILD)
158         @$(MAKE) libs
159         @$(MAKE) BUILD_TYPE=all $(AFTERBUILD)
160         @echo "---------------------------------------------------------------"
161         @echo "Beginning Tweek installation process"
162         @echo "---------------------------------------------------------------"
163         @$(MAKE) beforeinstall
164         @$(MAKE) install-libs
165         @$(MAKE) do-post-install
166         @echo "==============================================================="
167         @echo ">>> Tweek make world started $(STARTTIME)"
168         @echo ">>> Tweek make world completed `LTIME=C date`"
169         @echo "==============================================================="
170
171 # ------------------------------------------------------------------------
172 # Build and install everything (i.e., the world) using all possible ABIs.
173 # ------------------------------------------------------------------------
174 world-all-abi:
175         @echo "==============================================================="
176         @echo ">>> Tweek make world started on $(STARTTIME)"
177         @echo "==============================================================="
178 ifndef NO_CLEAN
179         @$(MAKE) clobber
180 endif
181         @$(MAKE) $(BEFOREBUILD)
182         @for abi in $(ABI_LIST) ; do                                    \
183             echo "------------------------------------------------" ;   \
184             echo "Building libraries using $$abi" ;                     \
185             echo "------------------------------------------------" ;   \
186             $(MAKE) tweekABI=$$abi libs ;                               \
187           done
188         @$(MAKE) BUILD_TYPE=all $(AFTERBUILD)
189         @echo "---------------------------------------------------------------"
190         @echo "Beginning Tweek installation process"
191         @echo "---------------------------------------------------------------"
192         @$(MAKE) beforeinstall
193         @for abi in $(ABI_LIST) ; do                                    \
194             echo "------------------------------------------------" ;   \
195             echo "Installing $$abi version of libraries" ;              \
196             echo "------------------------------------------------" ;   \
197             $(MAKE) tweekABI=$$abi install-libs ;                       \
198           done
199         @$(MAKE) do-post-install
200         @echo "==============================================================="
201         @echo ">>> Tweek make world started on $(STARTTIME)"
202         @echo ">>> Tweek make world completed on `LTIME=C date`"
203         @echo "==============================================================="
204
205 # -------------------------------------------------------------
206 # Build and install everything (i.e., the world) for a release.
207 # -------------------------------------------------------------
208 release:
209         @echo "==============================================================="
210         @echo ">>> Tweek make release started on $(STARTTIME)"
211         @echo "==============================================================="
212 ifndef NO_CLEAN
213         @$(MAKE) clobber
214 endif
215         @$(MAKE) $(BEFOREBUILD)
216         @$(MAKE) BUILD_PROF_C=N BUILD_PROF_CXX=N libs
217         @$(MAKE) BUILD_TYPE=opt $(AFTERBUILD)
218         @echo "---------------------------------------------------------------"
219         @echo "Beginning Tweek release installation process"
220         @echo "---------------------------------------------------------------"
221         @$(MAKE) beforeinstall
222         @$(MAKE) BUILD_PROF_C=N BUILD_PROF_CXX=N install-libs
223         @$(MAKE) BUILD_PROF_C=N BUILD_PROF_CXX=N do-post-install
224         $(INSTALL) -m $(FILE_PERMS) $(GROUP_OPT_UNIX)                   \
225           $(EXTRA_INSTALL_ARGS) $(TWEEKROOT_ABS)/ChangeLog $(projdatadir)
226         $(INSTALL) -m $(FILE_PERMS) $(GROUP_OPT_UNIX)                   \
227           $(EXTRA_INSTALL_ARGS) $(JUGGLERROOT_ABS)/COPYING.txt $(projdatadir)
228         $(INSTALL) -m $(FILE_PERMS) $(GROUP_OPT_UNIX)                   \
229           $(EXTRA_INSTALL_ARGS) $(TWEEKROOT_ABS)/README.txt $(projdatadir)
230         $(INSTALL) -m $(FILE_PERMS) $(GROUP_OPT_UNIX)                   \
231           $(EXTRA_INSTALL_ARGS) $(TWEEKROOT_ABS)/RELEASE_NOTES.txt      \
232           $(projdatadir)
233         @echo "Build time: `LTIME=C date`" > $(projdatadir)/BUILD_TIME
234         @echo "==============================================================="
235         @echo ">>> Tweek make release started on $(STARTTIME)"
236         @echo ">>> Tweek make release completed on `LTIME=C date`"
237         @echo "==============================================================="
238
239 # -------------------------------------
240 # Build all versions of the libraries.
241 # -------------------------------------
242 buildworld: all
243
244 # ------------------------------------------------------------------------
245 # Do a full installation all versions of the libraries and the associated
246 # files.
247 # ------------------------------------------------------------------------
248 installworld: install-all
249
250 .PHONY: test
251
252 PROCS=  1
253
254 test:
255         $(MAKE) -C test/TestSuite -j $(PROCS) runner
256         test/TestSuite/runner noninteractive
257
258 # =============================================================================
259 # Human-readable information about the build system.
260 # =============================================================================
261 info:
262         @echo "\nInfo for the make of Tweek"
263         @echo "\nOBJDIR: $(OBJDIR)"
264         @echo "TWEEKROOT_ABS: $(TWEEKROOT_ABS)"
265         @echo "Default ABI: $(ABI)"
266         @echo "Default instruction set architecture: $(ISA)"
267         @echo "ABI list: $(ABI_LIST)"
268         @echo "DBG_BUILDDIR: $(DBG_BUILDDIR)"
269         @echo "OPT_BUILDDIR: $(OPT_BUILDDIR)"
270         @echo "Installation prefix: $(prefix)"
271         @echo "includedir: $(includedir)"
272         @echo "libdir: $(libdir)"
273         @$(SHELL) $(scriptdir)/print-targets.sh
274
275 include $(MKPATH)/dpp.subdir.mk
276 include Makefile.inc
Note: See TracBrowser for help on using the browser.