-if ENABLE_UNIX_SERIAL
-SERIAL_DIRS = serial
-else
-SERIAL_DIRS =
-endif
-
-if HAVE_ZLIB
-ZLIB_DIRS =
-else
-ZLIB_DIRS = zlib
-endif
-
-METAR_DIRS =
-# METAR_DIRS = metar
-
EXTRA_DIST = mksymlinks.sh
dist-hook:
- tar cf - metar | (cd $(distdir); tar xvf -)
-
-SUBDIRS = \
- include \
- bucket \
- debug \
- math \
- $(METAR_DIRS) \
- misc \
- screen \
- $(SERIAL_DIRS) \
- xgl \
- $(ZLIB_DIRS)
+ tar cf - src/metar | (cd $(distdir); tar xvf -)
+SUBDIRS = src
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
-ac_unique_file=bucket/newbucket.cxx
+ac_unique_file=src/bucket/newbucket.cxx
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
PACKAGE=SimGear
-VERSION=0.0.0
+VERSION=0.0.1
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
trap 'rm -fr `echo "\
VERSION \
Makefile \
- include/Makefile \
- bucket/Makefile \
- debug/Makefile \
- math/Makefile \
- misc/Makefile \
- screen/Makefile \
- serial/Makefile \
- xgl/Makefile \
- zlib/Makefile \
- include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+ src/Makefile \
+ src/include/Makefile \
+ src/bucket/Makefile \
+ src/debug/Makefile \
+ src/math/Makefile \
+ src/misc/Makefile \
+ src/screen/Makefile \
+ src/serial/Makefile \
+ src/xgl/Makefile \
+ src/zlib/Makefile \
+ src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"\
VERSION \
Makefile \
- include/Makefile \
- bucket/Makefile \
- debug/Makefile \
- math/Makefile \
- misc/Makefile \
- screen/Makefile \
- serial/Makefile \
- xgl/Makefile \
- zlib/Makefile \
+ src/Makefile \
+ src/include/Makefile \
+ src/bucket/Makefile \
+ src/debug/Makefile \
+ src/math/Makefile \
+ src/misc/Makefile \
+ src/screen/Makefile \
+ src/serial/Makefile \
+ src/xgl/Makefile \
+ src/zlib/Makefile \
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/config.h"
+ CONFIG_HEADERS="src/include/config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
EOF
cat >> $CONFIG_STATUS <<\EOF
-test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
+test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
exit 0
EOF
dnl
dnl $Id$
-AC_INIT(bucket/newbucket.cxx)
+AC_INIT(src/bucket/newbucket.cxx)
dnl Initialize the automake stuff
-AM_INIT_AUTOMAKE(SimGear, 0.0.0)
+AM_INIT_AUTOMAKE(SimGear, 0.0.1)
dnl Checks for programs.
AC_PROG_MAKE_SET
AC_CHECK_FUNCS( ftime gettimeofday timegm memcpy bcopy mktime strstr rand \
random setitimer getitimer signal GetLocalTime rint getrusage )
-AM_CONFIG_HEADER(include/config.h)
+AM_CONFIG_HEADER(src/include/config.h)
AC_OUTPUT( \
VERSION \
Makefile \
- include/Makefile \
- bucket/Makefile \
- debug/Makefile \
- math/Makefile \
- misc/Makefile \
- screen/Makefile \
- serial/Makefile \
- xgl/Makefile \
- zlib/Makefile \
+ src/Makefile \
+ src/include/Makefile \
+ src/bucket/Makefile \
+ src/debug/Makefile \
+ src/math/Makefile \
+ src/misc/Makefile \
+ src/screen/Makefile \
+ src/serial/Makefile \
+ src/xgl/Makefile \
+ src/zlib/Makefile \
)
AC_OUTPUT_COMMANDS([./mksymlinks.sh])
echo "running $0 to rebuild simgear include links"
# toast the old directory
-rm -rf simgear
-mkdir simgear
+rm -rf src/simgear
+mkdir src/simgear
# build new links
-ln -s ../include/compiler.h simgear/compiler.h
-ln -s ../include/constants.h simgear/constants.h
-ln -s ../debug/debug_types.h simgear/debug_types.h
-ln -s ../math/fg_memory.h simgear/fg_memory.h
-ln -s ../include/fg_traits.hxx simgear/fg_traits.hxx
-ln -s ../math/fg_types.hxx simgear/fg_types.hxx
-ln -s ../include/fg_zlib.h simgear/fg_zlib.h
-ln -s ../misc/fgpath.hxx simgear/fgpath.hxx
-ln -s ../debug/logstream.hxx simgear/logstream.hxx
-ln -s ../math/mat3.h simgear/mat3.h
-ln -s ../bucket/newbucket.hxx simgear/newbucket.hxx
-ln -s ../math/point3d.hxx simgear/point3d.hxx
-ln -s ../math/polar3d.hxx simgear/polar3d.hxx
-ln -s ../xgl/xgl.h simgear/xgl.h
-ln -s ../misc/zfstream.hxx simgear/zfstream.hxx
+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
# $(top_builddir)/bucket/libsgbucket.a \
# $(top_builddir)/misc/libsgmisc.a
-INCLUDES += -I$(top_builddir)
+INCLUDES += -I$(top_builddir)/src
libsgdebug_a_SOURCES = logstream.cxx
-INCLUDES += -I$(top_builddir)
+INCLUDES += -I$(top_builddir)/src
polar3d.cxx \
vector.cxx
-INCLUDES += -I$(top_builddir)
+INCLUDES += -I$(top_builddir)/src
texcoord.cxx \
zfstream.cxx
-INCLUDES += \
- -I$(top_builddir) \
- -I$(top_builddir)/bucket \
- -I$(top_builddir)/math \
- $(ZLIB_INCL)
+INCLUDES += -I$(top_builddir)/src
screen-dump.cxx \
win32-printer.h
-INCLUDES += -I$(top_builddir)
+INCLUDES += -I$(top_builddir)/src
testserial_SOURCES = testserial.cxx
testserial_LDADD = \
- $(top_builddir)/serial/libsgserial.a \
- $(top_builddir)/debug/libsgdebug.a
+ $(top_builddir)/src/serial/libsgserial.a \
+ $(top_builddir)/src/debug/libsgdebug.a
-INCLUDES += -I$(top_builddir)
+INCLUDES += -I$(top_builddir)/src