# toast the old directory
rm -rf src/simgear
mkdir src/simgear
+mkdir src/simgear/bucket
+mkdir src/simgear/debug
+mkdir src/simgear/math
+mkdir src/simgear/misc
+mkdir src/simgear/screen
+mkdir src/simgear/serial
+mkdir src/simgear/xgl
+mkdir src/simgear/zlib
# build new links
ln -s ../include/compiler.h src/simgear/compiler.h
ln -s ../include/constants.h src/simgear/constants.h
-ln -s ../debug/debug_types.h src/simgear/debug_types.h
-ln -s ../math/fg_memory.h src/simgear/fg_memory.h
ln -s ../include/fg_traits.hxx src/simgear/fg_traits.hxx
-ln -s ../math/fg_types.hxx src/simgear/fg_types.hxx
ln -s ../include/fg_zlib.h src/simgear/fg_zlib.h
-ln -s ../misc/fgpath.hxx src/simgear/fgpath.hxx
-ln -s ../misc/fgstream.hxx src/simgear/fgstream.hxx
-ln -s ../debug/logstream.hxx src/simgear/logstream.hxx
-ln -s ../math/mat3.h src/simgear/mat3.h
-ln -s ../bucket/newbucket.hxx src/simgear/newbucket.hxx
-ln -s ../math/point3d.hxx src/simgear/point3d.hxx
-ln -s ../math/polar3d.hxx src/simgear/polar3d.hxx
-ln -s ../xgl/xgl.h src/simgear/xgl.h
-ln -s ../misc/zfstream.hxx src/simgear/zfstream.hxx
+
+ln -s ../../bucket/newbucket.hxx src/simgear/bucket/newbucket.hxx
+
+ln -s ../../debug/debug_types.h src/simgear/debug/debug_types.h
+ln -s ../../debug/logstream.hxx src/simgear/debug/logstream.hxx
+
+ln -s ../../math/fg_memory.h src/simgear/math/fg_memory.h
+ln -s ../../math/fg_types.hxx src/simgear/math/fg_types.hxx
+ln -s ../../math/mat3.h src/simgear/math/mat3.h
+ln -s ../../math/point3d.hxx src/simgear/math/point3d.hxx
+ln -s ../../math/polar3d.hxx src/simgear/math/polar3d.hxx
+
+ln -s ../../misc/fgpath.hxx src/simgear/misc/fgpath.hxx
+ln -s ../../misc/fgstream.hxx src/simgear/misc/fgstream.hxx
+ln -s ../../misc/zfstream.hxx src/simgear/misc/zfstream.hxx
+
+ln -s ../../xgl/xgl.h src/simgear/xgl/xgl.h
+includedir = @includedir@/bucket
+
lib_LIBRARIES = libsgbucket.a
include_HEADERS = newbucket.hxx
#include <math.h>
-#include <simgear/fgpath.hxx>
+#include <simgear/misc/fgpath.hxx>
#include "newbucket.hxx"
+includedir = @includedir@/debug
+
EXTRA_DIST = logtest.cxx
lib_LIBRARIES = libsgdebug.a
# include <simgear/fg_traits.hxx>
#endif
-#include <simgear/debug_types.h>
+#include <simgear/debug/debug_types.h>
#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_STD(streambuf);
+includedir = @includedir@/math
+
lib_LIBRARIES = libsgmath.a
include_HEADERS = \
# include <errno.h>
#endif
-#include <simgear/logstream.hxx>
#include <simgear/constants.h>
+#include <simgear/debug/logstream.hxx>
#include "point3d.hxx"
#include "fg_geodesy.hxx"
#endif
-#include <simgear/point3d.hxx>
-#include <simgear/polar3d.hxx>
+#include <simgear/math/point3d.hxx>
+#include <simgear/math/polar3d.hxx>
// fgGeocToGeod(lat_geoc, radius, *lat_geod, *alt, *sea_level_r)
#include STL_STRING
#include <vector>
-#include <simgear/point3d.hxx>
+#include <simgear/math/point3d.hxx>
FG_USING_STD(vector);
FG_USING_STD(string);
#include STL_STRING
-#include <simgear/logstream.hxx>
#include <simgear/fg_zlib.h>
-#include <simgear/fgstream.hxx>
+#include <simgear/debug/logstream.hxx>
+#include <simgear/misc/fgstream.hxx>
#include "interpolater.hxx"
#include <stdio.h>
#include <string.h>
-#include <simgear/fg_memory.h>
+#include <simgear/math/fg_memory.h>
#ifdef __cplusplus
extern "C" {
#include <simgear/constants.h>
-#include <simgear/point3d.hxx>
+#include <simgear/math/point3d.hxx>
// Find the Altitude above the Ellipsoid (WGS84) given the Earth
#include <plib/sg.h>
-#include <simgear/mat3.h>
+#include <simgear/math/mat3.h>
// Map a vector onto the plane specified by normal
-## Process this file with automake to produce Makefile.in
+includedir = @includedir@/metar
lib_LIBRARIES = libsgmetar.a
-## Process this file with automake to produce Makefile.in
+includedir = @includedir@/misc
if HAVE_ZLIB
ZLIB_INCL =
#include STL_STRING
-#include <simgear/zfstream.hxx>
+#include <simgear/misc/zfstream.hxx>
FG_USING_STD(string);
#endif
-#include <simgear/newbucket.hxx>
-#include <simgear/fg_types.hxx>
+#include <simgear/bucket/newbucket.hxx>
+#include <simgear/math/fg_types.hxx>
// traverse the specified fan/strip/list of vertices and attempt to
#include <limits.h>
#include <GL/glut.h>
-#include <simgear/xgl.h>
+#include <simgear/xgl/xgl.h>
#include "GLBitmaps.h"
+includedir = @includedir@/screen
+
lib_LIBRARIES = libsgscreen.a
include_HEADERS = screen-dump.hxx
#include <limits.h>
#include <GL/glut.h>
-#include <simgear/xgl.h>
+#include <simgear/xgl/xgl.h>
#include "screen-dump.hxx"
+includedir = @includedir@/serial
+
noinst_PROGRAMS = testserial
lib_LIBRARIES = libsgserial.a
# include <unistd.h>
#endif
-#include <simgear/logstream.hxx>
+#include <simgear/debug/logstream.hxx>
#include "serial.hxx"
#include <string>
-#include <simgear/logstream.hxx>
+#include <simgear/debug/logstream.hxx>
#include "serial.hxx"
+includedir = @includedir@/xgl
+
lib_LIBRARIES = libsgxgl.a
include_HEADERS = xgl.h