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
|
if BUILD_3DS_CAPABILITIES
RegularSources = \
3dsLoader.cpp \
SoStream.cpp
LinkHackSources = \
all-3ds-cpp.cpp
PrivateHeaders = \
3dsLoader.h \
SoStream.h \
3ds-dummy.cpp
# dummy included for 'make dist'
else
RegularSources = 3ds-dummy.cpp
LinkHackSources = 3ds-dummy.cpp
# for 'make dist'
PrivateHeaders = 3dsLoader.cpp 3dsLoader.h SoStream.cpp SoStream.h
endif
PublicHeaders =
ObsoleteHeaders =
# Automake wasn't too supportive of having variables starting with numbers,
# so "format" was prefixed here. 20030217 larsa
##$ BEGIN TEMPLATE Make-Common(format3ds, 3ds)
# **************************************************************************
# This template depends on the following variables having been set up before
# its invokation.
#
# PublicHeaders - header files that should be installed
# PrivateHeaders - source files that should be distributed, but not
# installed - including source-included source files.
# RegularSources - source files compiled in this directory
# LinkHackSources - alternative source files used on -enable-compact compilation
# ObsoletedHeaders - header files that should be removed upon installation
# Everything below is autogenerated from a macro, so don't modify
# within the Makefile.am itself. 19991201 mortene.
DISTCLEANFILES = \
ii_files/*.ii
if HACKING_COMPACT_BUILD
BuildSources = $(LinkHackSources)
ExtraSources = $(RegularSources)
else
BuildSources = $(RegularSources)
ExtraSources = $(LinkHackSources)
endif
if BUILD_WITH_MSVC
noinst_LIBRARIES = format3ds.lst
else
if HACKING_DYNAMIC_MODULES
lib_LTLIBRARIES = libformat3ds@SUFFIX@LINKHACK.la
else
noinst_LTLIBRARIES = libformat3ds.la
endif
endif
# Remove any linklibraries detected by configure, as they are not
# needed in the submodules -- only in the toplevel libCoin build.
LIBS =
DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include $(ExtraIncludeDirs) -I$(top_builddir)/src -I$(top_srcdir)/src
# header installation
if MAC_FRAMEWORK
libformat3dsincdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/3ds
# 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
else
libformat3dsincdir = $(includedir)/Inventor/3ds
endif
libformat3dsinc_HEADERS = $(PublicHeaders)
libformat3ds_la_SOURCES = $(BuildSources)
EXTRA_libformat3ds_la_SOURCES = \
$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)
libformat3ds@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources)
EXTRA_libformat3ds@SUFFIX@LINKHACK_la_SOURCES = \
$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)
format3ds_lst_SOURCES = $(BuildSources)
EXTRA_format3ds_lst_SOURCES = \
$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)
# this rule causes a make warning, so we remove it when it is not in use
format3ds.lst: Makefile $(format3ds_lst_OBJECTS)
@echo "Linking format3ds.lst..."; \
rm -f $@; touch $@; \
for i in $(format3ds_lst_OBJECTS); do echo $$i >>$@; done
install-libformat3dsincHEADERS: $(libformat3dsinc_HEADERS)
@$(NORMAL_INSTALL)
@if test x"$(libformat3dsinc_HEADERS)" = x""; then :; else \
echo " $(mkinstalldirs) $(DESTDIR)$(libformat3dsincdir)"; \
$(mkinstalldirs) $(DESTDIR)$(libformat3dsincdir); \
fi
@list='$(libformat3dsinc_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
src="$$d$$p"; dst="$(DESTDIR)$(libformat3dsincdir)/$$f"; \
if cmp -s "$$src" "$$dst"; then :; else \
echo " $(INSTALL_HEADER) $$src $$dst"; \
$(INSTALL_HEADER) "$$src" "$$dst" || exit 1; \
fi \
done
@list='$(ObsoletedHeaders)'; for f in $$list; do \
file="$(DESTDIR)$(libformat3dsincdir)/$$f"; \
if test -x "$$file"; then \
echo " rm -f $$file"; \
rm -f "$$file"; \
fi \
done; \
:
if MACOSX
# When using --enable-hacking, the user tends to manually replace some
# of the installed libraries by symlinks back to the build directory.
# But Mac OS X's install program refuses to overwrite symlinks => we
# have to explicitly remove existing symlinks before installation.
install-exec-local:
@for file in $(DESTDIR)$(lib@nop@dir)/libformat3ds@SUFFIX@LINKHACK*.dylib; do \
if test -L "$$file"; then \
rm -f "$$file"; \
fi \
done;
else
install-exec-local:
endif
install-symlinks:
@echo "Creating symlink to libformat3ds@SUFFIX@LINKHACK*@LIBEXT@*"; \
for dir in $(SUBDIRS) ; do \
(cd $$dir; $(MAKE) install-symlinks;) \
done ; \
here=`pwd`; \
(cd $(DESTDIR)$(lib@nop@dir); \
for file in libformat3ds@SUFFIX@LINKHACK*@LIBEXT@*; do \
ln -sf "$$here/.libs/$$file" "$$file"; \
done; \
cd -; )
##$ END TEMPLATE Make-Common
|