From 1dff3bf29af759a3cec9cf1b394f177105c3b95b Mon Sep 17 00:00:00 2001 From: torsten Date: Thu, 17 Sep 2009 18:42:15 +0000 Subject: [PATCH] and the (hopefully) last one from Tat's Mac-can-run-make patch --- utils/fgviewer/Makefile.am | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/utils/fgviewer/Makefile.am b/utils/fgviewer/Makefile.am index 1321349cf..4f46419a2 100644 --- a/utils/fgviewer/Makefile.am +++ b/utils/fgviewer/Makefile.am @@ -3,8 +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 = \ -lsgtgdb -lsgmaterial -lsgmodel -lsgbvh -lsgutil -lsgio -lsgbucket \ -lsgmath -lsgprops -lsgdebug -lsgmisc -lsgxml -lsgstructure \ - -lplibul $(OSG_LIBS) $(opengl_LIBS) $(THREAD_LIBS) -lz + $(fgviewer_PLIB_LIBS) $(OSG_LIBS) $(opengl_LIBS) $(THREAD_LIBS) -lz