# # @(#) File name: Makefile.fci1 Release: 1.1 Date: 7/29/94, 09:36:16 # ########################################################################### AS = as CC = acc CPP = /lib/cpp LD = ld LINT = lint INSTALL = install TAGS = ctags RM = rm -f MV = mv LN = ln -s RANLIB = ranlib RANLIBINSTFLAGS = -t AR = ar ARFLAGS = rlv LS = ls LINTOPTS = -axz LINTLIBFLAG = -C MAKE = make #STD_CPP_DEFINES = -DSUNOS STD_CPP_DEFINES = ### To compile an ANSI C compliance C code, uncomment the following line to ### defines the STD_DEFINES as "-Aa" # STD_DEFINES = -Aa STD_DEFINES = SYSLIBDIR = /usr/lib SYSLAST_LIBRARIES = -lm CFLOW = cflow CFLOWFLAGS = .c.o: $(COMPILE.c) $(OUTPUT_OPTION) $< ########################################################################### # definitions common to all Makefiles - do not edit SHELL = /bin/sh DESTDIR = DEBUGGEDCFLAGS = -g OPTIMIZEDCFLAGS = -O PROFILEDCFLAGS = -O -pg CPPFLAGS = $(INCLUDES) $(STD_CPP_DEFINES) PATHSEP = / CCFLAGS = -O CFLAGS = $(CCFLAGS) $(STD_DEFINES) $(U_C_DEFINES) LINTFLAGS = $(LINTOPTS) $(CPPFLAGS) -DLINT COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) LINT.c = $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH) RM_CMD = $(RM) *.ln *.BAK *.bak *.o core errs ,* *~ *.a \ .emacs_* make.log MakeOut ########################################################################### ### Include file and library functions are specified as in the local ### directory. REDEFINE to the appropriate directory if needed. ### The program expects the file "fire_sdf.h" in the include directory. INCLUDES = -I. LIB_FIRE_DIR = . # NOTE: Use /usr/lib/libm.a definition for LIB_MATH_DIR on Sun OS LIB_MATH_DIR = /usr/lib/libm.a # NOTE: Use -lm definition for LIB_MATH_DIR on HP OS #LIB_MATH_DIR = -lm FIRE_LIB_SRC = fire_lib.c FCI1_SRB_SRCS = \ fci1srb_read.c \ fsdf_header.c \ fsdf_vtoc.c FCI1_SDF_SRCS = \ firesdf_read.c \ fsdf_header.c \ fsdf_vtoc.c ### One program genpro.c is used by both kingair and sabreliner aircraft ### data sets. FCI1_AIRCRAFT_SRC = genpro.c LIB_FIRE = $(LIB_FIRE_DIR)/lib_fire.a FCI1_SDF_OBJS = $(FCI1_SDF_SRCS:.c=.o) FCI1_SRB_OBJS = $(FCI1_SRB_SRCS:.c=.o) FIRE_LIB_OBJS = $(FIRE_LIB_SRC:.c=.o) all:: $(LIB_FIRE) fci1_aircraft fsdf fci1_srb $(LIB_FIRE): $(FIRE_LIB_OBJS) $(RM) $@ $(AR) $(ARFLAGS) $@ `lorder $(FIRE_LIB_OBJS) | tsort` $(RANLIB) $@ fci1_aircraft: $(LIB_FIRE) $(FCI1_AIRCRAFT_SRC) $(RM) $@ $(LINK.c) -o $@ $(FCI1_AIRCRAFT_SRC) $(LIB_FIRE) fsdf: $(LIB_FIRE) $(FCI1_SDF_OBJS) $(RM) $@ $(LINK.c) -o $@ $(FCI1_SDF_OBJS) $(LIB_FIRE) $(LIB_MATH_DIR) ### Because the same fsdf_header.c and fsdf_vtoc.c files are used to generate ### both fci1_srb and fci1_sdf executables, these two files need to be ### recompiled to include the preprocessor option -DSRB. fci1_srb: $(LIB_FIRE) $(FCI1_SRB_SRCS) $(RM) $@ $(LINK.c) -DSRB -o $@ $(FCI1_SRB_SRCS) $(LIB_FIRE) $(LIB_MATH_DIR) install:: all $(INSTALL) -c $(INSTLIBFLAGS) all clean:: $(RM) fsdf fci1_aircraft fci1_srb $(RM_CMD) \#* debug: $(MAKE) "CCFLAGS=-g" #depend:: $(DEPEND) depend:: makedepend -s "# DO NOT DELETE THE FOLLOWING LINES" -- $(CFLAGS) $(CPPFLAGS) $(CCFLAG) -- $(FCI1_AIRCRAFT_SRC) $(FCI1_SDF_SRCS) $(FCI1_SRB_SRCS) #$(DEPEND): makedepend: @echo "MAKING $@"; \ $(MAKE) ############################################################################# # dependencies generated by makedepend # DO NOT DELETE THIS LINE -- make depend depends on it.