root/juggler/branches/2.2/modules/vrjuggler/vrj.appdefs.mk.in

Revision 19999, 3.6 kB (checked in by patrick, 1 year ago)

MFT r19994: Added extra compiler flags for Objective-C and Objective-C++

code. Doozer 2.1.5 takes advantage of this information.

  • 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 # vrj.appdefs.mk.in use by all VR Juggler application makefiles.
29 # This requires GNU make.
30 # Generated for use on @PLATFORM@
31 # -----------------------------------------------------------------------------
32
33 VJ_BASE_DIR?=           @prefix@
34
35 CC=                     @APP_CC@
36 CXX=                    @APP_CXX@
37 LD=                     @APP_LINK@
38 CXX_PLUGIN=             @APP_CXX_PLUGIN@
39
40 ABI=                    @ABI@
41 ISA=                    @ISA@
42
43 ifneq ($(ABI),)
44    # XXX: In general, we need to convert $(ABI) to a lower-case value to
45    # match what Doozer expects for $(OS_ABI).  This little hack should be good
46    # enough for now, though.  -PH 4/21/2004
47    ifeq ($(ABI), N32)
48       OS_ABI?=          n32
49    else
50       OS_ABI?=          $(ABI)
51    endif
52 endif
53
54 ifneq ($(ISA),)
55    OS_ISA?=             $(ISA)
56 endif
57
58 # Set to either 'dbg' or 'opt'.  We default to 'dbg'.
59 BUILD_TYPE?=            dbg
60
61 EXTRA_CFLAGS+=          @APP_CFLAGS@
62 EXTRA_CXXFLAGS+=        @APP_CXXFLAGS@ @APP_DEFS@
63 EXTRA_OBJCFLAGS+=       $(EXTRA_CFLAGS)
64 EXTRA_OBJCXXFLAGS+=     $(EXTRA_CXXFLAGS)
65 #EXTRA_INCLUDES+=               @APP_INCLUDES@
66 EXTRA_LDFLAGS+=         @APP_LINK_FLAGS@
67
68 EXTRA_DEBUG_FLAGS+=     @APP_DEBUG_CFLAGS@
69 EXTRA_OPTIM_FLAGS+=     @APP_OPTIM_CFLAGS@
70
71 LINKALL_ON=             @APP_LINKALL_ON@
72 LINKALL_OFF=            @APP_LINKALL_OFF@
73
74 STATIC_ON=              @APP_LINK_STATIC_ON@
75 STATIC_OFF=             @APP_LINK_STATIC_OFF@
76
77 EXTRA_LIBS+=            @APP_BASIC_LIBS_BEGIN@ @APP_BASIC_LIBS@         \
78                         @APP_BASIC_LIBS_END@ @APP_EXTRA_LIBS@           \
79                         $(NULL)
80
81 # Mac OS X bundle information used by Doozer.
82 APP_ICNS=               $(shell $(FLAGPOLL) vrjuggler --exact-version=$(VRJ_VERSION) --get-vrj-app-icons)
83 APP_RESOURCES=          $(shell $(FLAGPOLL) vrjuggler --exact-version=$(VRJ_VERSION) --get-vrj-app-all-resources)
84 APP_INFO_PLIST=         $(shell $(FLAGPOLL) vrjuggler --exact-version=$(VRJ_VERSION) --get-vrj-app-info-plist)
85 APP_NIBS=               $(shell $(FLAGPOLL) vrjuggler --exact-version=$(VRJ_VERSION) --get-vrj-app-nib)
86 APP_INFO_STRINGS=       $(shell $(FLAGPOLL) vrjuggler --exact-version=$(VRJ_VERSION) --get-vrj-app-info-strings)
87
88 include $(DZR_BASE_DIR)/mk/dzr.basicapp.mk
89
90 ifeq ($(HOSTTYPE), Win32)
91 PLUGIN_DEFS=            -DVRJ_APP_PLUGIN="extern \"C\" _declspec(dllexport)"
92 else
93 PLUGIN_DEFS=            -DVRJ_APP_PLUGIN="extern \"C\""
94 endif
95
96 ifdef BUILD_PLUGIN
97 EXTRA_CFLAGS+=          -DBUILD_AS_VRJ_PLUGIN $(PLUGIN_DEFS)
98 EXTRA_CXXFLAGS+=        -DBUILD_AS_VRJ_PLUGIN $(PLUGIN_DEFS)
99 EXTRA_OBJCFLAGS+=       -DBUILD_AS_VRJ_PLUGIN $(PLUGIN_DEFS)
100 EXTRA_OBJCXXFLAGS+=     -DBUILD_AS_VRJ_PLUGIN $(PLUGIN_DEFS)
101 endif
102
103 ifeq ($(BUILD_TYPE), dbg)
104 PLUGIN_TYPE_SUFFIX=     _d
105 endif
106
107 PLUGIN_NAME=            $(APP_NAME)$(PLUGIN_TYPE_SUFFIX)$(OS_SHLIB_EXT)
108
109 $(PLUGIN_NAME): $(OBJS)
110         $(CXX_PLUGIN) $(LINK_OUT)$@ $(OBJS) $(EXTRA_LIBS) $(LIBS)
111
112 plugin:
113         $(MAKE) BUILD_PLUGIN=1 $(OBJS)
114         $(MAKE) BUILD_PLUGIN=1 $(PLUGIN_NAME)
Note: See TracBrowser for help on using the browser.