-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makeconf
57 lines (43 loc) · 1.87 KB
/
Makeconf
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
#--*- Makefile -*--------------------------------------------------------------
#$Author$
#$Revision$
#$Date$
#$URL$
#------------------------------------------------------------------------------
PKG_NAME = cod-tools
CWD := ${shell pwd}
TOP := ${CWD}
LOCAL_PERL_LIB = ${TOP}/src/lib/perl5
LOCAL_PYTHON_LIB = ${TOP}/src/components/pycodcif
PERL_SOURCE_TOP = ${TOP}/src/lib/perl5
PERL_SOURCE_DIRS = ${PERL_SOURCE_TOP}/COD
PYTHON_SOURCE_DIRS = ${LOCAL_PYTHON_LIB}
YAPP_MODULE_DIRS := \
${PERL_SOURCE_DIRS}/Formulae/Parser/AdHoc \
${PERL_SOURCE_DIRS}/Formulae/Parser/IUCr \
${PERL_SOURCE_DIRS}/CIF/Parser/Yapp
PERL_SWIG_MODULE_DIRS := ${PERL_SOURCE_DIRS}/CIF/Parser/Bison \
${PERL_SOURCE_DIRS}/SPGLib
PYTHON_SWIG_MODULE_DIRS := ${PYTHON_SOURCE_DIRS}
C_PARSER_LIB_DIR = ${TOP}/src/components/codcif
LOCAL_LIB_FILES = ${TOP}/src/externals/cexceptions/lib/libcexceptions.a \
${TOP}/src/externals/getoptions/lib/libgetoptions.a \
${C_PARSER_LIB_DIR}/lib/libcodcif.a
# C programs used in testing: cifparse, cifvalues, cif_list_tags
C_PROGRAM_SOURCE_DIR = ${C_PARSER_LIB_DIR}/programs
C_PROGRAM_SOURCE_FILES = ${wildcard ${C_PROGRAM_SOURCE_DIR}/*.c}
C_PROGRAM_EXE_FILES = ${patsubst %.c, ${C_PARSER_LIB_DIR}/%, \
${notdir ${C_PROGRAM_SOURCE_FILES}}}
CODTOOLS_SCRIPTS = $(sort $(shell find scripts/ -maxdepth 1 -name \*~ -prune -o \
-name cif_printout_Python -prune -o \
-type f -a -executable -print) \
scripts/cod-tools-version)
PERL5LIB := ${LOCAL_PERL_LIB}:${PERL5LIB}
PYTHONPATH := ${LOCAL_PYTHON_LIB}/build/python3:${PYTHONPATH}
export PERL5LIB
export PYTHONPATH
EXT = .cif
TEST_OPTIONS =
PREFIX = /usr
BIN_INSTALL_DIR = ${PREFIX}/bin
filter_perl_messages_user ?= cat