12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #!/bin/csh
- #
- COMPILE = gfortran
- FLAGS = -O3 -I/usr/include -L/usr/lib
- LIB = -lnetcdf -lnetcdff
- INCLUDE =
- SRCDIR = .
- EXEDIR = ../.
- OBJSET = \
- phycst.o \
- geo2ocean.o \
- dom_oce.o \
- lbcnfd.o \
- lbclnk.o \
- par_kind.o \
- handle_err.o \
- rotateUVorca.o
- OBJTEST = \
- phycst.o \
- geo2ocean.o \
- dom_oce.o \
- lbcnfd.o \
- lbclnk.o \
- handle_err.o \
- par_kind.o
- all: $(EXEDIR)/rotateUVorca
- $(EXEDIR)/rotateUVorca: $(OBJTEST) rotateUVorca.o
- $(COMPILE) $(FLAGS) $(OBJSET) $(LIB) -o $(EXEDIR)/rotateUVorca
- handle_err.o: $(SRCDIR)/handle_err.f90 $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/handle_err.f90
- phycst.o: $(SRCDIR)/phycst.f90 par_kind.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/phycst.f90
- dom_oce.o: $(SRCDIR)/dom_oce.f90 par_kind.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/dom_oce.f90
- lbcnfd.o: $(SRCDIR)/lbcnfd.f90 par_kind.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/lbcnfd.f90
- lbclnk.o: $(SRCDIR)/lbclnk.f90 lbcnfd.o par_kind.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/lbclnk.f90
- geo2ocean.o: $(SRCDIR)/geo2ocean.f90 dom_oce.o phycst.o \
- par_kind.o lbclnk.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/geo2ocean.f90
- par_kind.o: $(SRCDIR)/par_kind.f90 $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/par_kind.f90
- rotateUVorca.o: $(SRCDIR)/rotateUVorca.f90 geo2ocean.o \
- par_kind.o handle_err.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/rotateUVorca.f90
- clean:
- /bin/rm *.o *.mod
|