diff --git a/test/library/qmmm_amber/fortran_stub/Makefile b/test/library/qmmm_amber/fortran_stub/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..a96970bf5063dccc0c2368020edb8f6eff628662 --- /dev/null +++ b/test/library/qmmm_amber/fortran_stub/Makefile @@ -0,0 +1,31 @@ +FC=gfortran +FFLAGS=-std=f2003 +LDFLAGS=-L../../../../sPuReMD/lib/.libs -lspuremd +PROGRAM=driver +DEPS=$(patsubst %.F03, %.o, $(wildcard *.F03)) + +ifeq ($(V),1) +ECHO := +else +ECHO := @ +endif + +all: $(PROGRAM) + +$(PROGRAM): $(DEPS) + $(ECHO)$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^ + +%.o: %.F03 + $(ECHO)$(FC) $(FFLAGS) -c -o $@ $< + +clean: + $(ECHO)rm -f $(PROGRAM) $(DEPS) *.mod + +debug: + @echo "PROGRAM = $(PROGRAM)" + @echo "DEPS = $(DEPS)" + @echo "RC = $(FC)" + @echo "FFLAGS = $(FFLAGS)" + @echo "LDFLAGS = $(LDFLAGS)" + +.PHONY: all clean