# AVS example modules Makefile for Generic-AVS # # There are some definitions like INC_FILE, F77_INC, etc that do not # ordinarily need to be separated out - but this Makefile may be used # from a variety of build environments. INC_FILE=$(ROOT)/usr/avs/include/Makeinclude include $(INC_FILE) AVS_LIBS = $(ROOT)/usr/avs/lib BASELIBS=-lgeom -lutil -lm FLOWLIBS=-L$(AVS_LIBS) -lflow_c $(BASELIBS) $(LASTLIBS) CSIMLIBS=-L$(AVS_LIBS) -lsim_c $(BASELIBS) $(LASTLIBS) MODLIBS=-L$(AVS_LIBS) -lmdata -lmfilt -lmmapp -lmrend -lrf F77_FLOWLIBS=-L$(AVS_LIBS) -lflow_f $(BASELIBS) $(LASTFLIBS) F77_SIMLIBS=-L$(AVS_LIBS) -lsim_f $(BASELIBS) $(LASTFLIBS) F77_BIND = $(ROOT)/usr/avs/bin/f77_binding AVS_INC = -I. -I$(ROOT)/usr/avs/include F77_INC = $(ROOT)/usr/avs/include CFLAGS=$(ACFLAGS) $(AVS_INC) # # Optimizing Flags: F77FLAGS=$(AFFLAGS) -O2 # # Debug Flags #F77FLAGS=$(AFFLAGS) -g all: avs read_ej65 #********************************************************************** # This target will create a link to the include directory where the # AVS Fortran include files can be found. This permits the use of # the Fortran include statement to access 'avs/avs.inc' etc without # relying on an absolute pathname. avs: rm -f avs ln -s $(F77_INC) avs #********************************************************************** read_ej65: read_ej65.o $(F77) $(F77FLAGS) -o read_ej65 read_ej65.o $(F77_FLOWLIBS) read_ej65.o: avs read_ej65.f $(F77) $(F77FLAGS) -c read_ej65.f $(F77_FLOWLIBS) clean: rm -f avs *.o read_ej65 core