]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/Makefile.am
Autopilot: clean up the helpers code (which drives the various /internal/) properties...
[flightgear.git] / src / GUI / Makefile.am
index 512e5d192c4deb21cdb06bb4af965ecdc5b08070..890807f2a9734b5cc12f2d4d673784cbc273d6b6 100644 (file)
@@ -1,6 +1,18 @@
 noinst_LIBRARIES = libGUI.a
 noinst_PROGRAMS = layout-test
 
+if HAVE_FRAMEWORK_PLIB
+layout_test_PLIB_FW = $(plib_FRAMEWORK)
+else
+layout_test_PLIB_LIBS = -lplibpw -lplibpu -lplibfnt -lplibul
+endif
+
+if HAVE_FRAMEWORK_OSG
+layout_test_OSG_LIBS = $(openthreads_FRAMEWORK)
+else
+layout_test_OSG_LIBS = $(openthreads_LIBS)
+endif
+
 libGUI_a_SOURCES = \
         new_gui.cxx new_gui.hxx \
         dialog.cxx dialog.hxx \
@@ -17,5 +29,8 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
 layout_test_SOURCES = layout-test.cxx
 
 layout_test_LDADD = libGUI.a \
-                    -lsgprops -lsgdebug -lsgstructure -lsgmisc -lsgxml \
-                    -lplibpw -lplibpu -lplibfnt -lplibul $(opengl_LIBS)
+                    -lsgprops -lsgdebug -lsgstructure -lsgmisc -lsgxml -lsgtiming \
+                    $(layout_test_PLIB_LIBS) $(opengl_LIBS)
+
+# mainly for Macs
+layout_test_LDFLAGS = $(layout_test_PLIB_FW) $(layout_test_OSG_LIBS)