]> git.mxchange.org Git - flightgear.git/blob - src/Main/Makefile.am
Fix a misuse of a return value that lead to an error message being displayed
[flightgear.git] / src / Main / Makefile.am
1 EXTRA_DIST = 3dfx.sh runfgfs.in runfgfs.bat.in \
2              fg_os_sdl.cxx fg_os.cxx fg_os.hxx
3
4 if ENABLE_MPLAYER_AS
5 MPLAYER_LIBS = $(top_builddir)/src/MultiPlayer/libMultiPlayer.a
6 else
7 MPLAYER_LIBS = 
8 endif
9
10 if ENABLE_SP_FDM
11 SP_FDM_LIBS = $(top_builddir)/src/FDM/SP/libSPFDM.a
12 else
13 SP_FDM_LIBS = 
14 endif
15
16 if WITH_THREADS
17 THREAD_LIBS = -lsgthreads $(thread_LIBS)
18 else
19 THREAD_LIBS =
20 endif
21
22 if USE_SDL
23 GFX_CODE = fg_os_sdl.cxx fg_os.hxx
24 else
25 GFX_CODE = fg_os.cxx fg_os.hxx
26 endif
27
28 if FG_USE_CLOUDS_3D
29 CLOUD3D_LIBS = -lsgclouds3d
30 else
31 CLOUD3D_LIBS = 
32 endif
33
34 AM_CXXFLAGS = -DPKGLIBDIR=\"$(pkgdatadir)\"
35
36 bin_PROGRAMS = fgfs metar
37
38 noinst_SCRIPTS = runfgfs.bat runfgfs
39
40 noinst_LIBRARIES = libMain.a
41
42 # bin_SCRIPTS = runfgfs
43
44 libMain_a_SOURCES = \
45         main.cxx main.hxx \
46         renderer.cxx renderer.hxx \
47         fg_commands.cxx fg_commands.hxx \
48         fg_init.cxx fg_init.hxx \
49         fg_io.cxx fg_io.hxx \
50         fg_props.cxx fg_props.hxx \
51         globals.cxx globals.hxx \
52         logger.cxx logger.hxx \
53         options.cxx options.hxx \
54         splash.cxx splash.hxx \
55         util.cxx util.hxx \
56         viewer.cxx viewer.hxx \
57         viewmgr.cxx viewmgr.hxx \
58         $(GFX_CODE)
59
60 fgfs_SOURCES = bootstrap.cxx
61
62 fgfs_LDADD = \
63         $(top_builddir)/src/Main/libMain.a \
64         $(top_builddir)/src/Aircraft/libAircraft.a \
65         $(top_builddir)/src/ATC/libATC.a \
66         $(top_builddir)/src/Cockpit/libCockpit.a \
67         $(top_builddir)/src/Cockpit/built_in/libBuilt_in.a \
68         $(top_builddir)/src/Controls/libControls.a \
69         $(top_builddir)/src/FDM/libFlight.a \
70         $(top_builddir)/src/FDM/Balloon/libBalloon.a \
71         $(top_builddir)/src/FDM/ExternalNet/libExternalNet.a \
72         $(top_builddir)/src/FDM/ExternalPipe/libExternalPipe.a \
73         $(top_builddir)/src/FDM/JSBSim/libJSBSim.a \
74         $(top_builddir)/src/FDM/YASim/libYASim.a \
75         $(top_builddir)/src/FDM/JSBSim/filtersjb/libfiltersjb.a \
76         $(top_builddir)/src/FDM/LaRCsim/libLaRCsim.a \
77         $(top_builddir)/src/FDM/UIUCModel/libUIUCModel.a \
78         $(SP_FDM_LIBS) \
79         $(top_builddir)/src/GUI/libGUI.a \
80         $(top_builddir)/src/Autopilot/libAutopilot.a \
81         $(top_builddir)/src/Input/libInput.a \
82         $(top_builddir)/src/Instrumentation/libInstrumentation.a \
83         $(top_builddir)/src/Model/libModel.a \
84         $(top_builddir)/src/AIModel/libAIModel.a \
85         $(top_builddir)/src/Network/libNetwork.a \
86         $(top_builddir)/src/Navaids/libNavaids.a \
87         $(top_builddir)/src/Scenery/libScenery.a \
88         $(top_builddir)/src/Scripting/libScripting.a \
89         $(top_builddir)/src/Sound/libSound.a \
90         $(top_builddir)/src/Airports/libAirports.a \
91         $(MPLAYER_LIBS) \
92         $(top_builddir)/src/Replay/libReplay.a \
93         $(top_builddir)/src/Systems/libSystems.a \
94         $(top_builddir)/src/Time/libTime.a \
95         $(top_builddir)/src/Traffic/libTraffic.a \
96         $(top_builddir)/src/Environment/libEnvironment.a \
97         $(CLOUD3D_LIBS) \
98         -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel \
99         -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug \
100         -lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound -lsgserial \
101         -lsgstructure -lsgenvironment \
102         $(THREAD_LIBS) \
103         -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul \
104         $(network_LIBS) \
105         -lz \
106         $(opengl_LIBS) \
107         $(openal_LIBS)
108
109 metar_SOURCES = metar_main.cxx
110
111 metar_LDADD = \
112         -lsgenvironment -lsgio -lsgbucket -lsgmisc -lsgstructure -lsgdebug \
113         -lplibnet -lplibul $(network_LIBS) \
114         -lz $(base_LIBS)
115
116 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src