libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libAircraft.la
-libAircraft_la_SOURCES = \
- aircraft.c
+libAircraft_la_SOURCES = aircraft.c aircraft.h
INCLUDES += -I..
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libAircraft.la
-libAircraft_la_SOURCES = \
- aircraft.c
+libAircraft_la_SOURCES = aircraft.c aircraft.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
lib_LTLIBRARIES = libAstro.la
libAstro_la_SOURCES = \
- moon.c \
- orbits.c \
- planets.c \
- sky.c \
- stars.c \
- sun.c
+ moon.c moon.h \
+ orbits.c orbits.h \
+ planets.c planets.h \
+ sky.c sky.h \
+ stars.c stars.h \
+ sun.c sun.h
INCLUDES += -I..
lib_LTLIBRARIES = libAstro.la
libAstro_la_SOURCES = \
- moon.c \
- orbits.c \
- planets.c \
- sky.c \
- stars.c \
- sun.c
+ moon.c moon.h \
+ orbits.c orbits.h \
+ planets.c planets.h \
+ sky.c sky.h \
+ stars.c stars.h \
+ sun.c sun.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
lib_LTLIBRARIES = libCockpit.la
libCockpit_la_SOURCES = \
- cockpit.c \
- hud.c
+ cockpit.c cockpit.h \
+ hud.c hud.h
INCLUDES += -I..
lib_LTLIBRARIES = libCockpit.la
libCockpit_la_SOURCES = \
- cockpit.c \
- hud.c
+ cockpit.c cockpit.h \
+ hud.c hud.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libControls.la
-libControls_la_SOURCES = \
- controls.c
+
+libControls_la_SOURCES = controls.c controls.h
INCLUDES += -I..
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libControls.la
-libControls_la_SOURCES = \
- controls.c
+
+libControls_la_SOURCES = controls.c controls.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
lib_LTLIBRARIES = libFlight.la
-libFlight_la_SOURCES = \
- flight.c
+libFlight_la_SOURCES = flight.c flight.h
INCLUDES += -I..
lib_LTLIBRARIES = libFlight.la
-libFlight_la_SOURCES = \
- flight.c
+libFlight_la_SOURCES = flight.c flight.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libJoystick.la
-libJoystick_la_SOURCES = \
- joystick.c
+
+libJoystick_la_SOURCES = joystick.c joystick.h
INCLUDES += -I..
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libJoystick.la
-libJoystick_la_SOURCES = \
- joystick.c
+
+libJoystick_la_SOURCES = joystick.c joystick.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
libdir = ${exec_prefix}/lib
-LaRCsimFILES = atmos_62.c ls_accel.c ls_aux.c ls_geodesy.c ls_gravity.c \
- ls_step.c ls_matrix.c ls_model.c default_model_routines.c ls_init.c
-# ls_trim.c
-
-NavionFILES = navion_aero.c navion_engine.c navion_gear.c navion_init.c
-InterfaceFILES = ls_interface.c
-
lib_LTLIBRARIES = libLaRCsim.la
+
libLaRCsim_la_SOURCES = \
- $(LaRCsimFILES) \
- $(NavionFILES) \
- $(InterfaceFILES)
+ atmos_62.c atmos_62.h \
+ default_model_routines.c default_model_routines.h \
+ ls_accel.c ls_accel.h \
+ ls_aux.c ls_aux.h \
+ ls_cockpit.h ls_constants.h ls_generic.h \
+ ls_geodesy.c ls_geodesy.h \
+ ls_gravity.c ls_gravity.h \
+ ls_init.c ls_init.h \
+ ls_matrix.c ls_matrix.h \
+ ls_model.c ls_model.h \
+ ls_sim_control.h \
+ ls_step.c ls_step.h \
+ ls_sym.h ls_types.h \
+ navion_aero.c navion_engine.c navion_gear.c \
+ navion_init.c navion_init.h \
+ ls_interface.c ls_interface.h
INCLUDES += -I../..
libdir = ${exec_prefix}/lib
-LaRCsimFILES = atmos_62.c ls_accel.c ls_aux.c ls_geodesy.c ls_gravity.c \
- ls_step.c ls_matrix.c ls_model.c default_model_routines.c ls_init.c
-# ls_trim.c
-
-NavionFILES = navion_aero.c navion_engine.c navion_gear.c navion_init.c
-InterfaceFILES = ls_interface.c
-
lib_LTLIBRARIES = libLaRCsim.la
+
libLaRCsim_la_SOURCES = \
- $(LaRCsimFILES) \
- $(NavionFILES) \
- $(InterfaceFILES)
+ atmos_62.c atmos_62.h \
+ default_model_routines.c default_model_routines.h \
+ ls_accel.c ls_accel.h \
+ ls_aux.c ls_aux.h \
+ ls_cockpit.h ls_constants.h ls_generic.h \
+ ls_geodesy.c ls_geodesy.h \
+ ls_gravity.c ls_gravity.h \
+ ls_init.c ls_init.h \
+ ls_matrix.c ls_matrix.h \
+ ls_model.c ls_model.h \
+ ls_sim_control.h \
+ ls_step.c ls_step.h \
+ ls_sym.h ls_types.h \
+ navion_aero.c navion_engine.c navion_gear.c \
+ navion_init.c navion_init.h \
+ ls_interface.c ls_interface.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
X_PRE_LIBS = @X_PRE_LIBS@
libLaRCsim_la_LDFLAGS =
libLaRCsim_la_LIBADD =
-libLaRCsim_la_OBJECTS = atmos_62.lo ls_accel.lo ls_aux.lo ls_geodesy.lo \
-ls_gravity.lo ls_step.lo ls_matrix.lo ls_model.lo \
-default_model_routines.lo ls_init.lo navion_aero.lo navion_engine.lo \
+libLaRCsim_la_OBJECTS = atmos_62.lo default_model_routines.lo \
+ls_accel.lo ls_aux.lo ls_geodesy.lo ls_gravity.lo ls_init.lo \
+ls_matrix.lo ls_model.lo ls_step.lo navion_aero.lo navion_engine.lo \
navion_gear.lo navion_init.lo ls_interface.lo
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
#include <Main/views.h>
#include <Include/cmdargs.h> // Line to command line arguments
-#include <Include/fg_constants.h>
+#include <Include/fg_constants.h> // for VERSION
#include <Include/general.h>
#include <Aircraft/aircraft.h>
f = current_aircraft.flight;
// First things first... We must have startup options dealt with.
- #ifndef VERSION
- #define VERSION "src-32A"
- #endif
printf("Flight Gear: Version %s\n\n", VERSION);
/*********************************************************************
#endif
/* $Log$
-/* Revision 1.68 1998/04/03 22:09:03 curt
-/* Converting to Gnu autoconf system.
+/* Revision 1.69 1998/04/08 23:35:34 curt
+/* Tweaks to Gnu automake/autoconf system.
/*
+ * Revision 1.68 1998/04/03 22:09:03 curt
+ * Converting to Gnu autoconf system.
+ *
* Revision 1.67 1998/03/23 21:24:37 curt
* Source code formating tweaks.
*
+EXTRA_DIST = runfg.in runfg.bat.in
-# bindir = ${exec_prefix}/japhar/bin
+bin_PROGRAMS = fg
-bin_PROGRAMS = fg
-fg_SOURCES = \
- fg_debug.c \
- fg_getopt.c \
- fg_init.c \
- views.c \
- GLUTkey.c \
- GLUTmain.c
+bin_SCRIPTS = runfg runfg.bat
-# Need $(INTERFACE_LIBS) $(GRAPHICS_LIBS)
-fg_LDADD = \
+fg_SOURCES = \
+ GLUTkey.c GLUTkey.h \
+ GLUTmain.c \
+ fg_config.h \
+ fg_debug.c fg_debug.h \
+ fg_getopt.c fg_getopt.h \
+ fg_init.c fg_init.h \
+ views.c views.h
+
+fg_LDADD = \
$(top_builddir)/Simulator/Aircraft/libAircraft.la \
$(top_builddir)/Simulator/Astro/libAstro.la \
$(top_builddir)/Simulator/Cockpit/libCockpit.la \
$(top_builddir)/Simulator/Flight/LaRCsim/libLaRCsim.la \
$(top_builddir)/Simulator/Flight/Slew/libSlew.la \
$(top_builddir)/Simulator/Scenery/libScenery.la \
+ $(top_builddir)/Simulator/Scenery/Bucket/libBucket.la \
$(top_builddir)/Simulator/Time/libTime.la \
$(top_builddir)/Simulator/Weather/libWeather.la \
$(top_builddir)/Simulator/Joystick/libJoystick.la \
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
-# bindir = ${exec_prefix}/japhar/bin
-
SHELL = /bin/sh
RANLIB = @RANLIB@
VERSION = @VERSION@
-bin_PROGRAMS = fg
-fg_SOURCES = \
- fg_debug.c \
- fg_getopt.c \
- fg_init.c \
- views.c \
- GLUTkey.c \
- GLUTmain.c
-
-# Need $(INTERFACE_LIBS) $(GRAPHICS_LIBS)
-fg_LDADD = \
+EXTRA_DIST = runfg.in runfg.bat.in
+
+bin_PROGRAMS = fg
+
+bin_SCRIPTS = runfg runfg.bat
+
+fg_SOURCES = \
+ GLUTkey.c GLUTkey.h \
+ GLUTmain.c \
+ fg_config.h \
+ fg_debug.c fg_debug.h \
+ fg_getopt.c fg_getopt.h \
+ fg_init.c fg_init.h \
+ views.c views.h
+
+fg_LDADD = \
$(top_builddir)/Simulator/Aircraft/libAircraft.la \
$(top_builddir)/Simulator/Astro/libAstro.la \
$(top_builddir)/Simulator/Cockpit/libCockpit.la \
$(top_builddir)/Simulator/Flight/LaRCsim/libLaRCsim.la \
$(top_builddir)/Simulator/Flight/Slew/libSlew.la \
$(top_builddir)/Simulator/Scenery/libScenery.la \
+ $(top_builddir)/Simulator/Scenery/Bucket/libBucket.la \
$(top_builddir)/Simulator/Time/libTime.la \
$(top_builddir)/Simulator/Weather/libWeather.la \
$(top_builddir)/Simulator/Joystick/libJoystick.la \
$(top_builddir)/Simulator/Math/libMath.la
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = runfg runfg.bat
PROGRAMS = $(bin_PROGRAMS)
X_LIBS = @X_LIBS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
-fg_OBJECTS = fg_debug.o fg_getopt.o fg_init.o views.o GLUTkey.o \
-GLUTmain.o
+fg_OBJECTS = GLUTkey.o GLUTmain.o fg_debug.o fg_getopt.o fg_init.o \
+views.o
fg_DEPENDENCIES = $(top_builddir)/Simulator/Aircraft/libAircraft.la \
$(top_builddir)/Simulator/Astro/libAstro.la \
$(top_builddir)/Simulator/Cockpit/libCockpit.la \
$(top_builddir)/Simulator/Flight/LaRCsim/libLaRCsim.la \
$(top_builddir)/Simulator/Flight/Slew/libSlew.la \
$(top_builddir)/Simulator/Scenery/libScenery.la \
+$(top_builddir)/Simulator/Scenery/Bucket/libBucket.la \
$(top_builddir)/Simulator/Time/libTime.la \
$(top_builddir)/Simulator/Weather/libWeather.la \
$(top_builddir)/Simulator/Joystick/libJoystick.la \
$(top_builddir)/Simulator/Math/libMath.la
fg_LDFLAGS =
+SCRIPTS = $(bin_SCRIPTS)
+
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
-DIST_COMMON = README Makefile.am Makefile.in
+DIST_COMMON = README Makefile.am Makefile.in runfg.bat.in runfg.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
SOURCES = $(fg_SOURCES)
OBJECTS = $(fg_OBJECTS)
-all: Makefile $(PROGRAMS)
+all: Makefile $(PROGRAMS) $(SCRIPTS)
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+runfg: $(top_builddir)/config.status runfg.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
+runfg.bat: $(top_builddir)/config.status runfg.bat.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
mostlyclean-binPROGRAMS:
@rm -f fg
$(LINK) $(fg_LDFLAGS) $(fg_OBJECTS) $(fg_LDADD) $(LIBS)
+install-binSCRIPTS: $(bin_SCRIPTS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
+ @list='$(bin_SCRIPTS)'; for p in $$list; do \
+ if test -f $$p; then \
+ echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
+ $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
+ else if test -f $(srcdir)/$$p; then \
+ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
+ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
+ else :; fi; fi; \
+ done
+
+uninstall-binSCRIPTS:
+ @$(NORMAL_UNINSTALL)
+ list='$(bin_SCRIPTS)'; for p in $$list; do \
+ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
+ done
+
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
check: all
$(MAKE)
installcheck:
-install-exec: install-binPROGRAMS
+install-exec: install-binPROGRAMS install-binSCRIPTS
@$(NORMAL_INSTALL)
install-data:
install: install-exec install-data all
@:
-uninstall: uninstall-binPROGRAMS
+uninstall: uninstall-binPROGRAMS uninstall-binSCRIPTS
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:
- $(mkinstalldirs) $(DATADIR)$(bindir)
+ $(mkinstalldirs) $(DATADIR)$(bindir) $(DATADIR)$(bindir)
mostlyclean-generic:
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
-clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
-distclean-tags clean-tags maintainer-clean-tags distdir \
-mostlyclean-depend distclean-depend clean-depend \
-maintainer-clean-depend info dvi installcheck install-exec install-data \
-install uninstall all installdirs mostlyclean-generic distclean-generic \
-clean-generic maintainer-clean-generic clean mostlyclean distclean \
-maintainer-clean
+clean-libtool maintainer-clean-libtool uninstall-binSCRIPTS \
+install-binSCRIPTS tags mostlyclean-tags distclean-tags clean-tags \
+maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
+clean-depend maintainer-clean-depend info dvi installcheck install-exec \
+install-data install uninstall all installdirs mostlyclean-generic \
+distclean-generic clean-generic maintainer-clean-generic clean \
+mostlyclean distclean maintainer-clean
INCLUDES += -I.. -DGLUT
// FG_Altitude = FG_Runway_altitude + 3.758099;
// Initial Position at (HSP) Hot Springs, VA
- FG_Longitude = (-79.8338964 + 0.01) * DEG_TO_RAD;
- FG_Latitude = ( 37.9514564 + 0.008) * DEG_TO_RAD;
- FG_Runway_altitude = (3792 + 1300);
- FG_Altitude = FG_Runway_altitude + 3.758099;
+ // FG_Longitude = (-79.8338964 + 0.01) * DEG_TO_RAD;
+ // FG_Latitude = ( 37.9514564 + 0.008) * DEG_TO_RAD;
+ // FG_Runway_altitude = (3792 + 1300);
+ // FG_Altitude = FG_Runway_altitude + 3.758099;
// Initial Position at (ANE) Anoka County airport
// FG_Longitude = -93.2113889 * DEG_TO_RAD;
/* $Log$
-/* Revision 1.53 1998/04/03 22:09:06 curt
-/* Converting to Gnu autoconf system.
+/* Revision 1.54 1998/04/08 23:35:36 curt
+/* Tweaks to Gnu automake/autoconf system.
/*
+ * Revision 1.53 1998/04/03 22:09:06 curt
+ * Converting to Gnu autoconf system.
+ *
* Revision 1.52 1998/03/23 21:24:38 curt
* Source code formating tweaks.
*
Cockpit \
Controls \
Flight \
+ Include \
Joystick \
Math \
Scenery \
Cockpit \
Controls \
Flight \
+ Include \
Joystick \
Math \
Scenery \
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
-DIST_COMMON = README Makefile.am Makefile.in
+DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
+++ /dev/null
-#!/usr/bin/perl
-
-#---------------------------------------------------------------------------
-# runfg -- front end for setting up the FG_ROOT env variable and launching
-# the fg executable.
-#
-# Written by Curtis Olson, started September 1997.
-#
-# Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-# $Id$
-# (Log is kept at end of this file)
-#---------------------------------------------------------------------------
-
-
-# Flight Gear Version
-$version_major = "0";
-
-$path = "";
-
-# name of Flight Gear executable
-@programs = ( "fg" . $version_major, "fg" . $version_major . ".exe" );
-
-# see if we can find the executable
-while ( $path eq "" && ($program = shift(@programs)) ) {
- print "$program\n";
-
- if ( -x "./Main/$program" ) {
- $path = "./Main/$program";
- } elsif ( -x "./$program" ) {
- $path = "./$program";
- }
-}
-
-die "Cannot locate program.\n" if ( $path eq "" );
-
-
-# set the FG_ROOT environment variable if it hasn't already been set.
-if ( $ENV{FG_ROOT} eq "" ) {
- # look for a file called fgtop as a place marker
- if ( -e "fgtop" ) {
- $ENV{FG_ROOT} = ".";
- } elsif ( -e "../fgtop" ) {
- $ENV{FG_ROOT} = "..";
- }
-}
-
-# run Flight Gear
-print "Running $path @ARGV\n";
-exec("$path @ARGV");
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.4 1998/03/09 22:52:38 curt
-# Mod's to better support win32 if perl exists.
-#
-# Revision 1.3 1998/02/16 16:17:34 curt
-# Minor tweaks.
-#
-# Revision 1.2 1998/01/27 00:47:43 curt
-# Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
-# system and commandline/config file processing code.
-#
-# Revision 1.1 1997/10/28 18:47:27 curt
-# Initial revision.
-#
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libSlew.la
-libSlew_la_SOURCES = \
- slew.c
+
+libSlew_la_SOURCES = slew.c slew.h
INCLUDES += -I../..
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libSlew.la
-libSlew_la_SOURCES = \
- slew.c
+
+libSlew_la_SOURCES = slew.c slew.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
#include <Include/fg_constants.h>
-#ifndef M_PI
-#define M_PI 3.14159265358979323846 /* pi */
-#endif
-
-#ifndef PI2
-#define PI2 (M_PI + M_PI)
-#endif
-
-
/* reset flight params to a specific position */
void fgSlewInit(double pos_x, double pos_y, double pos_z, double heading) {
fgFLIGHT *f;
/* $Log$
-/* Revision 1.11 1998/02/07 15:29:39 curt
-/* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
-/* <chotchkiss@namg.us.anritsu.com>
+/* Revision 1.12 1998/04/08 23:35:30 curt
+/* Tweaks to Gnu automake/autoconf system.
/*
+ * Revision 1.11 1998/02/07 15:29:39 curt
+ * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
* Revision 1.10 1998/01/27 00:47:53 curt
* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
* system and commandline/config file processing code.
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libTime.la
+
libTime_la_SOURCES = \
- event.c \
- fg_time.c \
- fg_timer.c \
- sunpos.c
+ event.c event.h \
+ fg_time.c fg_time.h \
+ fg_timer.c fg_timer.h \
+ sunpos.c sunpos.h
INCLUDES += -I..
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libTime.la
+
libTime_la_SOURCES = \
- event.c \
- fg_time.c \
- fg_timer.c \
- sunpos.c
+ event.c event.h \
+ fg_time.c fg_time.h \
+ fg_timer.c fg_timer.h \
+ sunpos.c sunpos.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =
long int offset;
double diff, part, days, hours, lst;
-#ifdef USE_FTIME
+ // ftime() needs a little extra help finding the current timezone
+#if defined( HAVE_GETTIMEOFDAY )
+#elif defined( HAVE_GETLOCALTIME )
+#elif defined( HAVE_FTIME )
struct timeb current;
-#endif /* USE_FTIME */
+#else
+# error Port me
+#endif
#ifdef __CYGWIN32__
int daylight;
"no daylight savings info ... being hardcoded to %d\n", daylight);
#endif
-#ifdef USE_FTIME
+ // ftime() needs a little extra help finding the current timezone
+#if defined( HAVE_GETTIMEOFDAY )
+#elif defined( HAVE_GETLOCALTIME )
+#elif defined( HAVE_FTIME )
ftime(¤t);
timezone = current.timezone * 60;
-#endif /* USE_FTIME */
+#else
+# error Port me
+#endif
if ( daylight > 0 ) {
daylight = 1;
/* $Log$
-/* Revision 1.37 1998/04/03 22:12:55 curt
-/* Converting to Gnu autoconf system.
-/* Centralized time handling differences.
+/* Revision 1.38 1998/04/08 23:35:40 curt
+/* Tweaks to Gnu automake/autoconf system.
/*
+ * Revision 1.37 1998/04/03 22:12:55 curt
+ * Converting to Gnu autoconf system.
+ * Centralized time handling differences.
+ *
* Revision 1.36 1998/03/09 22:48:09 curt
* Debug message tweaks.
*
#define _FG_TIME_H
-// #ifdef WIN32
-// # include <windows.h>
-// #endif
+#include <config.h>
+
+#ifdef HAVE_WINDOWS_H
+# include <windows.h>
+#endif
#include <GL/glut.h>
#include <time.h>
/* $Log$
-/* Revision 1.17 1998/04/03 22:12:56 curt
-/* Converting to Gnu autoconf system.
-/* Centralized time handling differences.
+/* Revision 1.18 1998/04/08 23:35:40 curt
+/* Tweaks to Gnu automake/autoconf system.
/*
+ * Revision 1.17 1998/04/03 22:12:56 curt
+ * Converting to Gnu autoconf system.
+ * Centralized time handling differences.
+ *
* Revision 1.16 1998/02/07 15:29:47 curt
* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
* <chotchkiss@namg.us.anritsu.com>
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libWeather.la
-libWeather_la_SOURCES = \
- weather.c
+
+libWeather_la_SOURCES = weather.c weather.h
INCLUDES += -I..
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libWeather.la
-libWeather_la_SOURCES = \
- weather.c
+
+libWeather_la_SOURCES = weather.c weather.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../Simulator/Include/config.h
CONFIG_CLEAN_FILES =