]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgviewer/Makefile.am
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
[flightgear.git] / utils / fgviewer / Makefile.am
index 9d9b18534672a944fcdfed0441b71d798aa14f6c..1932bb8fda280085c104f36bc230776da4e98068 100644 (file)
@@ -3,16 +3,21 @@ AM_CXXFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\"
 
 bin_PROGRAMS = fgviewer
 
+if HAVE_FRAMEWORK_PLIB
+fgviewer_LDFLAGS = $(plib_FRAMEWORK)
+else
+fgviewer_PLIB_LIBS = -lplibul
+fgviewer_LDFLAGS =
+endif
+
+if HAVE_FRAMEWORK_OSG
+fgviewer_LDFLAGS += $(osg_FRAMEWORKS) $(openthreads_FRAMEWORK)
+else
+fgviewer_LDFLAGS += $(osg_LIBS) $(openthreads_LIBS)
+endif
+
 fgviewer_SOURCES = fgviewer.cxx
 fgviewer_LDADD = \
-       -lsgroute -lsgsky -lsgsound -lsgephem -lsgtgdb -lsgmaterial -lsgmodel \
-       -lsgbvh -lsgutil -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket \
-       -lsgprops -lsgdebug -lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound \
-       -lsgserial -lsgstructure -lsgenvironment \
-       -lplibul \
-       $(OSG_LIBS) \
-       $(THREAD_LIBS) \
-       $(network_LIBS) \
-       -lz \
-       $(opengl_LIBS) \
-       $(openal_LIBS)
+       -lsgtgdb -lsgmaterial -lsgmodel -lsgbvh -lsgutil -lsgio -lsgbucket \
+       -lsgmath -lsgprops -lsgdebug -lsgmisc -lsgxml -lsgstructure \
+       $(fgviewer_PLIB_LIBS) $(OSG_LIBS) $(opengl_LIBS) $(thread_LIBS) -lz