From a136c87441e11bd00c239ea8c5bcfa6447394132 Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 20 Jul 1997 02:19:09 +0000 Subject: [PATCH] First stab at a system to generate os2 makefiles automatically. --- Aircraft/Makefile | 7 +++++-- Controls/Makefile | 7 +++++-- FDM/Makefile | 7 +++++-- LaRCsim/Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++- Main/Makefile | 13 ++++++++----- Scenery/Makefile | 17 ++++++++++------- Simulator/Makefile | 13 ++++++++++++- Slew/Makefile | 7 +++++-- Time/Makefile | 7 +++++-- Weather/Makefile | 7 +++++-- 10 files changed, 106 insertions(+), 26 deletions(-) diff --git a/Aircraft/Makefile b/Aircraft/Makefile index 26e877c58..792081f37 100644 --- a/Aircraft/Makefile +++ b/Aircraft/Makefile @@ -48,7 +48,7 @@ $(TARGET): $(OFILES) $(HFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -58,11 +58,14 @@ clean: include depend aircraft.o: - $(CC) $(CFLAGS) $(INCLUDES) -c aircraft.c + $(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. # diff --git a/Controls/Makefile b/Controls/Makefile index eee613bfa..3173889c8 100644 --- a/Controls/Makefile +++ b/Controls/Makefile @@ -48,7 +48,7 @@ $(TARGET): $(OFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -58,11 +58,14 @@ clean: include depend controls.o: - $(CC) $(CFLAGS) $(INCLUDES) -c controls.c + $(CC) $(CFLAGS) $(INCLUDES) -c controls.c -o $@ #--------------------------------------------------------------------------- # $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. # diff --git a/FDM/Makefile b/FDM/Makefile index 1787a75cc..4f7fd0471 100644 --- a/FDM/Makefile +++ b/FDM/Makefile @@ -47,7 +47,7 @@ $(TARGET): $(OFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -57,11 +57,14 @@ clean: include depend flight.o: - $(CC) $(CFLAGS) $(INCLUDES) -c flight.c + $(CC) $(CFLAGS) $(INCLUDES) -c flight.c -o $@ #--------------------------------------------------------------------------- # $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. # diff --git a/LaRCsim/Makefile b/LaRCsim/Makefile index eff9016fa..0e09fdb18 100644 --- a/LaRCsim/Makefile +++ b/LaRCsim/Makefile @@ -44,7 +44,7 @@ simtest: $(TARGET) LaRCsim.o all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -53,9 +53,54 @@ clean: 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 $@ + #--------------------------------------------------------------------------- # $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. # diff --git a/Main/Makefile b/Main/Makefile index 0760bc877..a0bb6e907 100644 --- a/Main/Makefile +++ b/Main/Makefile @@ -52,7 +52,7 @@ $(TARGET): $(OFILES) $(AFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) $(TARGET).exe lib*.a *~ core + rm -f *.o $(TARGET) $(TARGET).exe lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -62,20 +62,23 @@ clean: include depend GLmain.o: - $(CC) $(CFLAGS) -c GLmain.c + $(CC) $(CFLAGS) -c GLmain.c -o $@ GLUTkey.o: - $(CC) $(CFLAGS) -c GLUTkey.c + $(CC) $(CFLAGS) -c GLUTkey.c -o $@ GLTKkey.o: - $(CC) $(CFLAGS) -c GLTKkey.c + $(CC) $(CFLAGS) -c GLTKkey.c -o $@ mesh2GL.o: - $(CC) $(CFLAGS) -c mesh2GL.c + $(CC) $(CFLAGS) -c mesh2GL.c -o $@ #--------------------------------------------------------------------------- # $Log$ +# Revision 1.25 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. # diff --git a/Scenery/Makefile b/Scenery/Makefile index 9dd272d58..491a59212 100644 --- a/Scenery/Makefile +++ b/Scenery/Makefile @@ -48,7 +48,7 @@ $(TARGET): $(OFILES) $(HFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core realclean: clean rm -f scanner.c parser.c parser.h parser.output @@ -70,25 +70,28 @@ parser.c: parser.y $(BISON) -o parser.c parser.y scanner.o: scanner.c - $(CC) $(CFLAGS) -c scanner.c + $(CC) $(CFLAGS) -c scanner.c -o $@ parser.o: parser.c - $(CC) $(CFLAGS) -c parser.c + $(CC) $(CFLAGS) -c parser.c -o $@ common.o: - $(CC) $(CFLAGS) -c common.c + $(CC) $(CFLAGS) -c common.c -o $@ mesh.o: - $(CC) $(CFLAGS) -c mesh.c + $(CC) $(CFLAGS) -c mesh.c -o $@ scenery.o: - $(CC) $(CFLAGS) -c scenery.c + $(CC) $(CFLAGS) -c scenery.c -o $@ geometry.o: - $(CC) $(CFLAGS) -c geometry.c + $(CC) $(CFLAGS) -c geometry.c -o $@ #--------------------------------------------------------------------------- # $Log$ +# 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. # diff --git a/Simulator/Makefile b/Simulator/Makefile index da1ed831d..676c7c1b4 100644 --- a/Simulator/Makefile +++ b/Simulator/Makefile @@ -43,8 +43,16 @@ depend: cd $$dir; $(CC) -MM *.c > depend ) ; \ done +Makefile-os2: + cat Makefile | perl mkmfos2.pl > Makefile.os2; \ + for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); 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) ; \ + done + clean: - -rm -f *~ + -rm -f *.os2 *~ for dir in $(SUBSUBDIRS) $(SUBDIRS) $(MAIN); do \ (cd $$dir; $(MAKE) clean) ; \ done @@ -63,6 +71,9 @@ zip: clean #--------------------------------------------------------------------------- # $Log$ +# Revision 1.20 1997/07/20 02:19:09 curt +# First stab at a system to generate os2 makefiles automatically. +# # Revision 1.19 1997/07/19 23:04:46 curt # Added an initial weather section. # diff --git a/Slew/Makefile b/Slew/Makefile index 8ead29b29..3083696f6 100644 --- a/Slew/Makefile +++ b/Slew/Makefile @@ -47,7 +47,7 @@ $(TARGET): $(OFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -57,11 +57,14 @@ clean: include depend slew.o: - $(CC) $(CFLAGS) $(INCLUDES) -c slew.c + $(CC) $(CFLAGS) $(INCLUDES) -c slew.c -o $@ #--------------------------------------------------------------------------- # $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. # diff --git a/Time/Makefile b/Time/Makefile index e19d25553..a12b3e363 100644 --- a/Time/Makefile +++ b/Time/Makefile @@ -48,7 +48,7 @@ $(TARGET): $(OFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -58,11 +58,14 @@ clean: include depend fg_timer.o: - $(CC) $(CFLAGS) -c fg_timer.c + $(CC) $(CFLAGS) -c fg_timer.c -o $@ #--------------------------------------------------------------------------- # $Log$ +# 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. # diff --git a/Weather/Makefile b/Weather/Makefile index 24b21d362..667f25c12 100644 --- a/Weather/Makefile +++ b/Weather/Makefile @@ -48,7 +48,7 @@ $(TARGET): $(OFILES) all: $(TARGET) clean: - rm -f *.o $(TARGET) lib*.a *~ core + rm -f *.o $(TARGET) lib*.a *.os2 *~ core #--------------------------------------------------------------------------- @@ -58,11 +58,14 @@ clean: include depend weather.o: - $(CC) $(CFLAGS) -c weather.c + $(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. # -- 2.39.2