1
0
Fork 0

Tweaks to Gnu automake/autoconf system.

This commit is contained in:
curt 1998-04-08 23:32:28 +00:00
parent e84ad0511b
commit 8c3b74b775
30 changed files with 209 additions and 228 deletions

View file

@ -1,7 +1,6 @@
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libAircraft.la
libAircraft_la_SOURCES = \
aircraft.c
libAircraft_la_SOURCES = aircraft.c aircraft.h
INCLUDES += -I..

View file

@ -73,8 +73,7 @@ VERSION = @VERSION@
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 =

View file

@ -2,11 +2,11 @@ libdir = ${exec_prefix}/lib
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..

View file

@ -74,12 +74,12 @@ libdir = ${exec_prefix}/lib
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 =

View file

@ -2,7 +2,7 @@ libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libCockpit.la
libCockpit_la_SOURCES = \
cockpit.c \
hud.c
cockpit.c cockpit.h \
hud.c hud.h
INCLUDES += -I..

View file

@ -74,8 +74,8 @@ libdir = ${exec_prefix}/lib
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 =

View file

@ -1,7 +1,7 @@
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libControls.la
libControls_la_SOURCES = \
controls.c
libControls_la_SOURCES = controls.c controls.h
INCLUDES += -I..

View file

@ -73,8 +73,8 @@ VERSION = @VERSION@
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 =

View file

@ -4,7 +4,6 @@ libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libFlight.la
libFlight_la_SOURCES = \
flight.c
libFlight_la_SOURCES = flight.c flight.h
INCLUDES += -I..

View file

@ -76,8 +76,7 @@ libdir = ${exec_prefix}/lib
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 =

View file

@ -1,7 +1,7 @@
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libJoystick.la
libJoystick_la_SOURCES = \
joystick.c
libJoystick_la_SOURCES = joystick.c joystick.h
INCLUDES += -I..

View file

@ -73,8 +73,8 @@ VERSION = @VERSION@
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 =

View file

@ -1,16 +1,23 @@
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../..

View file

@ -72,18 +72,25 @@ VERSION = @VERSION@
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 =
@ -100,9 +107,9 @@ X_EXTRA_LIBS = @X_EXTRA_LIBS@
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)

View file

@ -48,7 +48,7 @@
#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>
@ -703,9 +703,6 @@ int main( int argc, char *argv[] ) {
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);
/*********************************************************************
@ -814,9 +811,12 @@ extern "C" {
#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.
*

View file

@ -1,17 +1,19 @@
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 \
@ -20,6 +22,7 @@ fg_LDADD = \
$(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 \

View file

@ -10,8 +10,6 @@
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# bindir = ${exec_prefix}/japhar/bin
SHELL = /bin/sh
@ -73,17 +71,22 @@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
VERSION = @VERSION@
bin_PROGRAMS = fg
fg_SOURCES = \
fg_debug.c \
fg_getopt.c \
fg_init.c \
views.c \
GLUTkey.c \
GLUTmain.c
EXTRA_DIST = runfg.in runfg.bat.in
# Need $(INTERFACE_LIBS) $(GRAPHICS_LIBS)
fg_LDADD = \
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 \
@ -92,13 +95,14 @@ fg_LDADD = \
$(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)
@ -110,8 +114,8 @@ X_CFLAGS = @X_CFLAGS@
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 \
@ -120,16 +124,19 @@ $(top_builddir)/Simulator/Flight/libFlight.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)
@ -141,7 +148,7 @@ DEP_FILES = .deps/GLUTkey.P .deps/GLUTmain.P .deps/fg_debug.P \
SOURCES = $(fg_SOURCES)
OBJECTS = $(fg_OBJECTS)
all: Makefile $(PROGRAMS)
all: Makefile $(PROGRAMS) $(SCRIPTS)
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
@ -152,6 +159,10 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
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:
@ -214,6 +225,25 @@ fg: $(fg_OBJECTS) $(fg_DEPENDENCIES)
@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)
@ -284,7 +314,7 @@ dvi:
check: all
$(MAKE)
installcheck:
install-exec: install-binPROGRAMS
install-exec: install-binPROGRAMS install-binSCRIPTS
@$(NORMAL_INSTALL)
install-data:
@ -293,12 +323,12 @@ 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:
@ -338,13 +368,13 @@ maintainer-clean: maintainer-clean-binPROGRAMS maintainer-clean-compile \
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

View file

@ -157,10 +157,10 @@ int fgInitSubsystems( void ) {
// 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;
@ -400,9 +400,12 @@ int fgInitSubsystems( void ) {
/* $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.
*

View file

@ -5,6 +5,7 @@ SUBDIRS = Aircraft \
Cockpit \
Controls \
Flight \
Include \
Joystick \
Math \
Scenery \

View file

@ -78,6 +78,7 @@ SUBDIRS = Aircraft \
Cockpit \
Controls \
Flight \
Include \
Joystick \
Math \
Scenery \
@ -88,7 +89,7 @@ SUBDIRS = Aircraft \
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)

View file

@ -1,81 +0,0 @@
#!/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.
#

View file

@ -1,7 +1,7 @@
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libSlew.la
libSlew_la_SOURCES = \
slew.c
libSlew_la_SOURCES = slew.c slew.h
INCLUDES += -I../..

View file

@ -73,8 +73,8 @@ VERSION = @VERSION@
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 =

View file

@ -33,15 +33,6 @@
#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;
@ -93,10 +84,13 @@ void fgSlewUpdate( void ) {
/* $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.

View file

@ -1,10 +1,11 @@
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..

View file

@ -73,11 +73,12 @@ VERSION = @VERSION@
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 =

View file

@ -213,9 +213,14 @@ double sidereal_course(struct tm *gmt, time_t now, double lng) {
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;
@ -252,10 +257,15 @@ double sidereal_course(struct tm *gmt, time_t now, double lng) {
"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(&current);
timezone = current.timezone * 60;
#endif /* USE_FTIME */
#else
# error Port me
#endif
if ( daylight > 0 ) {
daylight = 1;
@ -362,10 +372,13 @@ void fgTimeUpdate(fgFLIGHT *f, struct fgTIME *t) {
/* $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.
*

View file

@ -28,9 +28,11 @@
#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>
@ -113,10 +115,13 @@ void fgTimeUpdate(fgFLIGHT *f, struct fgTIME *t);
/* $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>

View file

@ -1,7 +1,7 @@
libdir = ${exec_prefix}/lib
lib_LTLIBRARIES = libWeather.la
libWeather_la_SOURCES = \
weather.c
libWeather_la_SOURCES = weather.c weather.h
INCLUDES += -I..

View file

@ -73,8 +73,8 @@ VERSION = @VERSION@
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 =