]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/Makefile.am
Also properly reinit previously set time of day upon reset.
[flightgear.git] / src / Main / Makefile.am
index 9981ded311714fdf5faac2d9298102d39b4d0f99..a5492ddb015ac28fd6084c87aa8c49339ead3f03 100644 (file)
@@ -16,7 +16,6 @@ else
 NETWORK_LIBS =
 endif
 
-
 if WITH_THREADS
 THREAD_LIBS = -lsgthreads $(thread_LIBS)
 else
@@ -45,15 +44,16 @@ 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 \
        fg_props.cxx fg_props.hxx \
-        fgfs.cxx fgfs.hxx \
        globals.cxx globals.hxx \
         logger.cxx logger.hxx \
        options.cxx options.hxx \
@@ -62,7 +62,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 \
@@ -95,14 +98,15 @@ 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 $(CLOUD3D_LIBS) \
+       -lsgmagvar -lsgmisc -lsgxml -lsgsound -lsgserial -lsgstructure \
        $(THREAD_LIBS) \
        -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \
        $(network_LIBS) \
         $(PSL_LIBS) \
-       -lmk4 -lz \
+       -lz \
        $(opengl_LIBS) \
        $(audio_LIBS)