]> git.mxchange.org Git - flightgear.git/commitdiff
Merged in make system changes from Bob Kuehne <rpk@sgi.com>
authorcurt <curt>
Mon, 19 Jan 1998 19:26:51 +0000 (19:26 +0000)
committercurt <curt>
Mon, 19 Jan 1998 19:26:51 +0000 (19:26 +0000)
This should simplify things tremendously.

58 files changed:
Aircraft/Makefile
Aircraft/aircraft.c
Aircraft/aircraft.h
Astro/Makefile
Astro/moon.c
Astro/moon.h
Astro/orbits.c
Astro/orbits.h
Astro/planets.c
Astro/sky.c
Astro/stars.c
Astro/sun.c
Cockpit/Makefile
Cockpit/cockpit.c
Cockpit/cockpit.h
Cockpit/hud.h
Controls/Makefile
Controls/controls.c
Controls/depend
FDM/Makefile
FDM/flight.c
FDM/flight.h
Joystick/Makefile
LaRCsim/Makefile
LaRCsim/ls_interface.c
LaRCsim/ls_interface.h
LaRCsim/ls_types.h
Main/GLUTkey.c
Main/GLUTmain.c
Main/Makefile
Main/fg_init.c
Main/views.c
Main/views.h
Scenery/Makefile
Scenery/common.c
Scenery/geometry.c
Scenery/mesh.c
Scenery/obj.c
Scenery/obj.h
Scenery/scenery.c
Scenery/scenery.h
Scenery/tilemgr.c
Scenery/tileutils.c
Simulator/Makefile
Simulator/armake.proto [new file with mode: 0644]
Simulator/commonrules [new file with mode: 0644]
Simulator/genmake [new file with mode: 0755]
Slew/Makefile
Slew/slew.c
Time/Makefile
Time/event.c
Time/fg_time.c
Time/fg_time.h
Time/fg_timer.c
Time/sunpos.c
Time/sunpos.h
Weather/Makefile
Weather/weather.c

