# @(#)makefile 17.1.1.1 (ESO-IPG) 01/25/02 17:54:00 # .COPYRIGHT: Copyright (c) 1988 European Southern Observatory, # all rights reserved # .TYPE make file # .NAME $MIDASHOME/$MIDVERS/stdred/long/src/makefile # .LANGUAGE makefile syntax # .ENVIRONMENT Unix Systems. # .COMMENT Compiles source files and generates "echelle" commands # # .REMARKS # .AUTHOR # .VERSION 1.1 880131: Implementation # .VERSION 1.2 890104: Generating makefile.com for VMS systems # .VERSION 2.1 901212: New directory structure . CG # .VERSION 3.0 930308: Using default.mk file include ../../../local/default.mk M = ../../exec SPE_INC = ../../spec/incl CFLAGS = $(C_OPT) $(DEBUG) $(SYS) -I$(LINC) -I$(INC) -I$(SPE_INC) LLIB = -L$(LIBDIR) -lmidas LLIB1 = -L$(LLIBDIR) -lspec -L$(LIBDIR) -lftab -lmidas LLIB2 = -L$(LIBDIR) -lftab -lmidas LLIB3 = -L$(LLIBDIR) -lspec -L$(LIBDIR) -lgmidas -lmidas LIBS = $(LIBDIR)/libmidas.a LIBS1 = $(LLIBDIR)/libspec.a \ $(LIBDIR)/libftab.a \ $(LIBDIR)/libmidas.a LIBS2 = $(LIBDIR)/libftab.a \ $(LIBDIR)/libmidas.a LIBS3 = $(LLIBDIR)/libspec.a \ $(LIBDIR)/libgmidas.a \ $(LIBDIR)/libmidas.a OUT = $(M)/lnsearch.exe $(M)/lncalib.exe $(M)/lnapdisp.exe \ $(M)/rectspec.exe $(M)/rebirbr.exe $(M)/integbin.exe \ $(M)/lnplot.exe $(M)/spoext.exe $(M)/ffnorm.exe \ $(M)/lnlinsel.exe $(M)/lnedflux.exe \ $(M)/spintegr.exe $(M)/lnhough.exe \ $(M)/splinadd.exe \ $(M)/spfresp.exe \ $(M)/spskyfit.exe \ $(M)/lnerase.exe # DEPENDENCIES: all: $(MAKEFILE_VMS) $(OUT) $(MAKEFILE_VMS): makefile $(MAKE_VMS) force $(M)/lnsearch.exe: lnsearch.o $(LIBS1) $(LD77) lnsearch.o $(LLIB1) $(SLIB) -o $@ $(M)/lnhough.exe: lnhough.o libhough.o $(LIBS) $(LDCC) lnhough.o libhough.o $(LLIB) $(MLIB) $(SLIB) -o $@ $(M)/lncalib.exe: lncalib.o lnmatch.o $(LIBS1) $(LDCC) lncalib.o lnmatch.o $(LLIB1) \ $(MLIB) $(SLIB) -o $@ $(M)/lnlinsel.exe: lnlinsel.o $(LIBS) $(LDCC) lnlinsel.o $(LLIB) $(MLIB) $(SLIB) -o $@ $(M)/lnapdisp.exe: lnapdisp.o $(LIBS1) $(LDCC) lnapdisp.o $(LLIB1) $(MLIB) $(SLIB) -o $@ $(M)/rectspec.exe: rectspec.o $(LIBS) $(LD77) rectspec.o $(LLIB) $(SLIB) -o $@ $(M)/integbin.exe: integbin.o $(LIBS) $(LD77) integbin.o $(LLIB) $(SLIB) -o $@ $(M)/rebirbr.exe: rebirbr.o $(LIBS2) $(LD77) rebirbr.o $(LLIB2) $(MATHLIB) $(SLIB) -o $@ $(M)/spintegr.exe: spintegr.o $(LIBS1) $(LDCC) spintegr.o $(LLIB1) $(MLIB) $(SLIB) -o $@ $(M)/splinadd.exe: splinadd.o $(LIBS1) $(LDCC) splinadd.o $(LLIB1) $(MLIB) $(SLIB) -o $@ $(M)/lnerase.exe: lnerase.o lnplotlib.o $(LIBS1) $(LDCC) lnerase.o lnplotlib.o \ $(LLIB1) $(MLIB) $(SLIB) -o $@ $(M)/lnplot.exe: lnplot.o lnplotlib.o $(LIBS3) $(LDCC) lnplot.o lnplotlib.o \ $(LLIB3) $(MLIB) $(SLIB) -o $@ $(M)/lnedflux.exe: lnedflux.o $(LIBS3) $(LDCC) lnedflux.o \ $(LLIB3) $(MLIB) $(SLIB) -o $@ $(M)/spfresp.exe: spfresp.o $(LIBS1) $(LDCC) spfresp.o $(LLIB1) $(MLIB) $(SLIB) -o $@ $(M)/spskyfit.exe: spskyfit.o $(LIBS) $(LD77) spskyfit.o $(LLIB2) $(SLIB) -o $@ $(M)/spoext.exe: spoext.o $(LIBS) $(LD77) spoext.o $(LLIB2) $(SLIB) -o $@ $(M)/ffnorm.exe: ffnorm.o $(LIBS) $(LD77) ffnorm.o $(LLIB2) $(SLIB) -o $@ clean_exec: rm -f $(OUT) clean: rm -f *.o rm -f *.f