#
# This is the Makefile for the conversion from Fortran to C++.
#
# The Fortran source files have been substantially modified
# from the original AIAA Aircraft Controls Design Challenge computer model.
# Each of the COMMON declarations was placed into a separate header file
# and each source file was edited to include only the header files that
# actually needed to be incorporated in the output from the Fortran-to-C
# Converter, `f2c'.
#

SOURCES=adatin.f aircac.f  altfn.f b05fcn.f b08fcn.f  ccalc.f cgcalc.f \
	datinp.f dedbnd.f derivc.f engdin.f engine.f engmdl.f engsdl.f \
	engtlu.f flimit.f headin.f  icset.f   init.f initac.f instrm.f \
	limtin.f rlimnp.f    tlu.f uengin.f   vcal.f

PROTOTYPES=adatin.P aircac.P  altfn.P b05fcn.P b08fcn.P  ccalc.P cgcalc.P \
	   datinp.P dedbnd.P derivc.P engdin.P engine.P engmdl.P engsdl.P \
	   engtlu.P flimit.P headin.P  icset.P   init.P initac.P instrm.P \
	   limtin.P rlimnp.P    tlu.P uengin.P   vcal.P

OBJECTS=adatin.c aircac.c  altfn.c b05fcn.c b08fcn.c  ccalc.c cgcalc.c \
	datinp.c dedbnd.c derivc.c engdin.c engine.c engmdl.c engsdl.c \
	engtlu.c flimit.c headin.c  icset.c   init.c initac.c instrm.c \
	limtin.c rlimnp.c    tlu.c uengin.c   vcal.c

    all: $(PROTOTYPES) $(SOURCES) 
	f2c -C++ -u -E -r8 -Nn802 -P $(PROTOTYPES) $(SOURCES)

$(PROTOTYPES): $(SOURCES)
	f2c -C++ -u -E -r8 -Nn802 -P!c $(SOURCES);

  clean:
	rm -f core $(PROTOTYPES) $(OBJECTS)
