summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/mopac7/files/Makefile')
-rw-r--r--sci-chemistry/mopac7/files/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-chemistry/mopac7/files/Makefile b/sci-chemistry/mopac7/files/Makefile
new file mode 100644
index 000000000000..50370b3c2784
--- /dev/null
+++ b/sci-chemistry/mopac7/files/Makefile
@@ -0,0 +1,23 @@
+VERSION = GENTOOVERSION
+MAJOR = 1
+
+LIBS = -lgfortran -lf2c
+
+objects := $(patsubst %.f,%.o,$(wildcard *.f))
+
+all: libgmxmopac7
+
+clean:
+ rm -f moldat.*f deriv.* mopac7*.* compfg.* dcart.*
+
+%.o: %.f
+ $(FC) $(FFLAGS) -fPIC -c $<
+
+libgmxmopac7: $(objects)
+ $(FC) -shared $(LDFLAGS) -Wl,-soname,libgmxmopac7.so.$(MAJOR) -o $@.so.$(VERSION) $^ $(LIBS)
+ ln -sf $@.so.$(VERSION) libgmxmopac7.so
+
+static: $(objects)
+ ar rcv libgmxmopac7.a *.o
+ ranlib libgmxmopac7.a
+