NETWORK_LIBS =
endif
-
if WITH_THREADS
-THREAD_LIBS = -lsgthreads
+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
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 \
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 \
$(MPLAYER_LIBS) \
$(NETWORK_LIBS) \
$(top_builddir)/src/Objects/libObjects.a \
+ $(top_builddir)/src/Replay/libReplay.a \
$(top_builddir)/src/Systems/libSystems.a \
$(top_builddir)/src/Time/libTime.a \
$(WEATHER_LIBS) \
- -lsgroute -lsgsky -lsgephem -lsgmaterial -lsgmodel -lsgtiming -lsgio \
- -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug -lsgmagvar -lsgmisc \
- -lsgxml -lsgsound -lsgserial \
+ $(CLOUD3D_LIBS) \
+ -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel \
+ -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug \
+ -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)