]> git.mxchange.org Git - flightgear.git/commitdiff
Add the command-line yasim compiler to the automake configuration. It
authorandy <andy>
Sat, 30 Nov 2002 06:28:18 +0000 (06:28 +0000)
committerandy <andy>
Sat, 30 Nov 2002 06:28:18 +0000 (06:28 +0000)
installs into the build directory as "yasim".  Simply run it with the
xml file as its only argument.

src/FDM/YASim/Makefile.am
src/FDM/YASim/yasim-test.cpp

index 196acd359b454fcb9819994472e62230c2b705e8..a69ac84690836e611e0cd7187ed02e1501260e72 100644 (file)
@@ -23,4 +23,10 @@ libYASim_a_SOURCES = \
         Vector.hpp \
         Wing.cpp Wing.hpp
 
+bin_PROGRAMS = yasim
+
+yasim_SOURCES = yasim-test.cpp
+
+yasim_LDADD = libYASim.a -lsgxml -lsgmisc -lsgdebug
+
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
index 438d88b0230867da01a323ee8c4a8c23372e9400..9938cc109da5c3a9c100a38af0d159b49c9fe56d 100644 (file)
@@ -45,7 +45,7 @@ int main(int argc, char** argv)
     printf("       Cruise AoA: %f\n", aoa);
     printf("   Tail Incidence: %f\n", tail);
     printf("Approach Elevator: %f\n", a->getApproachElevator());
-    printf("               CG: %.1f, %.1f, %.1f\n", cg[0], cg[1], cg[2]);
+    printf("               CG: %.3f, %.3f, %.3f\n", cg[0], cg[1], cg[2]);
 
     if(a->getFailureMsg())
         printf("SOLUTION FAILURE: %s\n", a->getFailureMsg());