X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FMakefile.am;h=2d4e557ae1b68c8f8bee1ad7f98aa45bd990fc00;hb=c62048d5e26a2931f2a0f5fa7e94b3f7203e4762;hp=c4f7fdcd524ac512f8c9f4902004cf008ae2f060;hpb=5b84ae51a54afb63effb8841ed08643bb5701aa7;p=flightgear.git diff --git a/src/FDM/YASim/Makefile.am b/src/FDM/YASim/Makefile.am index c4f7fdcd5..2d4e557ae 100644 --- a/src/FDM/YASim/Makefile.am +++ b/src/FDM/YASim/Makefile.am @@ -1,9 +1,45 @@ +# Link the yasim executable against the individual object files rather +# than libYASim. The library references other stuff in FlightGear, +# and some linkers (Irix) do dependency checks per-library instead of +# per-object. +# +# I think that it's permissible to list the same source files more +# than once in a Makefile.am. Hopefully this doesn't break anything. + +SHARED_SOURCE_FILES = \ + Airplane.cpp Airplane.hpp \ + Atmosphere.cpp Atmosphere.hpp \ + BodyEnvironment.hpp \ + ControlMap.cpp ControlMap.hpp \ + FGFDM.cpp FGFDM.hpp \ + Gear.cpp Gear.hpp \ + Glue.cpp Glue.hpp \ + Integrator.cpp Integrator.hpp \ + Jet.cpp Jet.hpp \ + Math.cpp Math.hpp \ + Model.cpp Model.hpp \ + PistonEngine.cpp PistonEngine.hpp \ + PropEngine.cpp PropEngine.hpp \ + Propeller.cpp Propeller.hpp \ + RigidBody.cpp RigidBody.hpp \ + Rotor.cpp Rotor.hpp \ + Rotorblade.cpp Rotorblade.hpp \ + Rotorpart.cpp Rotorpart.hpp \ + SimpleJet.cpp SimpleJet.hpp \ + Surface.cpp Surface.hpp \ + Thruster.cpp Thruster.hpp \ + Vector.hpp \ + Wing.cpp Wing.hpp \ + Turbulence.cpp Turbulence.hpp + noinst_LIBRARIES = libYASim.a -libYASim_a_SOURCES = YASim.cxx Airplane.cpp Atmosphere.cpp ControlMap.cpp \ - FGFDM.cpp Gear.cpp Glue.cpp Integrator.cpp Jet.cpp \ - Math.cpp Model.cpp PistonEngine.cpp Propeller.cpp \ - PropEngine.cpp RigidBody.cpp Surface.cpp \ - Thruster.cpp Wing.cpp +libYASim_a_SOURCES = YASim.cxx YASim.hxx $(SHARED_SOURCE_FILES) + +bin_PROGRAMS = yasim + +yasim_SOURCES = yasim-test.cpp $(SHARED_SOURCE_FILES) + +yasim_LDADD = -lsgxml -lsgprops -lsgmisc -lsgdebug -lsgstructure $(base_LIBS) -INCLUDES += -I$(top_srcdir) -I$(top_srcdir)/src +INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src