index 792081f37b5bcc136a8525022b4bca0cf478eadc..5180691c3bffd897c718676fd93fa26171d86d9b 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libAircraft.a
+ARLIBRARY = libAircraft.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = aircraft.c
-HFILES = aircraft.h
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES) $(HFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
+CXXFILES = 
 
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
+include $(FG_ROOT_SRC)/commondefs
 
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-aircraft.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c aircraft.c -o $@
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.9  1997/07/20 02:19:09  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.8  1997/07/12 02:24:37  curt
-# Added ranlib.
-#
-# Revision 1.7  1997/06/27 21:38:02  curt
-# Working on Makefile structure.
-#
-# Revision 1.6  1997/06/27 20:03:32  curt
-# Working on Makefile structure.
-#
-# Revision 1.5  1997/06/26 19:08:28  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.4  1997/06/25 15:39:44  curt
-# Minor changes to compile with rsxnt/win32.
-#
-# Revision 1.3  1997/06/21 17:12:42  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.2  1997/05/23 15:40:29  curt
-# Added GNU copyright headers.
-#
-# Revision 1.1  1997/05/16 15:58:23  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 097f9608412b85516237c9b8ec1b2eef2e6e7545..54e47f539a9dc5545ced68168409eade185351ce 100644 (file)
@@ -26,8 +26,8 @@
 
 #include <stdio.h>
 
-#include "aircraft.h"
-#include "../Include/constants.h"
+#include <Aircraft/aircraft.h>
+#include <Include/constants.h>
 
 
 /* This is a record containing all the info for the aircraft currently
@@ -53,10 +53,14 @@ void fgAircraftOutputCurrent(struct fgAIRCRAFT *a) {
 
 
 /* $Log$
-/* Revision 1.13  1997/12/15 23:54:30  curt
-/* Add xgl wrappers for debugging.
-/* Generate terrain normals on the fly.
+/* Revision 1.14  1998/01/19 19:26:56  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.13  1997/12/15 23:54:30  curt
+ * Add xgl wrappers for debugging.
+ * Generate terrain normals on the fly.
+ *
  * Revision 1.12  1997/12/10 22:37:37  curt
  * Prepended "fg" on the name of all global structures that didn't have it yet.
  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
index d9cb61537f1d4c704031da06079806131dfbfef6..96e4c576fa169de9638314a56672a6d4db67e10a 100644 (file)
@@ -27,8 +27,8 @@
 #ifndef AIRCRAFT_H
 #define AIRCRAFT_H
 
-#include "../Flight/flight.h"
-#include "../Controls/controls.h"
+#include <Flight/flight.h>
+#include <Controls/controls.h>
 
 
 /* Define a structure containing all the parameters for an aircraft */
@@ -51,10 +51,14 @@ void fgAircraftOutputCurrent(struct fgAIRCRAFT *a);
 
 
 /* $Log$
-/* Revision 1.7  1997/12/10 22:37:38  curt
-/* Prepended "fg" on the name of all global structures that didn't have it yet.
-/* i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+/* Revision 1.8  1998/01/19 19:26:57  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.7  1997/12/10 22:37:38  curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
  * Revision 1.6  1997/09/13 02:00:06  curt
  * Mostly working on stars and generating sidereal time for accurate star
  * placement.
index 24e85c65106630213a4b9ed14d2a2aab76b25673..9e9a7a0c0b7af2ef44d3f2f487e1b32e7ed99711 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libAstro.a
+ARLIBRARY = libAstro.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = moon.c orbits.c planets.c sky.c stars.c sun.c
+CXXFILES = 
 
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES) $(HFILES) 
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
+include $(FG_ROOT_SRC)/commondefs
 
-realclean: clean
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-moon.o:
-       $(CC) $(CFLAGS) -c moon.c -o $@
-
-orbits.o:
-       $(CC) $(CFLAGS) -c orbits.c -o $@
-
-planets.o:
-       $(CC) $(CFLAGS) -c planets.c -o $@
-
-sky.c:
-       $(CC) $(CFLAGS) -c sky.c -o $@
-
-stars.c:
-       $(CC) $(CFLAGS) -c stars.c -o $@
-
-sun.o:
-       $(CC) $(CFLAGS) -c sun.c -o $@
-
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.1  1998/01/07 03:16:15  curt
-# Moved from .../Src/Scenery/ to .../Src/Astro/
-#
-# Revision 1.26  1997/12/19 16:45:01  curt
-# Working on scene rendering order and options.
-#
-# Revision 1.25  1997/12/17 23:13:45  curt
-# Began working on rendering the sky.
-#
-# Revision 1.24  1997/11/25 19:25:33  curt
-# Changes to integrate Durk's moon/sun code updates + clean up.
-#
-# Revision 1.23  1997/10/28 21:00:20  curt
-# Changing to new terrain format.
-#
-# Revision 1.22  1997/10/25 03:30:07  curt
-# Misc. tweaks.
-#
-# Revision 1.21  1997/10/25 03:18:26  curt
-# Incorporated sun, moon, and planet position and rendering code contributed
-# by Durk Talsma.
-#
-# Revision 1.20  1997/09/22 14:44:21  curt
-# Continuing to try to align stars correctly.
-#
-# Revision 1.19  1997/08/27 03:30:23  curt
-# Changed naming scheme of basic shared structures.
-#
-# Revision 1.18  1997/08/02 19:10:12  curt
-# Incorporated mesh2GL.c into mesh.c
-#
-# Revision 1.17  1997/07/23 21:52:23  curt
-# Put comments around the text after an #endif for increased portability.
-#
-# Revision 1.16  1997/07/20 02:19:11  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.15  1997/07/12 02:24:47  curt
-# Added ranlib.
-#
-# Revision 1.14  1997/06/29 21:16:47  curt
-# More twiddling with the Scenery Management system.
-#
-# Revision 1.13  1997/06/27 21:38:10  curt
-# Working on Makefile structure.
-#
-# Revision 1.12  1997/06/27 20:03:37  curt
-# Working on Makefile structure.
-#
-# Revision 1.11  1997/06/26 22:14:57  curt
-# Beginning work on a scenery management system.
-#
-# Revision 1.10  1997/06/26 19:08:34  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.9  1997/06/25 15:39:48  curt
-# Minor changes to compile with rsxnt/win32.
-#
-# Revision 1.8  1997/06/21 17:58:07  curt
-# directory shuffling ...
-#
-# Revision 1.1  1997/06/21 17:39:28  curt
-# Moved to the ParseScn subdirectory.
-#
-# Revision 1.6  1997/06/21 17:12:55  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.5  1997/05/31 19:16:29  curt
-# Elevator trim added.
-#
-# Revision 1.4  1997/05/27 17:48:50  curt
-# Added -f flag to flex to generate a "fast" scanner.
-#
-# Revision 1.3  1997/05/23 15:40:40  curt
-# Added GNU copyright headers.
-#
-# Revision 1.2  1997/05/17 00:17:01  curt
-# Cosmetic changes.
-#
-# Revision 1.1  1997/05/16 16:07:02  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 227743e9302e78fefa371525fde7c3d37f8b549a..4160b8d44025da3c9eb2b187db1ac8d61c364c84 100644 (file)
 
 #include <math.h>
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "orbits.h"
-#include "moon.h"
+#include <Astro/orbits.h>
+#include <Astro/moon.h>
 
-#include "../Aircraft/aircraft.h"
-#include "../Include/constants.h"
-#include "../Include/general.h"
-#include "../Main/views.h"
-#include "../Time/fg_time.h"
+#include <Aircraft/aircraft.h>
+#include <Include/constants.h>
+#include <Include/general.h>
+#include <Main/views.h>
+#include <Time/fg_time.h>
 
 struct CelestialCoord moonPos;
 
@@ -320,10 +320,14 @@ void fgMoonRender( void ) {
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:16  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/19 19:26:57  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.2  1998/01/19 18:40:16  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:16  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index 90a94f98e7d0d7b59295159ddb69cacdc3819c17..b81d98183e9cb6b6f3744d1171819d5720c743f6 100644 (file)
@@ -26,9 +26,9 @@
 #define _MOON_H_
 
 
-#include "orbits.h"
+#include <Astro/orbits.h>
 
-#include "../Time/fg_time.h"
+#include <Time/fg_time.h>
 #include <math.h>
 
 #define X .525731112119133606
@@ -51,10 +51,14 @@ extern struct OrbElements pltOrbElements[9];
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:17  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/19 19:26:58  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.2  1998/01/19 18:40:17  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:16  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index 50a283668e820e32c8e6434882558f00e5985ed7..5ce2ae9405737b043bd2a628ee3b5b30b9fa8243 100644 (file)
 
 #include <string.h>
 
-#include "orbits.h"
+#include <Astro/orbits.h>
 
-#include "../Include/general.h"
-#include "../Time/fg_time.h"
+#include <Include/general.h>
+#include <Time/fg_time.h>
 
 
 struct OrbElements pltOrbElements[9];
@@ -173,9 +173,13 @@ void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
 
 
 /* $Log$
-/* Revision 1.1  1998/01/07 03:16:17  curt
-/* Moved from .../Src/Scenery/ to .../Src/Astro/
+/* Revision 1.2  1998/01/19 19:26:58  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.1  1998/01/07 03:16:17  curt
+ * Moved from .../Src/Scenery/ to .../Src/Astro/
+ *
  * Revision 1.6  1997/12/30 20:47:52  curt
  * Integrated new event manager with subsystem initializations.
  *
index 9077cd4aa79ee4ef793276aaa5e05b2a6d709e83..daf99dc27b0f463b5310e52b3f9c155262a8ff1a 100644 (file)
@@ -30,7 +30,7 @@
 #include <stdio.h>
 #include <math.h>
 
-#include "../Time/fg_time.h"
+#include <Time/fg_time.h>
 
 
 
@@ -81,9 +81,13 @@ void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t);
 
 
 /* $Log$
-/* Revision 1.1  1998/01/07 03:16:17  curt
-/* Moved from .../Src/Scenery/ to .../Src/Astro/
+/* Revision 1.2  1998/01/19 19:26:58  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.1  1998/01/07 03:16:17  curt
+ * Moved from .../Src/Scenery/ to .../Src/Astro/
+ *
  * Revision 1.2  1997/12/30 16:36:52  curt
  * Merged in Durk's changes ...
  *
index 0453cb334ccf56dde9cf134bddaae16e37086a30..71d254f60a45709c16344f4e69575bf97c94e08c 100644 (file)
  **************************************************************************/
 
 
-#include "../Time/fg_time.h"
-#include "orbits.h"
-#include "planets.h"
-#include "sun.h"
+#include <Time/fg_time.h>
+#include <Astro/orbits.h>
+#include <Astro/planets.h>
+#include <Astro/sun.h>
 
 
 struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
@@ -133,9 +133,13 @@ struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
 
 
 /* $Log$
-/* Revision 1.1  1998/01/07 03:16:18  curt
-/* Moved from .../Src/Scenery/ to .../Src/Astro/
+/* Revision 1.2  1998/01/19 19:26:59  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.1  1998/01/07 03:16:18  curt
+ * Moved from .../Src/Scenery/ to .../Src/Astro/
+ *
  * Revision 1.4  1997/12/30 20:47:52  curt
  * Integrated new event manager with subsystem initializations.
  *
index a7a7b098c6d38a66eaf9c344513363e069b2fab0..282664bb985a4f38a987b727c355eca824117045 100644 (file)
 */
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "sky.h"
+#include <Astro/sky.h>
 
-#include "../Time/event.h"
-#include "../Time/fg_time.h"
+#include <Time/event.h>
+#include <Time/fg_time.h>
+
+#include <Aircraft/aircraft.h>
+#include <Flight/flight.h>
+#include <Include/constants.h>
+#include <Main/views.h>
+#include <Math/fg_random.h>
 
-#include "../Aircraft/aircraft.h"
-#include "../Flight/flight.h"
-#include "../Include/constants.h"
-#include "../Main/views.h"
-#include "../Math/fg_random.h"
 /*
-#include "../Include/general.h"
+#include <Include/general.h>
 */
 
 /* in meters of course */
@@ -329,10 +330,14 @@ void fgSkyRender( void ) {
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:17  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/19 19:26:59  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.2  1998/01/19 18:40:17  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:19  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index 711a9a06bffd88e8ec658d5b04c44a0d6444e212..eda5b77312d7051dadc9eb34649c9644ad89a0fb 100644 (file)
 #include <time.h>
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "orbits.h"
-#include "planets.h"
-#include "stars.h"
+#include <Astro/orbits.h>
+#include <Astro/planets.h>
+#include <Astro/stars.h>
 
-#include "../Include/constants.h"
-#include "../Include/general.h"
-#include "../Aircraft/aircraft.h"
-#include "../Main/views.h"
-#include "../Time/fg_time.h"
+#include <Include/constants.h>
+#include <Include/general.h>
+#include <Aircraft/aircraft.h>
+#include <Main/views.h>
+#include <Time/fg_time.h>
 
 
 #define EpochStart           (631065600)
@@ -276,10 +276,14 @@ void fgStarsRender( void ) {
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:18  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/19 19:26:59  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.2  1998/01/19 18:40:18  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:20  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index 2c89ae3c1c58d22d10ec50bf6c8f9ed1078cc43c..ecb891f9e26ea2ba16ca11095542a3d318ca8687 100644 (file)
  **************************************************************************/
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "../Time/fg_time.h"
-#include "../Main/views.h"
-#include "orbits.h"
-#include "sun.h"
+#include <Time/fg_time.h>
+#include <Main/views.h>
+#include <Astro/orbits.h>
+#include <Astro/sun.h>
 
 GLint sun_obj;
 
@@ -190,10 +190,14 @@ void fgSunRender( void ) {
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:18  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/19 19:27:00  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.2  1998/01/19 18:40:18  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:20  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index dc02e1f4e1ef6ced77a52fdd893126a8d7c7ebcb..d2c6ee0bff2d99d3ee005e01a45e4886f852f1d0 100644 (file)
@@ -1,7 +1,7 @@
 #---------------------------------------------------------------------------
 # Makefile
 #
-# Written by Curtis Olson, started July 1997.
+# Written by Curtis Olson, started May 1997.
 #
 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
 #
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libCockpit.a
+ARLIBRARY = libCockpit.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = cockpit.c hud.c
-HFILES = cockpit.h hud.h
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
+CXXFILES = 
 
-all: $(TARGET)
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
+include $(FG_ROOT_SRC)/commondefs
 
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-cockpit.o:
-       $(CC) $(CFLAGS) -c cockpit.c -o $@
-
-hud.o:
-       $(CC) $(CFLAGS) -c hud.c -o $@
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.1  1997/08/29 18:03:19  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 97b366cc0421f61133f1dc0e5e05a975a371f157..5b0eaf54757ba20b7a1acade76a4b3debcbaa286 100644 (file)
 #include <GL/glut.h>
 
 #include <stdlib.h>
-#include "cockpit.h"
+#include <Cockpit/cockpit.h>
 
-#include "../Include/constants.h"
+#include <Include/constants.h>
 
-#include "../Aircraft/aircraft.h"
-#include "../Scenery/mesh.h"
-#include "../Scenery/scenery.h"
-#include "../Math/mat3.h"
-#include "../Math/polar.h"
-#include "../Time/fg_timer.h"
-#include "../Math/fg_random.h"
-#include "../Weather/weather.h"
+#include <Aircraft/aircraft.h>
+#include <Scenery/mesh.h>
+#include <Scenery/scenery.h>
+#include <Math/mat3.h>
+#include <Math/polar.h>
+#include <Time/fg_timer.h>
+#include <Math/fg_random.h>
+#include <Weather/weather.h>
 
 // #define DEBUG
 
@@ -90,10 +90,14 @@ void fgCockpitUpdate( void )
 
 
 /* $Log$
-/* Revision 1.5  1998/01/19 18:40:19  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.6  1998/01/19 19:27:01  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.5  1998/01/19 18:40:19  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.4  1997/12/30 20:47:34  curt
  * Integrated new event manager with subsystem initializations.
  *
index b8c032806968d24494234be9b7a3787cf1323a79..a70d4a7a8f209d90370021c76f2fc181c4c18245 100644 (file)
  **************************************************************************/
  
 
-#include "hud.h"
+#include <Cockpit/hud.h>
 
 
 // And in the future (near future i hope).
-// #include "panel.h"
+// #include <Cockpit/panel.h>
 
 struct fgCOCKPIT {
        int code;
@@ -43,10 +43,14 @@ void fgCockpitUpdate( void );
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 18:40:19  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.4  1998/01/19 19:27:01  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.3  1998/01/19 18:40:19  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.2  1997/12/10 22:37:39  curt
  * Prepended "fg" on the name of all global structures that didn't have it yet.
  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
index f07ab2becf1cc185b3e8c115eebb0b07fe380dfd..1425c74f97345c06f878df8690d4c7a42b3a22cb 100644 (file)
@@ -28,9 +28,9 @@
 #define HUD_H
 
 
-#include "../Aircraft/aircraft.h"
-#include "../Flight/flight.h"
-#include "../Controls/controls.h"
+#include <Aircraft/aircraft.h>
+#include <Flight/flight.h>
+#include <Controls/controls.h>
 
 
 /* Instrument types */
@@ -233,10 +233,14 @@ void fgUpdateHUD2( struct HUD *hud );
 
 
 /* $Log$
-/* Revision 1.4  1998/01/19 18:40:21  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.5  1998/01/19 19:27:01  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.4  1998/01/19 18:40:21  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.3  1997/12/30 16:36:41  curt
  * Merged in Durk's changes ...
  *
index 3173889c80beecb88bb8acc67ed7c68e0a86786c..3aa67ba74ea1765dbdc89772bc728bd19e5b90cb 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libControls.a
+ARLIBRARY = libControls.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = controls.c
-HFILES = controls.h
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
+CXXFILES = 
 
-include depend
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-controls.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c controls.c -o $@
+include $(FG_ROOT_SRC)/commondefs
 
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.10  1997/07/20 02:19:10  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.9  1997/07/12 02:24:45  curt
-# Added ranlib.
-#
-# Revision 1.8  1997/06/27 21:38:03  curt
-# Working on Makefile structure.
-#
-# Revision 1.7  1997/06/27 20:03:33  curt
-# Working on Makefile structure.
-#
-# Revision 1.6  1997/06/26 19:08:29  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.5  1997/06/25 15:39:46  curt
-# Minor changes to compile with rsxnt/win32.
-#
-# Revision 1.4  1997/06/21 17:12:47  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.3  1997/05/31 19:16:27  curt
-# Elevator trim added.
-#
-# Revision 1.2  1997/05/23 15:40:32  curt
-# Added GNU copyright headers.
-#
-# Revision 1.1  1997/05/16 15:59:47  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index aced6d24a5a61c0969356faca6cfeca2ca69fdfe..d5128ca41280a7b8e5c4a024895bc7adc6db7bbe 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#include "controls.h"
-#include "../Aircraft/aircraft.h"
+#include <Controls/controls.h>
+#include <Aircraft/aircraft.h>
 
 
 void fgControlsInit( void ) {
@@ -167,10 +167,14 @@ void fgThrottleSet(int engine, double pos) {
 
 
 /* $Log$
-/* Revision 1.5  1998/01/19 18:40:22  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.6  1998/01/19 19:27:02  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.5  1998/01/19 18:40:22  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.4  1997/12/10 22:37:41  curt
  * Prepended "fg" on the name of all global structures that didn't have it yet.
  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
index 2500b06dcf849058ad34810068165b1a3dc74e31..584466910012879c65a8a08c23c094dc6b62f9bb 100644 (file)
@@ -1,6 +1,7 @@
-controls.o: controls.c controls.h ../Include/limits.h \
- ../Aircraft/aircraft.h ../Aircraft/../Flight/flight.h \
- ../Aircraft/../Flight/Slew/slew.h \
- ../Aircraft/../Flight/LaRCsim/ls_interface.h \
- ../Aircraft/../Flight/LaRCsim/../flight.h \
- ../Aircraft/../Controls/controls.h
+controls.o: controls.c /home/rpk/FlightGear/Src/Controls/controls.h \
+ /home/rpk/FlightGear/Src/Controls/../Include/limits.h \
+ /home/rpk/FlightGear/Src/Aircraft/aircraft.h \
+ /home/rpk/FlightGear/Src/Flight/flight.h \
+ /home/rpk/FlightGear/Src/Flight/Slew/slew.h \
+ /home/rpk/FlightGear/Src/Flight/LaRCsim/ls_interface.h \
+ /home/rpk/FlightGear/Src/Flight/LaRCsim/../flight.h
index 4f7fd0471198634d254eab334dab3e03d18c8d2a..876aa7f78ad5c7e84b1274d535e57744d5b2bc8e 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET=libFlight.a
+ARLIBRARY = libFlight.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = flight.c
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
+CXXFILES = 
 
-include depend
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-flight.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c flight.c -o $@
+include $(FG_ROOT_SRC)/commondefs
 
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.10  1997/07/20 02:19:10  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.9  1997/07/12 02:24:46  curt
-# Added ranlib.
-#
-# Revision 1.8  1997/06/27 21:38:05  curt
-# Working on Makefile structure.
-#
-# Revision 1.7  1997/06/27 20:03:34  curt
-# Working on Makefile structure.
-#
-# Revision 1.6  1997/06/26 19:08:30  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.5  1997/06/25 15:39:46  curt
-# Minor changes to compile with rsxnt/win32.
-#
-# Revision 1.4  1997/06/21 17:12:48  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.3  1997/05/29 02:32:25  curt
-# Starting to build generic flight model interface.
-#
-# Revision 1.2  1997/05/23 15:40:36  curt
-# Added GNU copyright headers.
-#
-# Revision 1.1  1997/05/16 16:04:44  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index f212c51a668a5034935eb41ff65cc91ebf1456a0..71eb5caefe0c875fd323a2e8db6b3304a9be349c 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 #include <stdio.h>
-#include "flight.h"
-#include "LaRCsim/ls_interface.h"
+#include <Flight/flight.h>
+#include <Flight/LaRCsim/ls_interface.h>
 
 
 /* Initialize the flight model parameters */
@@ -68,10 +68,14 @@ int fgFlightModelUpdate(int model, struct fgFLIGHT *f, int multiloop) {
 
 
 /* $Log$
-/* Revision 1.7  1998/01/19 18:40:23  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.8  1998/01/19 19:27:03  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.7  1998/01/19 18:40:23  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.6  1998/01/19 18:35:43  curt
  * Minor tweaks and fixes for cygwin32.
  *
index 2ac8abbe5997db9f96d1cd6157836d170faea08c..6e15911b4ff2c0e706c4da63b301a75af4217032 100644 (file)
@@ -28,8 +28,8 @@
 #define FLIGHT_H
 
 
-#include "Slew/slew.h"
-#include "LaRCsim/ls_interface.h"
+#include <Flight/Slew/slew.h>
+/* #include <Flight/LaRCsim/ls_interface.h> */
 
 
 /* Define the various supported flight models (most not yet implemented) */
@@ -396,10 +396,14 @@ int fgFlightModelUpdate(int model, struct fgFLIGHT *f, int multiloop);
 
 
 /* $Log$
-/* Revision 1.10  1997/12/10 22:37:43  curt
-/* Prepended "fg" on the name of all global structures that didn't have it yet.
-/* i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+/* Revision 1.11  1998/01/19 19:27:03  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.10  1997/12/10 22:37:43  curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
  * Revision 1.9  1997/09/04 02:17:33  curt
  * Shufflin' stuff.
  *
index eb29b39e0d8f7bc409f4c94028ef5118ba11031d..ba6570ffc740b49f49bddd69c540b62f0ba6245d 100644 (file)
@@ -1,7 +1,7 @@
 #---------------------------------------------------------------------------
 # Makefile
 #
-# Written by Curtis Olson, started July 1997.
+# Written by Curtis Olson, started May 1997.
 #
 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
 #
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libJoystick.a
+ARLIBRARY = libJoystick.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = joystick.c
-HFILES = joystick.h
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
+CXXFILES = 
 
-all: $(TARGET)
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
+include $(FG_ROOT_SRC)/commondefs
 
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-joystick.o:
-       $(CC) $(CFLAGS) -c joystick.c -o $@
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.1  1997/08/29 18:06:53  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 0e09fdb18c7c08f6a59b87daabae4629c2542fba..7fd734cd71272a462cd0aa054c5da14001ba450a 100644 (file)
-#---------------------------------------------------------------------------
-# Makefile
-#
-# Written by Curtis Olson, started May 1997.
-#
-# $Id$
-# (Log is kept at end of this file)
-#---------------------------------------------------------------------------
-
-
-TARGET = libLaRCsim.a
+ARLIBRARY = libLaRCsim.a
+TARGETS = $(ARLIBRARY)
 
 LaRCsimFILES = atmos_62.c ls_accel.c ls_aux.c ls_geodesy.c ls_gravity.c \
-       ls_step.c ls_model.c default_model_routines.c ls_init.c # ls_sync.c
-
+        ls_step.c ls_model.c default_model_routines.c ls_init.c # ls_sync.c
 NavionFILES = navion_aero.c navion_engine.c navion_gear.c navion_init.c
-
 InterfaceFILES = ls_interface.c
-
 CFILES =  $(LaRCsimFILES) $(NavionFILES) $(InterfaceFILES)
+CXXFILES = 
 
-OFILES = $(CFILES:.c=.o)
-
-
-include ../../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-LIBS = -lm
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-simtest: $(TARGET) LaRCsim.o
-       $(CC) -o simtest LaRCsim.o libLaRCsim.a $(LIBS)
-
-all: $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-atmos_62.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-default_model_routines.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_accel.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_aux.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_geodesy.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_gravity.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_init.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_interface.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_model.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-ls_step.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-navion_aero.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-navion_engine.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-navion_gear.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
-
-navion_init.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
+include $(FG_ROOT_SRC)/commondefs
 
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.10  1997/07/20 02:19:10  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.9  1997/07/18 23:41:23  curt
-# Tweaks for building with Cygnus Win32 compiler.
-#
-# Revision 1.8  1997/07/12 02:24:48  curt
-# Added ranlib.
-#
-# Revision 1.7  1997/07/07 20:59:48  curt
-# Working on scenery transformations to enable us to fly fluidly over the
-# poles with no discontinuity/distortion in scenery.
-#
-# Revision 1.6  1997/06/27 21:38:06  curt
-# Working on Makefile structure.
-#
-# Revision 1.5  1997/06/27 20:03:34  curt
-# Working on Makefile structure.
-#
-# Revision 1.4  1997/06/26 19:08:30  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.3  1997/06/21 17:12:50  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.2  1997/06/17 16:52:02  curt
-# Timer interval stuff now uses gettimeofday() instead of ftime()
-#
-# Revision 1.1  1997/05/29 00:09:52  curt
-# Initial Flight Gear revision.
-#
-# Revision 1.1  1997/05/16 16:04:44  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 5eb52d1fd4b2b98c848bb71589087c9438f85c94..d5bf7f620256cdf385adbe7ba8ecdf2491a3007a 100644 (file)
@@ -240,8 +240,8 @@ $Original log: LaRCsim.c,v $
 #include "ls_aux.h"
 #include "ls_model.h"
 #include "ls_init.h"
-#include "../flight.h"
-#include "../../Aircraft/aircraft.h"
+#include <Flight/flight.h>
+#include <Aircraft/aircraft.h>
 
 /* global variable declarations */
 
@@ -915,6 +915,10 @@ int fgLaRCsim_2_Flight (struct fgFLIGHT *f) {
 /* Flight Gear Modification Log
  *
  * $Log$
+ * Revision 1.14  1998/01/19 19:27:04  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.13  1998/01/19 18:40:26  curt
  * Tons of little changes to clean up the code and to remove fatal errors
  * when building with the c++ compiler.
index 08d1e242a081eada593f258d351b8bcc61542381..8550431c49819fde90c2f25dc0615e4700fe85cb 100644 (file)
  **************************************************************************/
 
 
-#ifndef LS_INTERFACE_H
-#define LS_INTERFACE_H
+#ifndef _LS_INTERFACE_H
+#define _LS_INTERFACE_H
 
 
-#include "../flight.h"
+#include <Flight/flight.h>
 
 
 /* reset flight params to a specific position */ 
@@ -44,14 +44,18 @@ int fgFlight_2_LaRCsim (struct fgFLIGHT *f);
 int fgLaRCsim_2_Flight (struct fgFLIGHT *f);
 
 
-#endif /* LS_INTERFACE_H */
+#endif /* _LS_INTERFACE_H */
 
 
 /* $Log$
-/* Revision 1.4  1998/01/19 18:40:27  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.5  1998/01/19 19:27:05  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.4  1998/01/19 18:40:27  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.3  1997/07/23 21:52:20  curt
  * Put comments around the text after an #endif for increased portability.
  *
index 34eec9ce678ea71623e913f2abe7d0141ad2eecd..c778e1df7940482a8171ef4a443770f1ad5daa16 100644 (file)
        DATE    PURPOSE                                         BY
        
 --------------------------------------------------------------------------*/
+
+#ifndef _LS_TYPES_H
+#define _LS_TYPES_H
+
+
 /* SCALAR type is used throughout equations of motion code - sets precision */
 
 typedef double SCALAR;
@@ -40,4 +45,8 @@ typedef SCALAR VECTOR_3[3];
 
 #define DATA SCALAR
 
+
+#endif /* _LS_TYPES_H */
+
+
 /* --------------------------- end of ls_types.h -------------------------*/
index 22a5b526f9e96baac5d34723c3560b80027fd488..568e5b4f660c6167a7975e3fcac59838446fabee 100644 (file)
 #endif
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 #include <stdio.h>
 
-#include "GLUTkey.h"
-#include "views.h"
+#include <Main/GLUTkey.h>
+#include <Main/views.h>
 
-#include "../Include/constants.h"
+#include <Include/constants.h>
 
-#include "../Aircraft/aircraft.h"
-#include "../Weather/weather.h"
+#include <Aircraft/aircraft.h>
+#include <Weather/weather.h>
 
 
 extern int show_hud;             /* HUD state */
@@ -243,9 +243,13 @@ void GLUTspecialkey(int k, int x, int y) {
 
 
 /* $Log$
-/* Revision 1.25  1998/01/05 18:44:34  curt
-/* Add an option to advance/decrease time from keyboard.
+/* Revision 1.26  1998/01/19 19:27:07  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.25  1998/01/05 18:44:34  curt
+ * Add an option to advance/decrease time from keyboard.
+ *
  * Revision 1.24  1997/12/30 16:36:46  curt
  * Merged in Durk's changes ...
  *
index 9bd72805a0fc4565d72d99daf037ce7291ad14e3..4776739188f90e452f3454715564c91d5cf8f628 100644 (file)
 #endif
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 #include <stdio.h>
 
-#include "GLUTkey.h"
-#include "fg_init.h"
-#include "views.h"
-
-#include "../Include/constants.h"
-#include "../Include/general.h"
-
-#include "../Aircraft/aircraft.h"
-#include "../Astro/moon.h"
-#include "../Astro/sky.h"
-#include "../Astro/stars.h"
-#include "../Astro/sun.h"
-#include "../Cockpit/cockpit.h"
-#include "../Joystick/joystick.h"
-#include "../Math/fg_geodesy.h"
-#include "../Math/mat3.h"
-#include "../Math/polar.h"
-#include "../Scenery/mesh.h"
-#include "../Scenery/scenery.h"
-#include "../Scenery/tilemgr.h"
-#include "../Time/event.h"
-#include "../Time/fg_time.h"
-#include "../Time/fg_timer.h"
-#include "../Time/sunpos.h"
-#include "../Weather/weather.h"
+#include <Main/GLUTkey.h>
+#include <Main/fg_init.h>
+#include <Main/views.h>
+
+#include <Include/constants.h>
+#include <Include/general.h>
+
+#include <Aircraft/aircraft.h>
+#include <Astro/moon.h>
+#include <Astro/sky.h>
+#include <Astro/stars.h>
+#include <Astro/sun.h>
+#include <Cockpit/cockpit.h>
+#include <Joystick/joystick.h>
+#include <Math/fg_geodesy.h>
+#include <Math/mat3.h>
+#include <Math/polar.h>
+#include <Scenery/mesh.h>
+#include <Scenery/scenery.h>
+#include <Scenery/tilemgr.h>
+#include <Time/event.h>
+#include <Time/fg_time.h>
+#include <Time/fg_timer.h>
+#include <Time/sunpos.h>
+#include <Weather/weather.h>
 
 
 /* This is a record containing global housekeeping information */
@@ -630,16 +630,19 @@ int main( int argc, char *argv[] ) {
 
 #ifdef NO_PRINTF
   #include <stdarg.h>
-  int printf (const char *format, ...) {
-  }
+  int printf (const char *format, ...) {}
 #endif
 
 
 /* $Log$
-/* Revision 1.49  1998/01/19 18:40:31  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.50  1998/01/19 19:27:07  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.49  1998/01/19 18:40:31  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.48  1998/01/19 18:35:46  curt
  * Minor tweaks and fixes for cygwin32.
  *
index 4b4f620f6de1debc737292eb2f3d334a79d2c0b7..7f20144848ccb0cc8c464575e2b5c1dbfbf82807 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
+TARGET = fg-$(FG_VERSION)
 
 CFILES = fg_init.c views.c $(INTERFACE_FILES)
-OFILES = $(CFILES:.c=.o)
-AFILES = ../Aircraft/libAircraft.a ../Astro/libAstro.a ../Cockpit/libCockpit.a \
-       ../Controls/libControls.a ../Flight/libFlight.a \
-       ../Joystick/libJoystick.a ../Flight/LaRCsim/libLaRCsim.a \
-       ../Flight/Slew/libSlew.a ../Scenery/libScenery.a \
-       ../Time/libTime.a ../Weather/libWeather.a ../Math/libMath.a \
 
+FGLIBS = -lAircraft -lAstro -lCockpit -lControls -lFlight \
+       -lJoystick -lLaRCsim -lSlew -lScenery -lTime -lWeather -lMath \
+       -lc \
+       $(NULL)
 
-include ../make.inc
 
+LCDEFS = -DGLUT
+LLDFLAGS =
+LDLIBS = $(FGLIBS) $(FG_DEBUG_LIBS) \
+       $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
 
-CFLAGS = $(FG_CFLAGS) $(INTERFACE_FLAGS)
-LIBS =  $(FG_DEBUG_LIBS) $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
-
-
-TARGET=fg-$(FG_VERSION)
-
+include $(FG_ROOT_SRC)/commondefs
 
 #---------------------------------------------------------------------------
-# Primary Targets
+# Rule for TARGET
 #---------------------------------------------------------------------------
 
-$(TARGET): $(OFILES) $(AFILES)
-       $(CC) -o $(TARGET) $(OFILES) $(AFILES) $(LIBS)
-       $(RM) -f fg$(FG_VERSION_MAJOR)
-       $(LN) $(TARGET) fg$(FG_VERSION_MAJOR)
-
-all: $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) $(TARGET).exe \
-               fg$(FG_VERSION_MAJOR) fg$(FG_VERSION_MAJOR).exe \
-               lib*.a *.os2 *~ core
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-GLUTmain.o:
-       $(CC) $(CFLAGS) -c GLUTmain.c -o $@
-
-GLUTkey.o:
-       $(CC) $(CFLAGS) -c GLUTkey.c -o $@
-
-GLTKkey.o:
-       $(CC) $(CFLAGS) -c GLTKkey.c -o $@
-
-fg_init.o:
-       $(CC) $(CFLAGS) -c fg_init.c -o $@
-
-views.o:
-       $(CC) $(CFLAGS) -c views.c -o $@
+$(TARGET): $(OBJECTS)
+       $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(LDLIBS)
+       $(LN) -sf $(TARGET) fg$(FG_VERSION_MAJOR)
 
+include $(COMMONRULES)
 
 #---------------------------------------------------------------------------
 # $Log$
-# Revision 1.40  1998/01/07 03:18:57  curt
-# Moved astronomical stuff from .../Src/Scenery to .../Src/Astro/
+# Revision 1.41  1998/01/19 19:27:08  curt
+# Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+# This should simplify things tremendously.
 #
-# Revision 1.39  1997/12/17 23:13:35  curt
-# Began working on rendering a sky.
+# Revision 1.1  1998/01/07 03:16:15  curt
+# Moved from .../Src/Scenery/ to .../Src/Astro/
 #
-# Revision 1.38  1997/12/15 23:54:47  curt
-# Add xgl wrappers for debugging.
-# Generate terrain normals on the fly.
+# Revision 1.26  1997/12/19 16:45:01  curt
+# Working on scene rendering order and options.
 #
-# Revision 1.37  1997/12/12 21:41:26  curt
-# More light/material property tweaking ... still a ways off.
+# Revision 1.25  1997/12/17 23:13:45  curt
+# Began working on rendering the sky.
 #
-# Revision 1.36  1997/12/10 01:19:47  curt
-# Tweaks for verion 0.15 release.
+# Revision 1.24  1997/11/25 19:25:33  curt
+# Changes to integrate Durk's moon/sun code updates + clean up.
 #
-# Revision 1.35  1997/10/28 21:11:22  curt
-# Organizational changes.
+# Revision 1.23  1997/10/28 21:00:20  curt
+# Changing to new terrain format.
 #
-# Revision 1.34  1997/10/25 03:24:21  curt
-# Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
+# Revision 1.22  1997/10/25 03:30:07  curt
+# Misc. tweaks.
 #
-# Revision 1.33  1997/09/04 02:17:35  curt
-# Shufflin' stuff.
+# Revision 1.21  1997/10/25 03:18:26  curt
+# Incorporated sun, moon, and planet position and rendering code contributed
+# by Durk Talsma.
 #
-# Revision 1.32  1997/08/27 21:31:27  curt
-# Added views.[ch]
+# Revision 1.20  1997/09/22 14:44:21  curt
+# Continuing to try to align stars correctly.
 #
-# Revision 1.31  1997/08/25 20:27:23  curt
-# Merged in initial HUD and Joystick code.
+# Revision 1.19  1997/08/27 03:30:23  curt
+# Changed naming scheme of basic shared structures.
 #
-# Revision 1.30  1997/08/22 21:34:40  curt
-# Doing a bit of reorganizing and house cleaning.
+# Revision 1.18  1997/08/02 19:10:12  curt
+# Incorporated mesh2GL.c into mesh.c
 #
-# Revision 1.29  1997/08/04 20:25:15  curt
-# Organizational tweaking.
+# Revision 1.17  1997/07/23 21:52:23  curt
+# Put comments around the text after an #endif for increased portability.
 #
-# Revision 1.28  1997/08/02 18:45:01  curt
-# Renamed GLmain.c GLUTmain.c
-#
-# Revision 1.27  1997/07/31 22:52:39  curt
-# Working on redoing internal coordinate systems & scenery transformations.
-#
-# Revision 1.26  1997/07/30 16:12:42  curt
-# Moved fg_random routines from Util/ to Math/
-#
-# Revision 1.25  1997/07/20 02:19:11  curt
+# Revision 1.16  1997/07/20 02:19:11  curt
 # First stab at a system to generate os2 makefiles automatically.
 #
-# Revision 1.24  1997/07/19 23:04:47  curt
-# Added an initial weather section.
-#
-# Revision 1.23  1997/07/19 22:34:03  curt
-# Moved PI definitions to ../constants.h
-# Moved random() stuff to ../Utils/ and renamed fg_random()
+# Revision 1.15  1997/07/12 02:24:47  curt
+# Added ranlib.
 #
-# Revision 1.22  1997/07/18 23:41:25  curt
-# Tweaks for building with Cygnus Win32 compiler.
+# Revision 1.14  1997/06/29 21:16:47  curt
+# More twiddling with the Scenery Management system.
 #
-# Revision 1.21  1997/07/05 20:43:34  curt
-# renamed mat3 directory to Math so we could add other math related routines.
-#
-# Revision 1.20  1997/06/29 21:19:17  curt
-# Working on scenery management system.
-#
-# Revision 1.19  1997/06/27 21:38:09  curt
+# Revision 1.13  1997/06/27 21:38:10  curt
 # Working on Makefile structure.
 #
-# Revision 1.18  1997/06/27 20:03:36  curt
+# Revision 1.12  1997/06/27 20:03:37  curt
 # Working on Makefile structure.
 #
-# Revision 1.17  1997/06/26 22:14:54  curt
+# Revision 1.11  1997/06/26 22:14:57  curt
 # Beginning work on a scenery management system.
 #
-# Revision 1.16  1997/06/26 19:08:33  curt
+# Revision 1.10  1997/06/26 19:08:34  curt
 # Restructuring make, adding automatic "make dep" support.
 #
-# Revision 1.15  1997/06/25 15:39:47  curt
+# Revision 1.9  1997/06/25 15:39:48  curt
 # Minor changes to compile with rsxnt/win32.
 #
-# Revision 1.14  1997/06/21 17:52:23  curt
-# Continue directory shuffling ... everything should be compilable/runnable
-# again.
+# Revision 1.8  1997/06/21 17:58:07  curt
+# directory shuffling ...
 #
-# Revision 1.13  1997/06/21 17:12:54  curt
-# Capitalized subdirectory names.
+# Revision 1.1  1997/06/21 17:39:28  curt
+# Moved to the ParseScn subdirectory.
 #
-# Revision 1.12  1997/06/16 19:32:51  curt
-# Starting to add general timer support.
+# Revision 1.6  1997/06/21 17:12:55  curt
+# Capitalized subdirectory names.
 #
-# Revision 1.11  1997/05/31 19:16:25  curt
+# Revision 1.5  1997/05/31 19:16:29  curt
 # Elevator trim added.
 #
-# Revision 1.10  1997/05/31 04:13:53  curt
-# WE CAN NOW FLY!!!
+# Revision 1.4  1997/05/27 17:48:50  curt
+# Added -f flag to flex to generate a "fast" scanner.
 #
-# Continuing work on the LaRCsim flight model integration.
-# Added some MSFS-like keyboard input handling.
-#
-# Revision 1.9  1997/05/30 23:26:19  curt
-# Added elevator/aileron controls.
-#
-# Revision 1.8  1997/05/30 19:27:02  curt
-# The LaRCsim flight model is starting to look like it is working.
-#
-# Revision 1.7  1997/05/29 22:39:50  curt
-# Working on incorporating the LaRCsim flight model.
-#
-# Revision 1.6  1997/05/29 02:33:23  curt
-# Updated to reflect changing interfaces in other "modules."
-#
-# Revision 1.5  1997/05/27 17:44:32  curt
-# Renamed & rearranged variables and routines.   Added some initial simple
-# timer/alarm routines so the flight model can be updated on a regular interval.
-#
-# Revision 1.4  1997/05/23 15:40:26  curt
+# Revision 1.3  1997/05/23 15:40:40  curt
 # Added GNU copyright headers.
-# Fog now works!
-#
-# Revision 1.3  1997/05/23 00:35:13  curt
-# Trying to get fog to work ...
 #
-# Revision 1.2  1997/05/21 15:57:52  curt
-# Renamed due to added GLUT support.
+# Revision 1.2  1997/05/17 00:17:01  curt
+# Cosmetic changes.
 #
-# Revision 1.1  1997/05/16 16:05:51  curt
+# Revision 1.1  1997/05/16 16:07:02  curt
 # Initial revision.
 #
index c1c9df13372c0bde8eb2ea682a6c399cc2a3df20..787ea8ff2e87c14f18af1fcbac61e15a22c2d76c 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "fg_init.h"
-#include "views.h"
-
-#include "../Include/constants.h"
-#include "../Include/general.h"
-
-#include "../Aircraft/aircraft.h"
-#include "../Astro/moon.h"
-#include "../Astro/sky.h"
-#include "../Astro/stars.h"
-#include "../Astro/sun.h"
-#include "../Cockpit/cockpit.h"
-#include "../Joystick/joystick.h"
-#include "../Math/fg_random.h"
-#include "../Scenery/mesh.h"
-#include "../Scenery/scenery.h"
-#include "../Scenery/tilemgr.h"
-#include "../Time/event.h"
-#include "../Time/fg_time.h"
-#include "../Time/sunpos.h"
-#include "../Weather/weather.h"
+#include <Main/fg_init.h>
+#include <Main/views.h>
+
+#include <Include/constants.h>
+#include <Include/general.h>
+
+#include <Aircraft/aircraft.h>
+#include <Astro/moon.h>
+#include <Astro/sky.h>
+#include <Astro/stars.h>
+#include <Astro/sun.h>
+#include <Cockpit/cockpit.h>
+#include <Joystick/joystick.h>
+#include <Math/fg_random.h>
+#include <Scenery/mesh.h>
+#include <Scenery/scenery.h>
+#include <Scenery/tilemgr.h>
+#include <Time/event.h>
+#include <Time/fg_time.h>
+#include <Time/sunpos.h>
+#include <Weather/weather.h>
 
 
 extern int show_hud;             /* HUD state */
@@ -287,10 +287,14 @@ void fgInitSubsystems( void ) {
 
 
 /* $Log$
-/* Revision 1.31  1998/01/19 18:40:32  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.32  1998/01/19 19:27:08  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.31  1998/01/19 18:40:32  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.30  1998/01/13 00:23:09  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index 9c1d02af4a45f0e7687efd6209bd97491cc9ec4a..4f6470a2f6f362cbc763e1381b96106ac9fd6d4e 100644 (file)
  **************************************************************************/
 
 
-#include "views.h"
+#include <Main/views.h>
 
-#include "../Include/constants.h"
+#include <Include/constants.h>
 
-#include "../Flight/flight.h"
-#include "../Math/mat3.h"
-#include "../Math/polar.h"
-#include "../Math/vector.h"
-#include "../Scenery/scenery.h"
-#include "../Time/fg_time.h"
+#include <Flight/flight.h>
+#include <Math/mat3.h>
+#include <Math/polar.h>
+#include <Math/vector.h>
+#include <Scenery/scenery.h>
+#include <Time/fg_time.h>
 
 
 /* This is a record containing current view parameters */
@@ -182,10 +182,14 @@ void fgViewUpdate(struct fgFLIGHT *f, struct fgVIEW *v, struct fgLIGHT *l) {
 
 
 /* $Log$
-/* Revision 1.9  1998/01/13 00:23:09  curt
-/* Initial changes to support loading and management of scenery tiles.  Note,
-/* there's still a fair amount of work left to be done.
+/* Revision 1.10  1998/01/19 19:27:09  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.9  1998/01/13 00:23:09  curt
+ * Initial changes to support loading and management of scenery tiles.  Note,
+ * there's still a fair amount of work left to be done.
+ *
  * Revision 1.8  1997/12/30 22:22:33  curt
  * Further integration of event manager.
  *
index dd9bca1680d851260d658b3d9d71db447ff4bc2a..f74a986c362fe3594ea120acf15d252d488ead27 100644 (file)
 #define VIEWS_H
 
 
-#include "../Include/types.h"
-#include "../Flight/flight.h"
-#include "../Math/mat3.h"
-#include "../Time/fg_time.h"
+#include <Include/types.h>
+#include <Flight/flight.h>
+#include <Math/mat3.h>
+#include <Time/fg_time.h>
 
 
 /* Define a structure containing view information */
@@ -89,9 +89,13 @@ void fgViewUpdate(struct fgFLIGHT *f, struct fgVIEW *v, struct fgLIGHT *l);
 
 
 /* $Log$
-/* Revision 1.5  1997/12/22 04:14:32  curt
-/* Aligned sky with sun so dusk/dawn effects can be correct relative to the sun.
+/* Revision 1.6  1998/01/19 19:27:10  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.5  1997/12/22 04:14:32  curt
+ * Aligned sky with sun so dusk/dawn effects can be correct relative to the sun.
+ *
  * Revision 1.4  1997/12/17 23:13:36  curt
  * Began working on rendering a sky.
  *
index 84681fb784ac47dcb3c00bc7e87645ee07f174a2..cd0787ec036a41bce01ebf87f9484e970dcd6e75 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libScenery.a
+ARLIBRARY = libScenery.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = common.c geometry.c mesh.c obj.c scenery.c tilemgr.c tileutils.c
+CXXFILES = 
 
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES) $(HFILES) 
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
+include $(FG_ROOT_SRC)/commondefs
 
-realclean: clean
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-common.o:
-       $(CC) $(CFLAGS) -c common.c -o $@
-
-geometry.o:
-       $(CC) $(CFLAGS) -c geometry.c -o $@
-
-mesh.o:
-       $(CC) $(CFLAGS) -c mesh.c -o $@
-
-obj.o:
-       $(CC) $(CFLAGS) -c obj.c -o $@
-
-scenery.o:
-       $(CC) $(CFLAGS) -c scenery.c -o $@
-
-tilemgr.o:
-       $(CC) $(CFLAGS) -c tilemgr.c -o $@
-
-tileutils.o:
-       $(CC) $(CFLAGS) -c tileutils.c -o $@
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.28  1998/01/08 02:22:26  curt
-# Continue working on basic features.
-#
-# Revision 1.27  1998/01/07 03:22:28  curt
-# Moved astro stuff to .../Src/Astro/
-#
-# Revision 1.26  1997/12/19 16:45:01  curt
-# Working on scene rendering order and options.
-#
-# Revision 1.25  1997/12/17 23:13:45  curt
-# Began working on rendering the sky.
-#
-# Revision 1.24  1997/11/25 19:25:33  curt
-# Changes to integrate Durk's moon/sun code updates + clean up.
-#
-# Revision 1.23  1997/10/28 21:00:20  curt
-# Changing to new terrain format.
-#
-# Revision 1.22  1997/10/25 03:30:07  curt
-# Misc. tweaks.
-#
-# Revision 1.21  1997/10/25 03:18:26  curt
-# Incorporated sun, moon, and planet position and rendering code contributed
-# by Durk Talsma.
-#
-# Revision 1.20  1997/09/22 14:44:21  curt
-# Continuing to try to align stars correctly.
-#
-# Revision 1.19  1997/08/27 03:30:23  curt
-# Changed naming scheme of basic shared structures.
-#
-# Revision 1.18  1997/08/02 19:10:12  curt
-# Incorporated mesh2GL.c into mesh.c
-#
-# Revision 1.17  1997/07/23 21:52:23  curt
-# Put comments around the text after an #endif for increased portability.
-#
-# Revision 1.16  1997/07/20 02:19:11  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.15  1997/07/12 02:24:47  curt
-# Added ranlib.
-#
-# Revision 1.14  1997/06/29 21:16:47  curt
-# More twiddling with the Scenery Management system.
-#
-# Revision 1.13  1997/06/27 21:38:10  curt
-# Working on Makefile structure.
-#
-# Revision 1.12  1997/06/27 20:03:37  curt
-# Working on Makefile structure.
-#
-# Revision 1.11  1997/06/26 22:14:57  curt
-# Beginning work on a scenery management system.
-#
-# Revision 1.10  1997/06/26 19:08:34  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.9  1997/06/25 15:39:48  curt
-# Minor changes to compile with rsxnt/win32.
-#
-# Revision 1.8  1997/06/21 17:58:07  curt
-# directory shuffling ...
-#
-# Revision 1.1  1997/06/21 17:39:28  curt
-# Moved to the ParseScn subdirectory.
-#
-# Revision 1.6  1997/06/21 17:12:55  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.5  1997/05/31 19:16:29  curt
-# Elevator trim added.
-#
-# Revision 1.4  1997/05/27 17:48:50  curt
-# Added -f flag to flex to generate a "fast" scanner.
-#
-# Revision 1.3  1997/05/23 15:40:40  curt
-# Added GNU copyright headers.
-#
-# Revision 1.2  1997/05/17 00:17:01  curt
-# Cosmetic changes.
-#
-# Revision 1.1  1997/05/16 16:07:02  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 370144b6ab9eace5ca46eee8743ff8ae1ad2128d..1e354b424dfd7acd181c316ceb0f090006be9385 100644 (file)
@@ -28,7 +28,7 @@
 #include <string.h>
 #endif
 
-#include "common.h"
+#include <Scenery/common.h>
 
 
 /* strip the enclosing quotes from a string, works within the current
@@ -48,9 +48,13 @@ char *strip_quotes(char *s) {
 
 
 /* $Log$
-/* Revision 1.3  1998/01/06 01:20:23  curt
-/* Tweaks to help building with MSVC++
+/* Revision 1.4  1998/01/19 19:27:14  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.3  1998/01/06 01:20:23  curt
+ * Tweaks to help building with MSVC++
+ *
  * Revision 1.2  1997/05/23 15:40:41  curt
  * Added GNU copyright headers.
  *
index 07a785ef989463477461d0a8c89df0158327eb8c..b4cc0ae83dd283fd3b4791a81c9fbdd3a6daf1db 100644 (file)
@@ -28,8 +28,8 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "geometry.h"
-#include "mesh.h"
+#include <Scenery/geometry.h>
+#include <Scenery/mesh.h>
 
 
 static vrmlGeometryType;
@@ -120,10 +120,14 @@ int vrmlFreeGeometry( void ) {
 
 
 /* $Log$
-/* Revision 1.6  1998/01/19 18:40:35  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.7  1998/01/19 19:27:15  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.6  1998/01/19 18:40:35  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.5  1998/01/06 01:20:23  curt
  * Tweaks to help building with MSVC++
  *
index 4cbd2f53dc5bbbbc85eb586e72f013f7df6da758..77cae1e24b36374f134f8a2c8b0e6f4c2234e272 100644 (file)
 
 #include <GL/glut.h>
 
-#include "../Include/constants.h"
-#include "../Include/types.h"
-#include "../Math/fg_geodesy.h"
-#include "../Math/fg_random.h"
-#include "../Math/mat3.h"
-#include "../Math/polar.h"
+#include <Include/constants.h>
+#include <Include/types.h>
+#include <Math/fg_geodesy.h>
+#include <Math/fg_random.h>
+#include <Math/mat3.h>
+#include <Math/polar.h>
 
-#include "mesh.h"
-#include "common.h"
-#include "scenery.h"
+#include <Scenery/mesh.h>
+#include <Scenery/common.h>
+#include <Scenery/scenery.h>
 
 
 /* Temporary hack until we get the scenery management system running */
@@ -396,10 +396,14 @@ GLint mesh_to_OpenGL(struct MESH *m) {
 
 
 /* $Log$
-/* Revision 1.26  1998/01/19 18:40:36  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.27  1998/01/19 19:27:15  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.26  1998/01/19 18:40:36  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.25  1998/01/07 03:31:27  curt
  * Miscellaneous tweaks.
  *
index b94b50b524de680f05b7836182378a10329f07ab..c480a6f03042b281d1be48d30c85d36139511540 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "obj.h"
-#include "scenery.h"
+#include <Scenery/obj.h>
+#include <Scenery/scenery.h>
 
-#include "../Math/mat3.h"
+#include <Math/mat3.h>
 
 
 
@@ -328,10 +328,14 @@ GLint fgObjLoad(char *path, struct fgCartesianPoint *ref) {
 
 
 /* $Log$
-/* Revision 1.17  1998/01/13 00:23:10  curt
-/* Initial changes to support loading and management of scenery tiles.  Note,
-/* there's still a fair amount of work left to be done.
+/* Revision 1.18  1998/01/19 19:27:16  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.17  1998/01/13 00:23:10  curt
+ * Initial changes to support loading and management of scenery tiles.  Note,
+ * there's still a fair amount of work left to be done.
+ *
  * Revision 1.16  1997/12/30 23:09:40  curt
  * Worked on winding problem without luck, so back to calling glFrontFace()
  * 3 times for each scenery area.
index 3fd6be4ca3e3243ff98936e08e6c6ba4ea55d5fc..02ed97534d57de8ad3287f65d6d2059d360a6353 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <GL/glut.h>
 
-#include "../Include/types.h"
+#include <Include/types.h>
 
 
 /* Load a .obj file and generate the GL call list */
@@ -45,10 +45,14 @@ GLint fgObjLoad(char *file, struct fgCartesianPoint *ref);
 
 
 /* $Log$
-/* Revision 1.2  1998/01/13 00:23:10  curt
-/* Initial changes to support loading and management of scenery tiles.  Note,
-/* there's still a fair amount of work left to be done.
+/* Revision 1.3  1998/01/19 19:27:17  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.2  1998/01/13 00:23:10  curt
+ * Initial changes to support loading and management of scenery tiles.  Note,
+ * there's still a fair amount of work left to be done.
+ *
  * Revision 1.1  1997/10/28 21:14:55  curt
  * Initial revision.
  *
index 27cfe289cccce16277352f09d98a1da6db15194f..3e3ebda098d72f31e3bcf15639547ef831d71a12 100644 (file)
 #endif
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
 #include <stdio.h>
 #include <string.h>
 
-#include "../Include/general.h"
+#include <Include/general.h>
 
-#include "obj.h"
-#include "scenery.h"
+#include <Scenery/obj.h>
+#include <Scenery/scenery.h>
 
 
 /* Temporary hack until we get the scenery management system running */
@@ -100,10 +100,14 @@ void fgSceneryRender( void ) {
 
 
 /* $Log$
-/* Revision 1.32  1998/01/19 18:40:37  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.33  1998/01/19 19:27:17  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.32  1998/01/19 18:40:37  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.31  1998/01/13 00:23:11  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index 78b329dd8ad3b0a083da68aaf9b699ac68fa936d..b47b27cfdd0ef12b6a428e1d01b8015171b63e97 100644 (file)
@@ -28,7 +28,7 @@
 #define SCENERY_H
 
 
-#include "../Include/types.h"
+#include <Include/types.h>
 
 
 /* Define a structure containing global scenery parameters */
@@ -63,10 +63,14 @@ void fgSceneryRender( void );
 
 
 /* $Log$
-/* Revision 1.13  1998/01/19 18:40:38  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.14  1998/01/19 19:27:17  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.13  1998/01/19 18:40:38  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.12  1997/12/15 23:55:03  curt
  * Add xgl wrappers for debugging.
  * Generate terrain normals on the fly.
index 9854b2f33f08f66bed719bce975e483fb3e9d6d5..e37db89bbf15ce8fa4c2bf770a6579febc5807d0 100644 (file)
 #endif
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "scenery.h"
-#include "tileutils.h"
-#include "obj.h"
+#include <Scenery/scenery.h>
+#include <Scenery/tileutils.h>
+#include <Scenery/obj.h>
 
-#include "../Aircraft/aircraft.h"
-#include "../Include/constants.h"
-#include "../Include/general.h"
-#include "../Include/types.h"
+#include <Aircraft/aircraft.h>
+#include <Include/constants.h>
+#include <Include/general.h>
+#include <Include/types.h>
 
 
 /* here's where we keep the array of closest (potentially viewable) tiles */
@@ -124,10 +124,14 @@ void fgTileMgrRender( void ) {
 
 
 /* $Log$
-/* Revision 1.4  1998/01/19 18:40:38  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.5  1998/01/19 19:27:18  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.4  1998/01/19 18:40:38  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.3  1998/01/13 00:23:11  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index dbf087acfa263400a8e3b85444b8443dc4cc8937..ec424ff4ea07c7f8b0713f624c6ee52251658f88 100644 (file)
@@ -27,8 +27,8 @@
 #include <math.h>
 #include <stdio.h>
 
-#include "tileutils.h"
-#include "../Include/constants.h"
+#include <Scenery/tileutils.h>
+#include <Include/constants.h>
 
 
 /* Generate the unique scenery tile index containing the specified
@@ -266,9 +266,13 @@ int main() {
 
 
 /* $Log$
-/* Revision 1.5  1998/01/14 02:19:04  curt
-/* Makde offset_bucket visible to outside.
+/* Revision 1.6  1998/01/19 19:27:18  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.5  1998/01/14 02:19:04  curt
+ * Makde offset_bucket visible to outside.
+ *
  * Revision 1.4  1998/01/13 00:23:12  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index bf25cafb38d68a296c9be8aa5d59693be27fe136..14410d4b6c0b6f5c3025017592f0617877207894 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-include make.inc
-
+include $(FG_ROOT_SRC)/commondefs
 
 SUBSUBDIRS = Flight/LaRCsim Flight/Slew
 SUBDIRS = Aircraft Astro Cockpit Controls Flight Joystick Math Scenery \
        Time Weather XGL
 MAIN = Main
-
+ORDEREDDIRS = $(SUBSUBDIRS) $(SUBDIRS) $(MAIN)
 
 all: 
-       for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
+       for dir in $(ORDEREDDIRS); do \
            ( cd $$dir; $(MAKE) ) ; \
        done
 
 depend:
-       for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
+       for dir in $(ORDEREDDIRS); do \
            ( echo "Making depend in $$dir"; \
              cd $$dir; $(CC) -MM *.c > depend ) ; \
        done
 
 Makefile-os2:
        cat Makefile | perl mkmfos2.pl > Makefile.os2; \
-       for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
+       for dir in $(ORDEREDDIRS); do \
            ( echo "Making Makefile.os2 in $$dir"; \
              cat $$dir/Makefile | perl mkmfos2.pl > $$dir/Makefile.os2; \
              cat $$dir/depend   | perl mkmfos2.pl > $$dir/depend.os2) ; \
@@ -54,10 +52,14 @@ Makefile-os2:
 
 clean:
        -rm -f *.os2 *~
-       for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
+       for dir in $(ORDEREDDIRS); do \
            (cd $$dir; $(MAKE) clean) ; \
        done
 
+clobber:
+       for dir in $(ORDEREDDIRS); do \
+           (cd $$dir; $(MAKE) clean) ; \
+       done
 
 source-tar: clean
        (cd ../..; \
@@ -98,6 +100,10 @@ bin-zip:
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.36  1998/01/19 19:26:51  curt
+# Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+# This should simplify things tremendously.
+#
 # Revision 1.35  1998/01/07 03:18:14  curt
 # Created the Astro/ subdirctory for stuff high in the sky ...
 #
diff --git a/Simulator/armake.proto b/Simulator/armake.proto
new file mode 100644 (file)
index 0000000..613082d
--- /dev/null
@@ -0,0 +1,36 @@
+#---------------------------------------------------------------------------
+# Makefile
+#
+# Written by Curtis Olson, started May 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)
+#---------------------------------------------------------------------------
+
+ARLIBRARY = __LIB_NAME_HERE__
+TARGETS = $(ARLIBRARY)
+
+CFILES = __C_SRC_HERE__
+CXXFILES = __CXX_SRC_HERE__
+
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
+
+include $(FG_ROOT_SRC)/commondefs
+
+include $(COMMONRULES)
diff --git a/Simulator/commonrules b/Simulator/commonrules
new file mode 100644 (file)
index 0000000..ce62eea
--- /dev/null
@@ -0,0 +1,40 @@
+# emacs make tag: -*- Mode: Makefile -*-
+
+default: $(TARGETS)
+
+.SUFFIXES: .d .cxx .c .o
+
+$(ARLIBRARY): $(OBJECTS)
+       $(AR) rv $(ARLIBRARY) $(OBJECTS)
+       $(RANLIB) $(ARLIBRARY)
+       echo $(VPATH)
+       $(MV) $(ARLIBRARY) $(FG_ROOT_LIB)
+
+$(LDLIBTARGET): $(OBJECTS)
+       $(LD) -o $(LDLIBRARY) $(LDFLAGS) $(OBJECTS)
+       $(MV) $(LDLIBRARY) $(LDLIBTARGET)
+
+depend: $(DEPENDS)
+       cat $(DEPENDS) > $(MAKEDEPENDFILE)
+
+.cxx.d:
+       $(CPP) $(CPPFLAGS) $(CPPDEFS) -c $< -MD
+
+.cxx.o:
+       $(CPP) $(CPPFLAGS) $(CPPDEFS) -c $<
+
+.c.d:
+       $(CC) $(CFLAGS) $(CDEFS) -c $< -MD
+
+.c.o:
+       $(CC) $(CFLAGS) $(CDEFS) -c $<
+
+clean:
+       rm -f $(OBJECTS) $(TARGET) $(DIRT)
+
+clobber: clean
+       rm -f *.d *.o *.a *.os2 *~ core $(MAKEDEPENDFILE)
+
+#include $(MAKEDEPENDFILE)
+
+
diff --git a/Simulator/genmake b/Simulator/genmake
new file mode 100755 (executable)
index 0000000..e66bda1
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/csh
+
+set GENMAKEBASE=${FG_ROOT_SRC}
+
+set ARLIBDIRS="Aircraft Astro Cockpit Controls Flight Flight/Slew Joystick Scenery Time Weather"
+set MUSTDOMANUALLY="Math Flight/LaRCsim XGL"
+
+set AR_PROTOMAKE=${GENMAKEBASE}/armake.proto
+
+echo $ARLIBDIRS
+
+foreach dir (${ARLIBDIRS})
+    cd $dir
+    set cfiles=`ls *.c | sed -e's%^M% %'`
+    set cxxfiles=`ls *.cxx`
+    sed \
+       -e "s%__LIB_NAME_HERE__%lib`basename ${dir}`.a%g" \
+       -e "s%__CXX_SRC_HERE__%${cxxfiles}%g" \
+        -e "s%__C_SRC_HERE__%${cfiles}%g" \
+       ${AR_PROTOMAKE} > Makefile
+    cd ${GENMAKEBASE}
+end
index 3083696f69b3c009343267cc9de59f9347a15d08..998912fc412095ea9897bd50d743692df3fd7101 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET=libSlew.a
+ARLIBRARY = libSlew.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = slew.c
-OFILES = $(CFILES:.c=.o)
-
-
-include ../../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
+CXXFILES = 
 
-include depend
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-slew.o:
-       $(CC) $(CFLAGS) $(INCLUDES) -c slew.c -o $@
+include $(FG_ROOT_SRC)/commondefs
 
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.8  1997/07/20 02:19:10  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.7  1997/07/12 02:24:49  curt
-# Added ranlib.
-#
-# Revision 1.6  1997/06/27 21:38:07  curt
-# Working on Makefile structure.
-#
-# Revision 1.5  1997/06/27 20:03:36  curt
-# Working on Makefile structure.
-#
-# Revision 1.4  1997/06/26 19:08:31  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.3  1997/06/25 15:39:46  curt
-# Minor changes to compile with rsxnt/win32.
-#
-# Revision 1.2  1997/06/21 17:12:51  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.1  1997/05/29 02:29:42  curt
-# Moved to their own directory.
-#
-# Revision 1.2  1997/05/23 15:40:36  curt
-# Added GNU copyright headers.
-#
-# Revision 1.1  1997/05/16 16:04:44  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 01e1317fb736822442ed5583a856073523cd2881..3a4e28eea79e077590a9be599c7585f1a1dd36e7 100644 (file)
 
 #include <math.h>
 
-#include "slew.h"
-#include "../flight.h"
-#include "../../Aircraft/aircraft.h"
-#include "../../Controls/controls.h"
-#include "../../Include/constants.h"
+#include <Flight/Slew/slew.h>
+#include <Flight/flight.h>
+#include <Aircraft/aircraft.h>
+#include <Controls/controls.h>
+#include <Include/constants.h>
 
 
 #ifndef M_PI                                    
@@ -93,10 +93,14 @@ void fgSlewUpdate( void ) {
 
 
 /* $Log$
-/* Revision 1.8  1998/01/19 18:40:30  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.9  1998/01/19 19:27:06  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.8  1998/01/19 18:40:30  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.7  1997/12/15 23:54:42  curt
  * Add xgl wrappers for debugging.
  * Generate terrain normals on the fly.
index 7ed2b350e44f00b01d5eb5e21c7de9dc4f400663..576fc01d65b0c475f3fcc9ff73e5a98250e097f4 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
+ARLIBRARY = libTime.a
+TARGETS = $(ARLIBRARY)
 
-TARGET = libTime.a
+CFILES = event.c fg_time.c fg_timer.c scheduler.c sidereal.c sunpos.c test_event.c ttest.c
+CXXFILES = 
 
-CFILES = event.c fg_time.c fg_timer.c sunpos.c
-OFILES = $(CFILES:.c=.o)
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
+include $(FG_ROOT_SRC)/commondefs
 
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
-
-all: $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-event.o:
-       $(CC) $(CFLAGS) -c event.c -o $@
-
-fg_time.o:
-       $(CC) $(CFLAGS) -c fg_time.c -o $@
-
-fg_timer.o:
-       $(CC) $(CFLAGS) -c fg_timer.c -o $@
-
-sunpos.o:
-       $(CC) $(CFLAGS) -c sunpos.c -o $@
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.14  1997/12/30 04:19:22  curt
-# Initial revision.
-#
-# Revision 1.13  1997/09/22 14:44:22  curt
-# Continuing to try to align stars correctly.
-#
-# Revision 1.12  1997/08/06 00:24:31  curt
-# Working on correct real time sun lighting.
-#
-# Revision 1.11  1997/08/01 15:28:44  curt
-# Added sunpos.c
-#
-# Revision 1.10  1997/07/31 22:52:40  curt
-# Working on redoing internal coordinate systems & scenery transformations.
-#
-# Revision 1.9  1997/07/20 02:19:12  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.8  1997/07/14 16:26:05  curt
-# Testing/playing -- placed objects randomly across the entire terrain.
-#
-# Revision 1.7  1997/07/12 02:24:48  curt
-# Added ranlib.
-#
-# Revision 1.6  1997/06/27 21:38:13  curt
-# Working on Makefile structure.
-#
-# Revision 1.5  1997/06/27 20:03:40  curt
-# Working on Makefile structure.
-#
-# Revision 1.4  1997/06/26 19:08:37  curt
-# Restructuring make, adding automatic "make dep" support.
-#
-# Revision 1.3  1997/06/25 17:46:58  curt
-# Make itimer support optional.
-#
-# Revision 1.2  1997/06/21 17:12:55  curt
-# Capitalized subdirectory names.
-#
-# Revision 1.1  1997/06/16 19:24:19  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 7938133a889e6898ed2610ba943f0216ecef23e6..a179f7142284d6b846e9c855b6fe5911a5e0cff1 100644 (file)
@@ -35,7 +35,7 @@
 #endif /* USE_FTIME */
 
 
-#include "event.h"
+#include <Time/event.h>
 
 
 #define MAX_EVENTS 100    /* size of event table */
@@ -338,10 +338,14 @@ void fgEventProcess( void ) {
 
 
 /* $Log$
-/* Revision 1.6  1998/01/19 18:40:39  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.7  1998/01/19 19:27:19  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.6  1998/01/19 18:40:39  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.5  1998/01/06 01:20:27  curt
  * Tweaks to help building with MSVC++
  *
index 6b49f0d0210cbe8f2e55b14e0995f0b4e39adc93..669c68faaa7db4730aa280a8a5002e7655a1120e 100644 (file)
 #  include <sys/time.h>  /* for get/setitimer, gettimeofday, struct timeval */
 #endif /* USE_FTIME */
 
-#include "fg_time.h"
-#include "../Include/constants.h"
-#include "../Flight/flight.h"
-#include "../Time/fg_time.h"
+#include <Time/fg_time.h>
+#include <Include/constants.h>
+#include <Flight/flight.h>
 
 
 #define DEGHR(x)        ((x)/15.)
@@ -301,9 +300,13 @@ void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *t) {
 
 
 /* $Log$
-/* Revision 1.28  1998/01/19 18:35:49  curt
-/* Minor tweaks and fixes for cygwin32.
+/* Revision 1.29  1998/01/19 19:27:20  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.28  1998/01/19 18:35:49  curt
+ * Minor tweaks and fixes for cygwin32.
+ *
  * Revision 1.27  1998/01/13 00:23:13  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index 9f98ac6d25568e22f3e1a17a048ce549bf76f807..226efa92bcac605ef937fe68d95e862d1249a7cb 100644 (file)
@@ -35,8 +35,8 @@
 #include <GL/glut.h>
 #include <time.h>
 
-#include "../Include/types.h"
-#include "../Flight/flight.h"
+#include <Include/types.h>
+#include <Flight/flight.h>
 
 
 /* Define a structure containing global time parameters */
@@ -99,9 +99,13 @@ void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *t);
 
 
 /* $Log$
-/* Revision 1.12  1998/01/05 18:44:37  curt
-/* Add an option to advance/decrease time from keyboard.
+/* Revision 1.13  1998/01/19 19:27:20  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.12  1998/01/05 18:44:37  curt
+ * Add an option to advance/decrease time from keyboard.
+ *
  * Revision 1.11  1997/12/19 23:35:07  curt
  * Lot's of tweaking with sky rendering and lighting.
  *
index 06fc5afe553d5166fc77753c5db2b0cbc39ff596..db9d477e7f6f807988cd82ae2ffcd7f1744dfa95 100644 (file)
@@ -33,7 +33,7 @@
 #  include <sys/time.h>  /* for get/setitimer, gettimeofday, struct timeval */
 #endif /* USE_FTIME */
 
-#include "fg_timer.h"
+#include <Time/fg_timer.h>
 
 
 unsigned long int fgSimTime;
@@ -131,10 +131,14 @@ int fgGetTimeInterval( void ) {
 
 
 /* $Log$
-/* Revision 1.8  1998/01/19 18:40:39  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.9  1998/01/19 19:27:21  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.8  1998/01/19 18:40:39  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.7  1997/12/30 13:06:58  curt
  * A couple lighting tweaks ...
  *
index 408ace291aa437c07cd7bbe0f24997020e457a64..00dbb21e932b488337e423816312e28f73102e86 100644 (file)
 #include <stdio.h>
 #include <time.h>
 
-#include "sunpos.h"
-#include "fg_time.h"
-#include "../Include/constants.h"
-#include "../Main/views.h"
-#include "../Math/fg_geodesy.h"
-#include "../Math/mat3.h"
-#include "../Math/polar.h"
+#include <Time/sunpos.h>
+#include <Time/fg_time.h>
+#include <Include/constants.h>
+#include <Main/views.h>
+#include <Math/fg_geodesy.h>
+#include <Math/mat3.h>
+#include <Math/polar.h>
 
 
 #undef E
@@ -373,10 +373,14 @@ void fgUpdateSunPos( void ) {
 
 
 /* $Log$
-/* Revision 1.22  1998/01/19 18:40:40  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.23  1998/01/19 19:27:21  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.22  1998/01/19 18:40:40  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.21  1997/12/30 23:10:19  curt
  * Calculate lighting parameters here.
  *
index 756b7fd240e2371d3e90fa28ce6e77cc70fe2eaf..81dd125a82b3cee8ab19e4ec9a42b3a9f6b4336f 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <time.h>
 
-#include "../Include/types.h"
+#include <Include/types.h>
 
 /* update the cur_time_params structure with the current sun position */
 void fgUpdateSunPos( void );
index 667f25c12437c88a590e4e5815d3ec418ce1b3cd..9c4b10e8987502ee99f5549857f70e95e0de0604 100644 (file)
@@ -1,7 +1,7 @@
 #---------------------------------------------------------------------------
 # Makefile
 #
-# Written by Curtis Olson, started July 1997.
+# Written by Curtis Olson, started May 1997.
 #
 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
 #
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
-
-TARGET = libWeather.a
+ARLIBRARY = libWeather.a
+TARGETS = $(ARLIBRARY)
 
 CFILES = weather.c
-HFILES = weather.h
-OFILES = $(CFILES:.c=.o)
-
-
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS)
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-$(TARGET): $(OFILES)
-       $(AR) rv $(TARGET) $(OFILES)
-       $(RANLIB) $(TARGET)
+CXXFILES = 
 
-all: $(TARGET)
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
+include $(FG_ROOT_SRC)/commondefs
 
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-include depend
-
-weather.o:
-       $(CC) $(CFLAGS) -c weather.c -o $@
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.2  1997/07/20 02:19:12  curt
-# First stab at a system to generate os2 makefiles automatically.
-#
-# Revision 1.1  1997/07/19 23:03:57  curt
-# Initial revision.
-#
+include $(COMMONRULES)
index 032ca569732d319df40ae0f95f2c9041f613d39d..0eed946e198947a17ee57381aabd5dc7b944daf7 100644 (file)
@@ -24,9 +24,9 @@
  **************************************************************************/
 
 
-#include "weather.h"
-#include "../Aircraft/aircraft.h"
-#include "../Math/fg_random.h"
+#include <Weather/weather.h>
+#include <Aircraft/aircraft.h>
+#include <Math/fg_random.h>
 
 
 /* This is a record containing current weather info */
@@ -64,10 +64,14 @@ void fgWeatherUpdate( void ) {
 
 
 /* $Log$
-/* Revision 1.11  1998/01/19 18:40:41  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.12  1998/01/19 19:27:22  curt
+/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+/* This should simplify things tremendously.
 /*
+ * Revision 1.11  1998/01/19 18:40:41  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.10  1997/12/30 22:22:46  curt
  * Further integration of event manager.
  *