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