]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/Makefile.am
Don't crash if built with --disable-atcdcl
[flightgear.git] / src / GUI / Makefile.am
index 850dce46a609c6d643238d9800e68a698afe66b5..03792dcfcecb6927272d6178be7028fbbe4d99b4 100644 (file)
@@ -1,23 +1,38 @@
 noinst_LIBRARIES = libGUI.a
+noinst_PROGRAMS = layout-test
 
-if ENABLE_NETWORK_OLK
-NETWORK_SRCS = net_dlg.cxx net_dlg.hxx 
+if HAVE_FRAMEWORK_PLIB
+layout_test_PLIB_FW = $(plib_FRAMEWORK)
 else
-NETWORK_SRCS = 
+layout_test_PLIB_LIBS = -lplibpw -lplibpu -lplibfnt -lplibul
 endif
 
-libGUI_a_SOURCES = \
-       apt_dlg.cxx apt_dlg.hxx \
-       gui.cxx gui.h \
-       gui_local.cxx gui_local.hxx \
-       mouse.cxx \
-       $(NETWORK_SRCS) \
-       prop_picker.cxx prop_picker.hxx \
-       sgVec3Slider.cxx sgVec3Slider.hxx \
-       trackball.c trackball.h
-
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir) -I$(top_srcdir)/src
+if HAVE_FRAMEWORK_OSG
+layout_test_OSG_LIBS = $(openthreads_FRAMEWORK)
 else
-INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
+layout_test_OSG_LIBS = $(openthreads_LIBS)
 endif
+
+libGUI_a_SOURCES = \
+        new_gui.cxx new_gui.hxx \
+        dialog.cxx dialog.hxx \
+        menubar.cxx menubar.hxx \
+        gui.cxx gui.h gui_funcs.cxx \
+        fonts.cxx \
+        AirportList.cxx AirportList.hxx \
+        property_list.cxx property_list.hxx \
+        layout.cxx layout-props.cxx layout.hxx \
+        SafeTexFont.cxx SafeTexFont.hxx \
+        WaypointList.cxx WaypointList.hxx \
+        MapWidget.cxx MapWidget.hxx
+        
+INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
+
+layout_test_SOURCES = layout-test.cxx
+
+layout_test_LDADD = libGUI.a \
+                    -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)