forked from owl-suite/OWL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (49 loc) · 1.81 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
#####################################################################
# Makefile for Oak-Ridge Wang-Landau (OWL)
#
# Copyright (C) 2015-2018 Ying Wai Li, Oak Ridge National Laboratory
#
#####################################################################
### Define C++ compiler and flags for different machines
include architecture.inc
### Define directories
export MASTER_DIR = $(shell pwd)
export INCLUDE_PATH =
export LIBRARY_PATH =
################################################
.PHONY : default all owl owl-qe clean
default :
@echo ' '
@echo 'Please choose an option to compile the Oak-Ridge Wang-Landau (OWL) code with:'
@echo 'make [options]'
@echo ' '
@echo 'Available package options:'
@echo ' [options] [descriptions]'
@echo ' owl OWL stand-alone mode'
@echo ' owl-qe OWL interfaced with Quantum Espresso'
@echo ' owl-lsms OWL interfaced with Locally Self-consistent Multiple Scattering (LSMS)'
@echo ' owl-feram OWL interfaced with FERAM'
@echo ' all Compile all owl, owl-qe, owl-lsms, owl-feram'
@echo ' '
@echo 'Available operation options:'
@echo ' clean Remove OWL executables and objects'
@echo ' cleanall (tentative) Remove executables and objects for OWL and external codes'
@echo ' '
all : owl owl-qe
owl :
@if test -d src ; then \
cd src && $(MAKE) owl; \
fi
# Add "-DDRIVER_MODE_QE" to the CXXFLAGS to compile the QE-related part in the code
owl-qe : export CXXFLAGS += -DDRIVER_MODE_QE
owl-qe :
@if test -d src ; then \
cd src && $(MAKE) owl-qe DRIVER_MODE_QE=1; \
fi
clean :
@if test -d bin ; then \
cd bin && $(MAKE) clean; \
fi
@if test -d src ; then \
cd src && $(MAKE) clean; \
fi