summaryrefslogtreecommitdiff
path: root/biology/mopac/files/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'biology/mopac/files/Makefile')
-rw-r--r--biology/mopac/files/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/biology/mopac/files/Makefile b/biology/mopac/files/Makefile
new file mode 100644
index 00000000000..e82b550a7d9
--- /dev/null
+++ b/biology/mopac/files/Makefile
@@ -0,0 +1,40 @@
+#
+# Makefile for making the executable of program MOPAC
+#
+#
+# Valid Commands of this makefile
+#
+# make Makes the MOPAC file
+# make clean Clean up disk to minimum config
+#
+#F77 =
+FFLAGS = -O2 -w
+HDRS = SIZES
+SRCS := $(shell ls *.f)
+CSRCS := $(shell ls *.c)
+OBJS = $(SRCS:.f=.o) $(CSRCS:.c=.o)
+SIZEDEPSRC := $(shell grep -l -i ' INCLUDE ' *.f; true)
+SIZEDEPEND = $(SIZEDEPSRC:.f=.o)
+MOPAC = MOPAC7
+MOPACSHELL = mopac
+BINDIR = ${PREFIX}/bin
+OWNER = root.bin
+
+.SUFFIXES: .o .f
+
+.f.o:
+ $(F77) $(FFLAGS) -c $<
+
+.SUFFIXES: .o .c
+
+.c.o:
+ $(F77) $(FFLAGS) -c $<
+
+$(MOPAC): SIZES $(OBJS)
+ @echo -n "Loading $@ ... "
+ $(F77) $(FFLAGS) $(OBJS) -o $@
+ @echo "done"
+
+$(SIZEDEPEND): $(HDRS)
+
+###