Debian Codegraph @

pypy/module/_cppyy/test/Makefile

raw symbols SCIP
1 dicts = advancedcppDict.so \
2 advancedcpp2Dict.so \
3 cpp11featuresDict.so \
4 crossingDict.so \
5 datatypesDict.so \
6 example01Dict.so \
7 fragileDict.so \
8 operatorsDict.so \
9 overloadsDict.so \
10 pythonizablesDict.so \
11 stltypesDict.so \
12 templatesDict.so
13
14 all : $(dicts)
15
16 cppflags=-O3 -fPIC -rdynamic
17
18 HASCLINGCONFIG:=$(shell command -v cling-config 2> /dev/null)
19 ifdef HASCLINGCONFIG
20 cppflags+=$(shell cling-config --cppflags)
21 endif
22
23 HASGENREFLEX:=$(shell command -v genreflex 2> /dev/null)
24 ifdef HASGENREFLEX
25 genreflex_flags:=$(shell genreflex --cppflags)
26 cppflags+=$(genreflex_flags)
27 else
28 cppflags+=-DCPPYY_DUMMY_BACKEND
29 endif
30
31 PLATFORM := $(shell uname -s)
32 ifeq ($(PLATFORM),Darwin)
33 cppflags+=-dynamiclib -single_module -undefined dynamic_lookup -Wno-delete-non-virtual-dtor -Wno-c++11-extensions -std=c++11
34 endif
35
36
37 ifndef HASGENREFLEX
38 %Dict.so: %.cxx
39 $(CXX) -shared $(cppflags) -o $@ $^
40
41 else # reflex
42 %Dict.so: %_rflx.cpp %.cxx
43 $(CXX) -shared $(cppflags) -o $@ $^
44
45 %_rflx.cpp: %.h %.xml
46 genreflex $< --selection=$*.xml --rootmap=$*Dict.rootmap --rootmap-lib=$*Dict.so
47
48 endif
49
50
51 .PHONY: clean
52
53 clean:
54 -rm -f $(dicts) $(subst .so,.rootmap,$(dicts)) $(subst Dict.so,_rflx_rdict.pcm,$(dicts)) $(subst Dict.so,_rflx.cpp,$(dicts)) $(wildcard *.pyc)