X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2FMakefile.am;h=c55d494183e58bf9ab3c7101453c69b4e531b519;hb=a739fad66484506ebb71fc802bf8f1a0c2ab4c6c;hp=8c58124db427a47e61ee227d07655d6ef6b91b1b;hpb=10e9877d83139a58aba9b6fad8c8099d92a8820e;p=flightgear.git diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index 8c58124db..c55d49418 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -10,25 +10,16 @@ else MPLAYER_LIBS = endif -if ENABLE_NETWORK_OLK -NETWORK_LIBS = $(top_builddir)/src/NetworkOLK/libNetworkOLK.a -else -NETWORK_LIBS = -endif - - if WITH_THREADS -THREAD_LIBS = -lsgthreads +THREAD_LIBS = -lsgthreads $(thread_LIBS) else THREAD_LIBS = endif -if HAVE_PLIB_PSL -SCRIPTING_LIBS = $(top_builddir)/src/Scripting/libScripting.a -PSL_LIBS = -lplibpsl +if FG_USE_CLOUDS_3D +CLOUD3D_LIBS = -lsgclouds3d else -SCRIPTING_LIBS = -PSL_LIBS = +CLOUD3D_LIBS = endif AM_CXXFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\" @@ -39,25 +30,28 @@ 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 \ splash.cxx splash.hxx \ util.cxx util.hxx \ viewer.cxx viewer.hxx \ - viewmgr.cxx viewmgr.hxx \ - location.cxx location.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 \ @@ -77,25 +71,27 @@ fgfs_LDADD = \ $(top_builddir)/src/Input/libInput.a \ $(top_builddir)/src/Instrumentation/libInstrumentation.a \ $(top_builddir)/src/Model/libModel.a \ + $(top_builddir)/src/AIModel/libAIModel.a \ $(top_builddir)/src/Network/libNetwork.a \ $(top_builddir)/src/Navaids/libNavaids.a \ $(top_builddir)/src/Scenery/libScenery.a \ - $(SCRIPTING_LIBS) \ + $(top_builddir)/src/Scripting/libScripting.a \ $(top_builddir)/src/Sound/libSound.a \ $(top_builddir)/src/Airports/libAirports.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 -lsgtiming -lsgio -lsgscreen \ - -lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml \ - -lsgserial \ + $(CLOUD3D_LIBS) \ + -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel \ + -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug \ + -lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound -lsgserial \ + -lsgstructure \ $(THREAD_LIBS) \ -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \ - $(PSL_LIBS) \ - -lmk4 -lz \ + $(network_LIBS) \ + -lz \ $(opengl_LIBS) \ $(audio_LIBS)