pkgsrc-wip/mopac/files/Makefile
Julio Merino 093901a202 Initial import of mopac, a semiempirical molecular energy calculation program.
Provided in PR pkg/18046 by Osamu OISHI.

Some things to be done:
- Improve DESCR.
- Convert to buildlink2.
- Test the package.
2003-04-13 11:46:20 +00:00

59 lines
1.1 KiB
Makefile

#
# 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"
clean:
$(RM) $(OBJS) *.trace core
cleandepend:
$(RM) $(SIZEDEPEND) *.trace core
cleanall: clean
$(RM) $(MOPAC)
deinstall:
$(RM) $(BINDIR)/$(MOPAC) $(BINDIR)/$(MOPACSHELL)
install:
strip $(MOPAC)
chmod 755 $(MOPAC) $(MOPACSHELL)
chown $(OWNER) $(MOPAC) $(MOPACSHELL)
cp -p $(MOPAC) $(BINDIR)/$(MOPAC)
cp -p $(MOPACSHELL) $(BINDIR)/$(MOPACSHELL)
$(SIZEDEPEND): $(HDRS)
###