File: Makeconf

package info (click to toggle)
cod-tools 3.1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 149,700 kB
  • sloc: perl: 56,946; sh: 32,158; ansic: 6,385; xml: 1,982; yacc: 1,117; makefile: 728; python: 166
file content (55 lines) | stat: -rw-r--r-- 2,048 bytes parent folder | download
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
#--*- Makefile -*--------------------------------------------------------------
#$Author: antanas $
#$Revision: 8230 $
#$Date: 2020-07-20 16:43:00 +0300 (Mon, 20 Jul 2020) $
#$URL: svn+ssh://www.crystallography.net/home/coder/svn-repositories/cod-tools/tags/v3.1.0/Makeconf $
#------------------------------------------------------------------------------

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