-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
90 lines (77 loc) · 2.15 KB
/
Makefile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
include CONFIG
COMMON = src/Common/*.o
CURVE = src/Spectrum/*.o
FILES = src/Files/*.o
GAMESS = src/Gamess/*.o
GAUSS = src/Gaussian/*.o
GEOM = src/Geometry/*.o
MODELS = src/MolecularMechanics/*.o
MOLCAS = src/Molcas/*.o
MOLPRO = src/Molpro/*.o
MOPAC = src/Mopac/*.o
MPQC = src/MPQC/*.o
MULTIGRID = src/MultiGrid/*.o
NETWORK = src/NetWork/*.o
OPENGL = src/Display/*.o
FIREFLY = src/FireFly/*.o
NWCHEM = src/NWChem/*.o
PSICODE = src/Psicode/*.o
ORCA = src/Orca/*.o
QCHEM = src/QChem/*.o
SEMIEMP = src/SemiEmpirical/*.o
UTILS = src/Utils/*.o
SYMMETRY = src/Symmetry/*.o
VIBCORR = src/VibrationalCorrections/*.o
IDC = src/IsotopeDistribution/*.o
OBJECTS = \
$(COMMON) $(CURVE) $(FILES) $(GAMESS) $(GAUSS) $(GEOM) $(MODELS) \
$(MOLCAS) $(MOLPRO) $(MOPAC) $(MPQC) $(MULTIGRID) $(NETWORK) \
$(OPENGL) $(FIREFLY) $(NWCHEM) $(PSICODE) $(ORCA) $(QCHEM) $(SEMIEMP) $(UTILS) \
$(SYMMETRY) $(VIBCORR) $(IDC)
SUBDIRS = \
src/Display src/Common src/Files src/Gaussian \
src/Geometry src/Spectrum src/MolecularMechanics src/Molpro src/Molcas \
src/MPQC src/Gamess src/NWChem src/Psicode src/Orca src/QChem src/Mopac src/NetWork src/Utils \
src/Symmetry src/FireFly src/MultiGrid src/SemiEmpirical \
src/VibrationalCorrections src/IsotopeDistribution
ifneq ($(external_gl2ps),1)
GL2PS = gl2ps/*.o
OBJECTS += $(GL2PS)
SUBDIRS += gl2ps
GLTOPS =
else
GLTOPS = -lgl2ps
endif
TARGETS = all clean dep
.PHONY: $(SUBDIRS)
$(TARGETS): $(SUBDIRS)
$(SUBDIRS):
@$(MAKE) --directory=$@ $(MAKECMDGOALS)
all: gabedit
gabedit: $(SUBDIRS)
$(MKDIR) tmp
cp $(OBJECTS) tmp
$(CC) $(LDFLAGS) tmp/*.o -o gabedit $(GLTOPS) $(X11LIB) $(GTKLIB) $(OGLLIB) $(JPEGLIB) $(LIBPTHREAD) $(WIN32LIB) $(OMPLIB) -g -lm
@$(RMTMP) > ptmp
rmdir tmp
@$(RM) ptmp
clean:
@$(RM) gabedit
@$(RM) gabedit.exe
@$(RM) *.com
@$(RM) p
@$(RM) pp
@$(RM) p.c
@$(RM) *.gab
@$(RM) *.inp
@$(RM) *.mop
@$(RM) *.log
@$(RM) *.out
@$(RM) *.pun
@$(RM) *.dat
@$(RM) *.arc
@$(RM) *.aux
@$(RM) *.cmd
@$(RM) *.chk
@$(RM) *.sh
@$(RM) pm6*.*