blob: 5fb91c238546f23230f153d95d5bf92fec2dfb92 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
*** Makefile.orig Sat May 22 13:51:28 1999
--- Makefile Sat May 22 13:56:17 1999
***************
*** 7,13 ****
# make Makes the MOPAC file
# make clean Clean up disk to minimum config
#
! FFLAGS = -O2 -w
HDRS = SIZES
SRCS := $(shell ls *.f)
CSRCS := $(shell ls *.c)
--- 7,19 ----
# make Makes the MOPAC file
# make clean Clean up disk to minimum config
#
! FFLAGS ?= -O2 -w
! ifdef HAVE_G2C
! LFLAGS = -lg2c
! CFLAGS += -DHAVE_G2C
! else
! LFLAGS = -lf2c
! endif
HDRS = SIZES
SRCS := $(shell ls *.f)
CSRCS := $(shell ls *.c)
***************
*** 15,28 ****
SIZEDEPSRC := $(shell grep -l -i ' INCLUDE ' *.f; true)
SIZEDEPEND = $(SIZEDEPSRC:.f=.o)
MOPAC = MOPAC7
! MOPACSHELL = mopac
! BINDIR = /usr/local/bin
OWNER = root.bin
$(MOPAC): SIZES $(OBJS)
@echo -n "Loading $@ ... "
! f77 -O $(OBJS) -o $@
@echo "done"
clean:
$(RM) $(OBJS) *.trace core
--- 21,36 ----
SIZEDEPSRC := $(shell grep -l -i ' INCLUDE ' *.f; true)
SIZEDEPEND = $(SIZEDEPSRC:.f=.o)
MOPAC = MOPAC7
! MOPACSHELL = rmopac
! BINDIR = $(PREFIX)/bin
OWNER = root.bin
$(MOPAC): SIZES $(OBJS)
@echo -n "Loading $@ ... "
! $(FC) -O $(OBJS) $(LFLAGS) -o $@
@echo "done"
+
+ all: $(MOPAC)
clean:
$(RM) $(OBJS) *.trace core
|