root/juggler/branches/2.2/modules/vrjuggler/plugins/Makefile.inc.in

Revision 20507, 6.0 kB (checked in by patrick, 1 year ago)

Fixed the release build. The 'debug' subdirectory for the plug-ins was not
being created correctly, and that was causing the build to fail when the
debug plug-in was linked.

  • 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 # Specialized include file for the top-level makefile.  Targets and variables
29 # needed for building the whole source tree are provided here.  This file
30 # should only be included by the top-level makefile.  It is written in such a
31 # way that no assumptions are made by this file about what the including file
32 # provides except that it includes make.defs.mk.
33 #
34 # Generated for use on @PLATFORM@
35 # -----------------------------------------------------------------------------
36
37 # Variables whose values are specific to this file.
38 includedir=     @includedir@
39 instlinks=      $(topdir)/instlinks
40 srcdir=         @srcdir@
41 top_srcdir=     @top_srcdir@
42
43 # Extra compiler and linker options needed only by this file.
44 DBG_FLAGS=      -DJUGGLER_DEBUG @DBG_FLAGS@
45 OPT_FLAGS=      -DJUGGLER_OPT -DNDEBUG @OPT_FLAGS@
46
47 HAVE_TWEEK_CXX= @HAVE_TWEEK_CXX@
48 BUILD_JAVA=     @BUILD_JAVA@
49
50 # =============================================================================
51 # Build and installation directory naming and ownership information.
52 # =============================================================================
53 DEFAULT_DIR=    $(OPT_DIR)
54
55 # If we have a name for the install group, define group-setting options for
56 # UNIX commands (chown(1), chgrp(1)) and for local Perl scripts
57 # (makefiles-gen.pl in particular).
58 ifdef GROUP_NAME
59     _GROUP_OPT_PL=      --gname="$(GROUP_NAME)"
60 endif
61
62 # =============================================================================
63 # Library targets.
64 # =============================================================================
65
66 BEFOREBUILD=    beforebuild
67 AFTERBUILD=     afterbuild
68
69 # Things to do before the object files and library are built.
70 beforebuild:
71         @-[ ! -d $(DSO_PLUGIN_DIR) ] && rm -rf $(LIBDIR_BASE)
72         @$(MKINSTALLDIRS) $(DSO_PLUGIN_DIR)
73         @$(MKINSTALLDIRS) $(DSO_PLUGIN_DIR)/debug
74
75 # Things to do after the object files and library are built.
76 afterbuild:
77         @$(MAKE) links
78
79 # =============================================================================
80 # Make links for developer use that provide the needed functionality for
81 # the $VJ_BASE_DIR environment variable to be used when needed.
82 # $VJ_BASE_DIR should be set to $(instlinks).
83 # =============================================================================
84 links:
85         @echo "------------------------------------------------"
86         @echo "Setting up developer installation"
87         @echo "------------------------------------------------"
88 ifdef BUILD_TYPE
89         $(MAKE) links-$(BUILD_TYPE)
90 else
91         $(MAKE) links-dbg
92 endif
93
94 links-all:
95         @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" installworld
96
97 links-dbg:
98         @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" install-debug
99
100 links-opt:
101         @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" install-optim
102
103 links-prof:
104         @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" install-profiled
105
106 links-prof-libs:
107         @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" install-prof
108         @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" install-prof-dso
109
110 # Remove the links in $(instlinks).  We cannot do this in the global build,
111 # however, because it would blow away links set up by our dependencies.
112 clean-links:
113 ifndef GLOBAL_BUILD
114         @echo "------------------------------------------------"
115         @echo "Removing developer installation links"
116         @echo "------------------------------------------------"
117         rm -rf $(instlinks)
118 endif
119
120 # =============================================================================
121 # Installation targets.  The default (what is done by 'install') is to install
122 # the static debugging version of the libraries.  The steps taken for a full
123 # installation are:
124 #
125 #     1) Create the full installation directory hierarchy.
126 #     2) Install the libraries.
127 #     3) Install the header files.
128 #     4) Install the test programs.
129 #     5) Install the contents of the data directory.
130 #     6) Install the Java-based config editor (if possible).
131 # =============================================================================
132
133 BEFOREINSTALL=  beforeinstall
134
135 # Steps to take before beginning the installation process.  This target is
136 # independent of the current ABI.
137 beforeinstall:
138         if [ -d $(DSO_PLUGIN_DIR) ] ; then                              \
139           $(PERL) $(scriptdir)/install-dir.pl -m $(EXEC_PERMS)          \
140             $(GROUP_OPT_UNIX) -e .so,.dll,.dylib $(EXTRA_INSTALL_ARGS)  \
141             -o $(libdir)$(LIBBITSUF)/$(DSO_PLUGIN_SUBDIR) -i            \
142             $(DSO_PLUGIN_DIR) ;                                         \
143         fi
144
145 # =============================================================================
146 # Clean-up targets.
147 # =============================================================================
148 _clobber:
149         @$(MAKE) cleandepend
150         @$(MAKE) clean-links
151
152 # Define $(_LOCAL_CLEAN) and $(_LOCAL_CLOBBER) to inform the shared 'clean'
153 # and 'clobber' targets that there is a '_clean' target and a '_clobber'
154 # target to be run besides the standard targets.
155 _LOCAL_CLOBBER= 1
156
157 include $(MKPATH)/dpp.libs.mk
158 include $(MKPATH)/dpp.clean.mk
159 include plugin.defs.mk
160
161 CLEAN_DIRS+=    $(BUILDDIR_BASE) $(LIBDIR_NAME)
162 CLOBBER_DIRS+=  $(BUILDDIR_BASE) $(LIBDIR_NAME)
Note: See TracBrowser for help on using the browser.