You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/mopac7/files/Makefile

24 lines
458 B

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