all: $(TARGET)
clean:
- rm -f *.o $(TARGET) *~ core
+ rm -f *.o $(TARGET) lib*.a *~ core
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# 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.
#
#include "aircraft.h"
+#ifndef M_PI
+#define M_PI 3.14159265358979323846 /* pi */
+#endif
+
#define FG_RAD_2_DEG(RAD) ((RAD) * 180.0 / M_PI)
/* Display various parameters to stdout */
/* $Log$
-/* Revision 1.7 1997/06/02 03:01:39 curt
-/* Working on views (side, front, back, transitions, etc.)
+/* Revision 1.8 1997/06/25 15:39:45 curt
+/* Minor changes to compile with rsxnt/win32.
/*
+ * Revision 1.7 1997/06/02 03:01:39 curt
+ * Working on views (side, front, back, transitions, etc.)
+ *
* Revision 1.6 1997/05/31 19:16:26 curt
* Elevator trim added.
*
all: $(TARGET)
clean:
- rm -f *.o $(TARGET) *~ core
+ rm -f *.o $(TARGET) lib*.a *~ core
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# 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.
#
all: $(TARGET)
clean:
- rm -f *.o $(TARGET) *~ core
+ rm -f *.o $(TARGET) lib*.a *~ core
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# 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.
#
#include "GLUTkey.h"
#include "../Aircraft/aircraft.h"
+#ifndef M_PI
+#define M_PI 3.14159265358979323846 /* pi */
+#endif
+
extern double fogDensity;
extern double goal_view_offset;
/* $Log$
-/* Revision 1.12 1997/06/21 17:12:52 curt
-/* Capitalized subdirectory names.
+/* Revision 1.13 1997/06/25 15:39:46 curt
+/* Minor changes to compile with rsxnt/win32.
/*
+ * Revision 1.12 1997/06/21 17:12:52 curt
+ * Capitalized subdirectory names.
+ *
* Revision 1.11 1997/06/18 04:10:31 curt
* A couple more runway tweaks ...
*
#define DEG_TO_RAD 0.017453292
#define RAD_TO_DEG 57.29577951
+#ifndef M_PI
+#define M_PI 3.14159265358979323846 /* pi */
+#endif
+
#ifndef PI2
#define PI2 (M_PI + M_PI)
#endif
+
+#ifndef M_PI_2
+#define M_PI_2 1.57079632679489661923 /* pi/2 */
+#endif
+
/* This is a record containing all the info for the aircraft currently
being operated */
struct aircraft_params current_aircraft;
/* $Log$
-/* Revision 1.21 1997/06/22 21:44:41 curt
-/* Working on intergrating the VRML (subset) parser.
+/* Revision 1.22 1997/06/25 15:39:47 curt
+/* Minor changes to compile with rsxnt/win32.
/*
+ * Revision 1.21 1997/06/22 21:44:41 curt
+ * Working on intergrating the VRML (subset) parser.
+ *
* Revision 1.20 1997/06/21 17:12:53 curt
* Capitalized subdirectory names.
*
#---------------------------------------------------------------------------
# For OpenGL
-# GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
+GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
# For Mesa
-MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
-X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
-GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
+# MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
+# X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
+# GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
CFLAGS = $(STD_CFLAGS) $(INTERFACE_FLAGS)
all: $(TARGET)
clean:
- rm -f *.o $(TARGET) *~ core
+ rm -f *.o $(TARGET) lib*.a *~ core
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.15 1997/06/25 15:39:47 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.
$(AR) rv $(TARGET) $(OFILES)
clean:
- rm -f *.o $(TARGET) *~ core
+ rm -f *.o $(TARGET) lib*.a *~ core
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# 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 ...
#
all: $(TARGET)
clean:
- rm -f *.o $(TARGET) *~ core
+ rm -f *.o $(TARGET) lib*.a *~ core
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# 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.
#
unsigned long int fgSimTime;
-static struct itimerval t, ot;
-static void (*callbackfunc)(int multi_loop);
+
+#ifdef HAVE_ITIMER
+ static struct itimerval t, ot;
+ static void (*callbackfunc)(int multi_loop);
/* This routine catches the SIGALRM */
}
}
+#endif HAVE_ITIMER
/* This function returns the number of milleseconds since the last
time it was called. */
/* $Log$
-/* Revision 1.3 1997/06/17 16:52:04 curt
-/* Timer interval stuff now uses gettimeofday() instead of ftime()
+/* Revision 1.4 1997/06/25 15:39:49 curt
+/* Minor changes to compile with rsxnt/win32.
/*
+ * Revision 1.3 1997/06/17 16:52:04 curt
+ * Timer interval stuff now uses gettimeofday() instead of ftime()
+ *
* Revision 1.2 1997/06/17 03:41:10 curt
* Nonsignal based interval timing is now working.
* This would be a good time to look at cleaning up the code structure a bit.