]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/Makefile.am
Redo the runway database scheme to use a flat/ascii file and load the entire
[flightgear.git] / src / Main / Makefile.am
index 7c737b01851e44e0921f3bf280a0c50da12cdda1..ee60d06718a2d8e154d9090360f5e59235521275 100644 (file)
@@ -16,13 +16,18 @@ else
 NETWORK_LIBS =
 endif
 
-
 if WITH_THREADS
 THREAD_LIBS = -lsgthreads $(thread_LIBS)
 else
 THREAD_LIBS =
 endif
 
+if FG_USE_CLOUDS_3D
+CLOUD3D_LIBS = -lsgclouds3d
+else
+CLOUD3D_LIBS = 
+endif
+
 if HAVE_PLIB_PSL
 SCRIPTING_LIBS = $(top_builddir)/src/Scripting/libScripting.a
 PSL_LIBS = -lplibpsl
@@ -39,10 +44,12 @@ bin_PROGRAMS = fgfs
 
 noinst_SCRIPTS = runfgfs.bat runfgfs
 
+noinst_LIBRARIES = libMain.a
+
 # bin_SCRIPTS = runfgfs
 
-fgfs_SOURCES = \
-       main.cxx \
+libMain_a_SOURCES = \
+       main.cxx main.hxx \
        fg_commands.cxx fg_commands.hxx \
        fg_init.cxx fg_init.hxx \
        fg_io.cxx fg_io.hxx \
@@ -56,7 +63,10 @@ fgfs_SOURCES = \
        viewer.cxx viewer.hxx \
        viewmgr.cxx viewmgr.hxx
 
+fgfs_SOURCES = bootstrap.cxx
+
 fgfs_LDADD = \
+       $(top_builddir)/src/Main/libMain.a \
        $(top_builddir)/src/Aircraft/libAircraft.a \
        $(top_builddir)/src/ATC/libATC.a \
        $(top_builddir)/src/Autopilot/libAutopilot.a \
@@ -89,6 +99,7 @@ fgfs_LDADD = \
        $(top_builddir)/src/Systems/libSystems.a \
        $(top_builddir)/src/Time/libTime.a \
        $(WEATHER_LIBS) \
+       $(CLOUD3D_LIBS) \
        -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel \
        -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug \
        -lsgmagvar -lsgmisc -lsgxml -lsgsound -lsgserial \