--- Makefile.orig Wed Jun 7 19:24:45 2000 +++ Makefile Wed Jun 7 19:27:38 2000 @@ -7,7 +7,8 @@ # make Makes the MOPAC file # make clean Clean up disk to minimum config # -FFLAGS = -O2 -w +FFLAGS = -O -Wall +CFLAGS = -I$(PREFIX)/include -Wall HDRS = SIZES SRCS := $(shell ls *.f) CSRCS := $(shell ls *.c) @@ -15,14 +16,16 @@ SIZEDEPSRC := $(shell grep -l -i ' INCLUDE ' *.f; true) SIZEDEPEND = $(SIZEDEPSRC:.f=.o) MOPAC = MOPAC7 -MOPACSHELL = mopac -BINDIR = /usr/local/bin +MOPACSHELL = rmopac +BINDIR = $(PREFIX)/bin OWNER = root.bin $(MOPAC): SIZES $(OBJS) @echo -n "Loading $@ ... " - f77 -O $(OBJS) -o $@ + $(FC) $(OBJS) $(LFLAGS) -o $@ @echo "done" + +all: $(MOPAC) clean: $(RM) $(OBJS) *.trace core