Restructuring make, adding automatic "make dep" support.
This commit is contained in:
parent
1adb6fd912
commit
9205d3928b
12 changed files with 202 additions and 67 deletions
|
@ -31,8 +31,7 @@ HFILES = aircraft.h
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -50,6 +49,9 @@ $(TARGET): $(OFILES) $(HFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -58,15 +60,17 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
aircraft.o: aircraft.c aircraft.h
|
include depend
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c aircraft.c
|
|
||||||
|
|
||||||
aircraft.h: ../Flight/flight.h ../Controls/controls.h
|
aircraft.o:
|
||||||
touch aircraft.h
|
$(CC) $(CFLAGS) $(INCLUDES) -c aircraft.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.4 1997/06/25 15:39:44 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
|
@ -31,8 +31,7 @@ HFILES = controls.h
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -50,6 +49,9 @@ $(TARGET): $(OFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -58,15 +60,17 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
controls.h: ../limits.h
|
include depend
|
||||||
touch controls.h
|
|
||||||
|
|
||||||
controls.o: controls.c controls.h ../Aircraft/aircraft.h
|
controls.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c controls.c
|
$(CC) $(CFLAGS) $(INCLUDES) -c controls.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.5 1997/06/25 15:39:46 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
14
FDM/Makefile
14
FDM/Makefile
|
@ -30,8 +30,7 @@ CFILES = flight.c
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -49,6 +48,9 @@ $(TARGET): $(OFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -57,15 +59,17 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
flight.h: Slew/slew.h LaRCsim/ls_interface.h
|
include depend
|
||||||
touch flight.h
|
|
||||||
|
|
||||||
flight.o: flight.c flight.h
|
flight.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c flight.c
|
$(CC) $(CFLAGS) $(INCLUDES) -c flight.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.5 1997/06/25 15:39:46 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
|
@ -22,8 +22,7 @@ CFILES = $(LaRCsimFILES) $(NavionFILES) $(InterfaceFILES)
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -44,6 +43,9 @@ simtest: $(TARGET) LaRCsim.o
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) *~ core
|
rm -f *.o $(TARGET) *~ core
|
||||||
|
|
||||||
|
@ -52,10 +54,14 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include depend
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.3 1997/06/21 17:12:50 curt
|
||||||
# Capitalized subdirectory names.
|
# Capitalized subdirectory names.
|
||||||
#
|
#
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "gltk.h"
|
#include "gltk.h"
|
||||||
|
|
||||||
#include "GLTKkey.h"
|
#include "GLTKkey.h"
|
||||||
#include "../aircraft/aircraft.h"
|
#include "../Aircraft/aircraft.h"
|
||||||
|
|
||||||
|
|
||||||
/* Handle keyboard events */
|
/* Handle keyboard events */
|
||||||
|
@ -75,9 +75,12 @@ GLenum GLTKkey(int k, GLenum mask) {
|
||||||
|
|
||||||
|
|
||||||
/* $Log$
|
/* $Log$
|
||||||
/* Revision 1.3 1997/06/21 17:12:52 curt
|
/* Revision 1.4 1997/06/26 19:08:32 curt
|
||||||
/* Capitalized subdirectory names.
|
/* Restructuring make, adding automatic "make dep" support.
|
||||||
/*
|
/*
|
||||||
|
* Revision 1.3 1997/06/21 17:12:52 curt
|
||||||
|
* Capitalized subdirectory names.
|
||||||
|
*
|
||||||
* Revision 1.2 1997/05/23 15:40:24 curt
|
* Revision 1.2 1997/05/23 15:40:24 curt
|
||||||
* Added GNU copyright headers.
|
* Added GNU copyright headers.
|
||||||
* Fog now works!
|
* Fog now works!
|
||||||
|
|
|
@ -273,7 +273,11 @@ void fgUpdateTimeDepCalcs(int multi_loop) {
|
||||||
|
|
||||||
void fgInitTimeDepCalcs() {
|
void fgInitTimeDepCalcs() {
|
||||||
/* initialize timer */
|
/* initialize timer */
|
||||||
|
|
||||||
|
#ifdef USE_ITIMER
|
||||||
fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
|
fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
|
||||||
|
#endif USE_ITIMER
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -416,6 +420,8 @@ int main( int argc, char *argv[] ) {
|
||||||
|
|
||||||
f = ¤t_aircraft.flight;
|
f = ¤t_aircraft.flight;
|
||||||
|
|
||||||
|
printf("Flight Gear: prototype code to test OpenGL, LaRCsim, and VRML\n\n");
|
||||||
|
|
||||||
#ifdef GLUT
|
#ifdef GLUT
|
||||||
/* initialize GLUT */
|
/* initialize GLUT */
|
||||||
glutInit(&argc, argv);
|
glutInit(&argc, argv);
|
||||||
|
@ -553,9 +559,12 @@ int main( int argc, char *argv[] ) {
|
||||||
|
|
||||||
|
|
||||||
/* $Log$
|
/* $Log$
|
||||||
/* Revision 1.22 1997/06/25 15:39:47 curt
|
/* Revision 1.23 1997/06/26 19:08:33 curt
|
||||||
/* Minor changes to compile with rsxnt/win32.
|
/* Restructuring make, adding automatic "make dep" support.
|
||||||
/*
|
/*
|
||||||
|
* 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
|
* Revision 1.21 1997/06/22 21:44:41 curt
|
||||||
* Working on intergrating the VRML (subset) parser.
|
* Working on intergrating the VRML (subset) parser.
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,12 +28,9 @@ TARGET=fgfs0
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
# STD_FLAGS = -O2 -Wall
|
|
||||||
STD_CFLAGS = -g -Wall
|
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Define the high level GL interface library
|
# This is overridden in the top level Makefile, if make is run from there.
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# For GLUT
|
# For GLUT
|
||||||
|
@ -53,15 +50,15 @@ INTERFACE_FILES = GLUTkey.c
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# For OpenGL
|
# For OpenGL
|
||||||
GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
|
# GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
|
||||||
|
|
||||||
# For Mesa
|
# For Mesa
|
||||||
# MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
|
MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
|
||||||
# X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
|
X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
|
||||||
# GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
|
GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = $(STD_CFLAGS) $(INTERFACE_FLAGS)
|
CFLAGS = $(FG_CFLAGS) $(INTERFACE_FLAGS)
|
||||||
LIBS = $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
|
LIBS = $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
|
||||||
|
|
||||||
CFILES = GLmain.c $(INTERFACE_FILES) mesh2GL.c
|
CFILES = GLmain.c $(INTERFACE_FILES) mesh2GL.c
|
||||||
|
@ -82,6 +79,9 @@ $(TARGET): $(OFILES) $(AFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -90,22 +90,26 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
GLmain.o: GLmain.c GLUTkey.h ../Aircraft/aircraft.h ../Scenery/scenery.h \
|
include depend
|
||||||
../Timer/fg_timer.h
|
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c GLmain.c
|
|
||||||
|
|
||||||
GLUTkey.o: GLUTkey.c GLUTkey.h ../Aircraft/aircraft.h
|
GLmain.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c GLUTkey.c
|
$(CC) $(CFLAGS) -c GLmain.c
|
||||||
|
|
||||||
GLTKkey.o: GLTKkey.c GLTKkey.h ../Aircraft/aircraft.h
|
GLUTkey.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c GLTKkey.c
|
$(CC) $(CFLAGS) -c GLUTkey.c
|
||||||
|
|
||||||
mesh2GL.o: mesh2GL.c ../Scenery/mesh.h
|
GLTKkey.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c mesh2GL.c
|
$(CC) $(CFLAGS) -c GLTKkey.c
|
||||||
|
|
||||||
|
mesh2GL.o:
|
||||||
|
$(CC) $(CFLAGS) -c mesh2GL.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.16 1997/06/26 19:08:33 curt
|
||||||
|
# Restructuring make, adding automatic "make dep" support.
|
||||||
|
#
|
||||||
# Revision 1.15 1997/06/25 15:39:47 curt
|
# Revision 1.15 1997/06/25 15:39:47 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
|
@ -31,8 +31,7 @@ HFILES =
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -43,11 +42,14 @@ INCLUDES =
|
||||||
# Primary Targets
|
# Primary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
$(TARGET): $(OFILES) $(HFILES)
|
$(TARGET): $(OFILES) $(HFILES)
|
||||||
$(AR) rv $(TARGET) $(OFILES)
|
$(AR) rv $(TARGET) $(OFILES)
|
||||||
|
|
||||||
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -56,15 +58,20 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
common.o: common.c common.h
|
include depend
|
||||||
|
|
||||||
|
common.o:
|
||||||
$(CC) $(CFLAGS) -c common.c
|
$(CC) $(CFLAGS) -c common.c
|
||||||
|
|
||||||
mesh.o: mesh.c mesh.h common.h
|
mesh.o:
|
||||||
$(CC) $(CFLAGS) -c mesh.c
|
$(CC) $(CFLAGS) -c mesh.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.9 1997/06/25 15:39:48 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
|
@ -24,8 +24,79 @@
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
CC = gcc
|
#---------------------------------------------------------------------------
|
||||||
|
# Choose your weapon
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
|
export CC
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Global Compile Options
|
||||||
|
#
|
||||||
|
# You may set FG_CFLAGS to include any of the following options depending on
|
||||||
|
# your environment:
|
||||||
|
#
|
||||||
|
# -g - Compile with debugging symbols
|
||||||
|
#
|
||||||
|
# -Wall - Enable full compiler warnings
|
||||||
|
#
|
||||||
|
# -O2 - Enable compiler optimization
|
||||||
|
#
|
||||||
|
# -DUSE_ITIMER - Use setitimer(), getitimer(), and signal() to mimic
|
||||||
|
# a real time system and call the flight model routines
|
||||||
|
# at a regular interval, rather than between screen updates
|
||||||
|
# which can be highly variable. This can make the flight
|
||||||
|
# much smoother.
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
FG_CFLAGS = -g -Wall -DUSE_ITIMER
|
||||||
|
export FG_CFLAGS
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Uncomment one of the following sections depending on your system
|
||||||
|
#
|
||||||
|
# You may set FG_GRAPHICS to include any of the following options depending
|
||||||
|
# on your environment:
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# SGI IRIX with the GLUT toolkit
|
||||||
|
#
|
||||||
|
# INTERFACE_FLAGS = -DGLUT
|
||||||
|
# INTERFACE_LIBS = -lglut
|
||||||
|
# INTERFACE_FILES = GLUTkey.c
|
||||||
|
# GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Linux/Mesa with the GLUT toolkit
|
||||||
|
#
|
||||||
|
INTERFACE_FLAGS = -DGLUT
|
||||||
|
INTERFACE_LIBS = -lglut
|
||||||
|
INTERFACE_FILES = GLUTkey.c
|
||||||
|
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)
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Windows 95/NT with the GLUT toolkit
|
||||||
|
#
|
||||||
|
# INTERFACE_FLAGS = -DGLUT
|
||||||
|
# INTERFACE_LIBS = -lglut
|
||||||
|
# INTERFACE_FILES = GLUTkey.c
|
||||||
|
# GRAPHICS_LIBS = -lGLU -lGL
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export INTERFACE_FLAGS INTERFACE_LIBS GRAPHICS_LIBS
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# You shouldn't need to modify anything beyond this point
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
SUBSUBDIRS = Flight/LaRCsim Flight/Slew Scenery/ParseScn Scenery/ParseVrml
|
SUBSUBDIRS = Flight/LaRCsim Flight/Slew Scenery/ParseScn Scenery/ParseVrml
|
||||||
SUBDIRS = Aircraft Controls Flight mat3 Scenery Timer
|
SUBDIRS = Aircraft Controls Flight mat3 Scenery Timer
|
||||||
|
@ -33,21 +104,25 @@ MAIN = OpenGL
|
||||||
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
|
for dir in $(SUBSUBDIRS) $(SUBDIRS); do \
|
||||||
( cd $$dir; make CC=$(CC) ) ; \
|
( cd $$dir; $(MAKE) ) ; \
|
||||||
|
done
|
||||||
|
for dir in $(MAIN); do \
|
||||||
|
( cd $$dir; $(MAKE) ) ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
dep:
|
||||||
install:
|
for dir in $(SUBSUBDIRS) $(SUBDIRS); do \
|
||||||
for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
|
( cd $$dir; $(MAKE) dep ) ; \
|
||||||
( cd $$dir; make CC=$(CC) install) ; \
|
done
|
||||||
|
for dir in $(MAIN); do \
|
||||||
|
( cd $$dir; $(MAKE) dep ) ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f *~
|
-rm -f *~
|
||||||
for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
|
for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \
|
||||||
(cd $$dir; make clean) ; \
|
(cd $$dir; $(MAKE) clean) ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,6 +134,9 @@ tar: clean
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.10 1997/06/26 19:08:22 curt
|
||||||
|
# Restructuring make, adding automatic "make dep" support.
|
||||||
|
#
|
||||||
# Revision 1.9 1997/06/22 21:44:40 curt
|
# Revision 1.9 1997/06/22 21:44:40 curt
|
||||||
# Working on intergrating the VRML (subset) parser.
|
# Working on intergrating the VRML (subset) parser.
|
||||||
#
|
#
|
||||||
|
|
|
@ -30,8 +30,7 @@ CFILES = slew.c
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -49,6 +48,9 @@ $(TARGET): $(OFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -57,12 +59,17 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
slew.o: slew.c slew.h ../../Aircraft/aircraft.h ../../Controls/controls.h
|
include depend
|
||||||
|
|
||||||
|
slew.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c slew.c
|
$(CC) $(CFLAGS) $(INCLUDES) -c slew.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.3 1997/06/25 15:39:46 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
|
@ -31,9 +31,7 @@ HFILES = fg_timer.h
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
# CFLAGS = -g -Wall -DUSE_ITIMER
|
CFLAGS = $(FG_CFLAGS)
|
||||||
CFLAGS = -g -Wall
|
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -51,6 +49,9 @@ $(TARGET): $(OFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -59,12 +60,17 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
fg_timer.o: fg_timer.c fg_timer.h
|
include depend
|
||||||
|
|
||||||
|
fg_timer.o:
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c fg_timer.c
|
$(CC) $(CFLAGS) $(INCLUDES) -c fg_timer.c
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# 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
|
# Revision 1.3 1997/06/25 17:46:58 curt
|
||||||
# Make itimer support optional.
|
# Make itimer support optional.
|
||||||
#
|
#
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
unsigned long int fgSimTime;
|
unsigned long int fgSimTime;
|
||||||
|
|
||||||
#ifdef HAVE_ITIMER
|
#ifdef USE_ITIMER
|
||||||
static struct itimerval t, ot;
|
static struct itimerval t, ot;
|
||||||
static void (*callbackfunc)(int multi_loop);
|
static void (*callbackfunc)(int multi_loop);
|
||||||
|
|
||||||
|
@ -109,9 +109,12 @@ int fgGetTimeInterval() {
|
||||||
|
|
||||||
|
|
||||||
/* $Log$
|
/* $Log$
|
||||||
/* Revision 1.4 1997/06/25 15:39:49 curt
|
/* Revision 1.5 1997/06/26 19:08:38 curt
|
||||||
/* Minor changes to compile with rsxnt/win32.
|
/* Restructuring make, adding automatic "make dep" support.
|
||||||
/*
|
/*
|
||||||
|
* 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
|
* Revision 1.3 1997/06/17 16:52:04 curt
|
||||||
* Timer interval stuff now uses gettimeofday() instead of ftime()
|
* Timer interval stuff now uses gettimeofday() instead of ftime()
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue