#makefile to build io_int that does binary i/o OBJSL = io_int.o OBJS = $(OBJSL) OPTS = FFLAGS = $(OPTS) LIBS = CPP1 = $(CPP) $(TRADFLAG) M4 = m4 -Uinclude -Uindex -Ulen AR = ar RANLIB = ranlib -s #RANLIB = echo .SUFFIXES: .F90 .F .f .o .code all : libwrfio_int.a diffwrf libwrfio_int.a: $(OBJS) /bin/rm -f libwrfio_int.a $(AR) cr libwrfio_int.a $(OBJSL) $(RANLIB) libwrfio_int.a io_int.o: io_int.F90 module_internal_header_util.o $(CPP1) -I.. io_int.F90 | $(M4) - > io_int.f $(FC) $(FFLAGS) -I.. -I../../inc -c io_int.f /bin/rm module_internal_header_util.o # this is just so we can get the .mod file, it will be recompiled in frame again as part of WRF frmwk module_internal_header_util.o : /bin/cp ../../frame/module_internal_header_util.F . $(CPP1) -I.. module_internal_header_util.F > module_internal_header_util.f $(FC) $(FFLAGS) -I.. -I../../inc -c module_internal_header_util.f diffwrf: diffwrf.F ../../frame/pack_utils.o ../../frame/module_machine.o ../../frame/module_wrf_error.o libwrfio_int.a if [ -f ../../frame/pack_utils.o ] ; then \ $(CPP1) diffwrf.F > diffwrf.f ; \ $(FC) -c $(FFLAGS) diffwrf.f ; \ $(FC) $(FFLAGS) $(LDFLAGS) -o diffwrf diffwrf.o $(OBJSL) \ ../../frame/pack_utils.o ../../frame/module_internal_header_util.o ../../frame/module_machine.o ../../frame/module_wrf_error.o ; fi ../../frame/pack_utils.o ../../frame/internal_header_util.o ../../frame/module_machine.o ../../frame/module_wrf_error.o : @echo "Diffwrf will be built later on in this compile. No need to rerun compile. " superclean: /bin/rm -f *.f *.o *.mod libwrfio_int.a diffwrf