NETWORK_LIBS =
endif
-
if WITH_THREADS
THREAD_LIBS = -lsgthreads $(thread_LIBS)
else
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 \
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 \
$(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 \
$(THREAD_LIBS) \
-lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \
$(network_LIBS) \