forked from MOLFDIR/MOLFDIR
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
61 lines (50 loc) · 2.4 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
########################################################################
# #
# Main makefile for the MOLFDIR program package #
# #
# Written by: #
# #
# P.J.C. Aerts #
# O. Visser #
# L. Visscher #
# H. Merenga #
# W.A. de Jong #
# M. Pernpointer #
# #
# University of Groningen #
# Department of Chemistry #
# Chemical Physics (Theoretical Chemistry Group) #
# Nijenborg 4 #
# 9747 AG GRONINGEN #
# The Netherlands #
# #
# Current e-mail address for information: [email protected] #
# #
########################################################################
include makefile.h
MODULES_PAR = molfdir relonel reltwel mfdscf rotran tmoone relccsd
MODULES_SER = molfdir relonel reltwel mfdscf rotran tmoone goscip dirrci relccsd propan caldens genbas prtran argosecp
ifdef PARALLEL
building = parallel
else
building = serial
endif
all : directories $(building)
serial :
@for dir in $(MODULES_SER); do \
rm -f source/$$dir/*.o ; \
$(MAKE) -C source/$$dir ; \
done
parallel :
@for dir in $(MODULES_PAR); do \
rm -f source/$$dir/*.o ; \
$(MAKE) -C source/$$dir ; \
done
directories:
test -d lib/$(TARGET) || mkdir -p lib/$(TARGET)
test -d bin/$(TARGET) || mkdir -p bin/$(TARGET)
clean :
rm -f lib/$(TARGET)/*.a bin/$(TARGET)/*
realclean :
rm -rf lib/$(TARGET) bin/$(TARGET)
$(MAKE) clean -C source/argosecp