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 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
|
# **************************************************************************
CLEANFILES = \
coin@COIN_MAJOR_VERSION@@SUFFIX@.pdb \
coin@COIN_MAJOR_VERSION@@SUFFIX@.dll \
coin@COIN_MAJOR_VERSION@@SUFFIX@.exp \
vc*.pdb
# **************************************************************************
# Extensions which might be present.
noinst_HEADERS = \
unconfig.h \
tidbitsp.h \
coindefs.h \
SbBasicP.h
EXTRADIST = \
update-config.sh \
Make-Common.tpl
ExtraIncludeDirs = -I$(top_srcdir)/include/Inventor/annex -I$(top_builddir)
if BUILD_WITH_SUPERGLU
SUPERGLUDIR = extensions/superglu
SUPERGLULIBADD = $(SUPERGLUDIR)/lib${SUPERGLUPREFIX}GLU.la
SUPERGLULSTADD = $(SUPERGLUDIR)/${SUPERGLUPREFIX}GLU.lst
else
SUPERGLUDIR =
SUPERGLULIBADD =
SUPERGLULSTADD =
endif
# **************************************************************************
if MAC_FRAMEWORK
SUBDIRS =
else
SUBDIRS = \
extensions xml actions base bundles caches details draggers elements \
engines errors events fields fonts glue io manips misc lists nodekits \
navigation nodes shapenodes projectors sensors upgraders \
3ds collision hardcopy shadows geo threads shaders profiler \
vrml97 foreignfiles scxml doc .
endif
DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_builddir)/src -I$(top_srcdir)/src $(ExtraIncludeDirs)
# **************************************************************************
if BUILD_WITH_MSVC
lib_LIBRARIES = coin@COIN_MAJOR_VERSION@@SUFFIX@.lib
else
lib_LTLIBRARIES = libCoin@SUFFIX@.la
endif
if MAC_FRAMEWORK
# hack to change libdir value when installing Mac OS X compiler framework
lib@nop@dir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Libraries
endif
# **************************************************************************
if MAC_FRAMEWORK
libCoin@SUFFIX@_la_LIBADD =
else
if HACKING_DYNAMIC_MODULES
libCoin@SUFFIX@_la_LIBADD =
else
libCoin@SUFFIX@_la_LIBADD = \
actions/libactions.la base/libbase.la \
bundles/libbundles.la caches/libcaches.la elements/libelements.la \
elements/GL/libglelements.la engines/libengines.la \
errors/liberrors.la events/libevents.la fields/libfields.la \
fonts/libfonts.la glue/libglue.la io/libio.la misc/libmisc.la \
lists/liblists.la nodekits/libnodekits.la nodes/libnodes.la \
shapenodes/libshapenodes.la projectors/libprojectors.la \
sensors/libsensors.la details/libdetails.la draggers/libdraggers.la \
manips/libmanips.la upgraders/libupgraders.la navigation/libnavigation.la \
3ds/libformat3ds.la collision/libcollision.la hardcopy/libhardcopy.la \
threads/libthreads.la shaders/libshaders.la \
shadows/libshadows.la geo/libgeo.la foreignfiles/libforeignfiles.la \
xml/libxml.la xml/expat/libexpat.la profiler/libprofiler.la \
vrml97/libvrml97.la scxml/libscxml.la $(SUPERGLULIBADD)
endif
endif
# **************************************************************************
# Source code files for local build & dist.
if MAC_FRAMEWORK
RegularSources = \
actions/all-actions-cpp.cpp \
base/all-base-cpp.cpp \
bundles/all-bundles-cpp.cpp \
caches/all-caches-cpp.cpp \
elements/all-elements-cpp.cpp \
elements/GL/all-glelements-cpp.cpp \
engines/all-engines-cpp.cpp \
engines/all-engines-c.c \
errors/all-errors-cpp.cpp \
events/all-events-cpp.cpp \
fields/all-fields-cpp.cpp \
fonts/all-fonts-cpp.cpp \
glue/all-glue-cpp.cpp \
io/all-io-cpp.cpp \
misc/all-misc-cpp.cpp \
lists/all-lists-cpp.cpp \
nodekits/all-nodekits-cpp.cpp \
nodes/all-nodes-cpp.cpp \
shapenodes/all-shapenodes-cpp.cpp \
projectors/all-projectors-cpp.cpp \
sensors/all-sensors-cpp.cpp \
details/all-details-cpp.cpp \
draggers/all-draggers-cpp.cpp \
manips/all-manips-cpp.cpp \
upgraders/all-upgraders-cpp.cpp \
navigation/all-navigation-cpp.cpp \
3ds/all-3ds-cpp.cpp \
collision/all-collision-cpp.cpp \
hardcopy/all-hardcopy-cpp.cpp \
threads/all-threads-cpp.cpp \
shaders/all-shaders-cpp.cpp \
shadows/all-shadows-cpp.cpp \
geo/all-geo-cpp.cpp \
foreignfiles/all-foreignfiles-cpp.cpp \
xml/all-xml-cpp.cpp \
xml/expat/all-expat-c.c \
profiler/all-profiler-cpp.cpp \
vrml97/all-vrml97-cpp.cpp \
scxml/all-scxml-cpp.cpp \
tidbits.cpp \
share/gl/CoinGLPerformance.cpp
else
RegularSources = \
tidbits.cpp \
share/gl/CoinGLPerformance.cpp
endif
PrivateHeaders = \
share/gl/CoinGLPerformance.h
libCoin@SUFFIX@_la_SOURCES = $(RegularSources)
coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_SOURCES = $(RegularSources)
EXTRA_libCoin@SUFFIX@_la_SOURCES = $(PrivateHeaders)
EXTRA_coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_SOURCES = $(PrivateHeaders)
# **************************************************************************
coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_LIBADD = \
actions/actions.lst base/base.lst \
bundles/bundles.lst caches/caches.lst elements/elements.lst \
elements/GL/glelements.lst engines/engines.lst \
errors/errors.lst events/events.lst fields/fields.lst \
fonts/fonts.lst glue/glue.lst io/io.lst misc/misc.lst lists/lists.lst \
nodekits/nodekits.lst nodes/nodes.lst shapenodes/shapenodes.lst \
projectors/projectors.lst sensors/sensors.lst navigation/navigation.lst \
details/details.lst draggers/draggers.lst manips/manips.lst \
upgraders/upgraders.lst \
3ds/format3ds.lst collision/collision.lst hardcopy/hardcopy.lst \
threads/threads.lst shaders/shaders.lst \
shadows/shadows.lst geo/geo.lst foreignfiles/foreignfiles.lst \
xml/xml.lst xml/expat/expat.lst profiler/profiler.lst \
vrml97/vrml97.lst scxml/scxml.lst $(SUPERGLULSTADD)
# **************************************************************************
# Installation information.
# On Mac OS 10.2 or later, create two-level namespace binaries and use
# prebinding. Also pad the install_name to make it possible to change
# it later (e.g. to include the library in an app bundle). On Mac OS
# 10.3 or later, use -undefined dynamic_lookup to delay symbol lookup
# to runtime (needed to make enable_hacking work)
if MACOSX_10_2FF
if MACOSX_USE_DYNAMIC_LOOKUP
# Must export deployment target environment, since it is required by
# the linker to allow the -undefined dynamic_lookup flag.
export MACOSX_DEPLOYMENT_TARGET=@MACOSX_DEPLOYMENT_TARGET@
LibtoolLinkArgs = -no-undefined -Wl,-twolevel_namespace -Wl,-undefined,dynamic_lookup -Wl,-headerpad_max_install_names
else
LibtoolLinkArgs = -no-undefined -Wl,-twolevel_namespace -Wl,-undefined,error -Wl,-prebind -Wl,-seg1addr,0x3f000000 -Wl,-headerpad_max_install_names
endif
else
LibtoolLinkArgs = -no-undefined
endif
libCoin@SUFFIX@_la_LDFLAGS = \
$(LibtoolLinkArgs) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
# **************************************************************************
# Custom rule for linking a Visual C++ (MS Windows) library.
coin@COIN_MAJOR_VERSION@@SUFFIX@.lib: Makefile \
$(coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_OBJECTS) \
$(coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_DEPENDENCIES)
@basename="coin@COIN_MAJOR_VERSION@@SUFFIX@"; \
rm -f "$$basename.dll" "$$basename.lib"; \
echo "Linking $$basename.lib..."; \
echo $(CC) $(LDFLAGS) $(LIBFLAGS) \
$(coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_OBJECTS) \
$(coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_LIBADD) $(LIBS); \
$(CC) $(LDFLAGS) $(LIBFLAGS) \
$(coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_OBJECTS) \
$(coin@COIN_MAJOR_VERSION@@SUFFIX@_lib_LIBADD) $(LIBS);
# **************************************************************************
if MAC_FRAMEWORK
install-data-local: install-exec-am
cd $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/Current && ln -sf Libraries/libCoin.dylib $(MAC_FRAMEWORK_NAME) && cd -; \
cd $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework && ln -sf Versions/Current/$(MAC_FRAMEWORK_NAME) $(MAC_FRAMEWORK_NAME) && install_name_tool -id $(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/$(MAC_FRAMEWORK_NAME) $(MAC_FRAMEWORK_NAME) && cd -;
else
install-data-local:
@basename="coin@COIN_MAJOR_VERSION@@SUFFIX@"; \
for ext in lib; do \
file="$$basename.$$ext"; \
if test -f "$$file"; then \
$(mkinstalldirs) "$(DESTDIR)$(libdir)"; \
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(libdir)/$$file"; \
$(INSTALL_DATA) "$$file" "$(DESTDIR)$(libdir)/$$file" || exit 1; \
fi \
done;
endif
if BUILD_WITH_MSVC
install-exec-local: coin@COIN_MAJOR_VERSION@@SUFFIX@.lib
@basename="coin@COIN_MAJOR_VERSION@@SUFFIX@"; \
for ext in dll pdb; do \
file="$$basename.$$ext"; \
if test -f "$$file"; then \
$(mkinstalldirs) "$(DESTDIR)$(bindir)"; \
echo " $(INSTALL_PROGRAM) $$file $(DESTDIR)$(bindir)/$$file"; \
$(INSTALL_PROGRAM) "$$file" "$(DESTDIR)$(bindir)/$$file" || exit 1; \
fi \
done
else
install-exec-local:
endif
install-symlinks:
@for dir in \
actions base bundles caches details draggers elements engines \
errors events fields fonts glue io manips misc lists nodekits \
nodes navigation shapenodes projectors sensors upgraders 3ds \
collision hardcopy threads shaders shadows geo xml vrml97 \
foreignfiles ; do \
(cd $$dir; $(MAKE) install-symlinks;) \
done ;
uninstall-local:
@basename="coin@COIN_MAJOR_VERSION@@SUFFIX@"; \
for file in \
"$(DESTDIR)$(bindir)/$$basename.dll" \
"$(DESTDIR)$(bindir)/$$basename.pdb" \
"$(DESTDIR)$(libdir)/$$basename.lib" \
"$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/$(MAKE_FRAMEWORK_NAME)"; do \
if test -f "$$file"; then \
echo " rm -f" "$$file"; \
rm -f "$$file"; \
fi \
done; \
baseincdir="$(DESTDIR)$(libCoinincdir)"; \
for dir in \
"$$baseincdir/3ds" \
"$$baseincdir/actions" \
"$$baseincdir/base" \
"$$baseincdir/bundles" \
"$$baseincdir/caches" \
"$$baseincdir/collision" \
"$$baseincdir/details" \
"$$baseincdir/draggers" \
"$$baseincdir/elements" \
"$$baseincdir/engines" \
"$$baseincdir/errors" \
"$$baseincdir/events" \
"$$baseincdir/fields" \
"$$baseincdir/fonts" \
"$$baseincdir/glue" \
"$$baseincdir/hardcopy" \
"$$baseincdir/lists" \
"$$baseincdir/lock" \
"$$baseincdir/manips" \
"$$baseincdir/misc" \
"$$baseincdir/nodekits" \
"$$baseincdir/nodes" \
"$$baseincdir/navigation" \
"$$baseincdir/projectors" \
"$$baseincdir/sensors" \
"$$baseincdir/system" \
"$$baseincdir/threads" \
"$$baseincdir/upgraders" \
"$$baseincdir/VRMLnodes" \
"$$baseincdir/MPEG" \
"$$baseincdir/XML" \
"$$baseincdir/C/XML" \
"$$baseincdir/C/base" \
"$$baseincdir/C/errors" \
"$$baseincdir/C/glue" \
"$$baseincdir/C/threads" \
"$$baseincdir/C" \
"$$baseincdir"; do \
if test -d "$$dir"; then \
echo " rmdir $$dir"; \
rmdir "$$dir"; \
fi \
done; \
:
|