summaryrefslogtreecommitdiff
path: root/src/emc/pythonplugin/Submakefile
blob: b164ea865ede79c9f4566b155cb49e43e82351a8 (plain)
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
#BOOST_DEBUG_FLAGS= -DBOOST_DEBUG_PYTHON -g -O0
BOOST_DEBUG_FLAGS=

INCLUDES += emc/pythonplugin

LIBPPSRCS := $(addprefix emc/pythonplugin/, \
	python_plugin.cc)

USERSRCS += $(LIBPPSRCS)

USERSRCS += $(TESTSRCS)

$(call TOOBJSDEPS, $(LIBPPSRCS)) : EXTRAFLAGS=-fPIC $(BOOST_DEBUG_FLAGS) 


TARGETS += ../lib/libpyplugin.so.0 

../lib/libpyplugin.so.0: $(patsubst %.cc,objects/%.o,$(LIBPPSRCS)) ../lib/liblinuxcncini.so
	$(ECHO) Linking $(notdir $@)
	@mkdir -p ../lib
	@rm -f $@
	$(CXX) -g $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^ -lstdc++ $(BOOST_PYTHON_LIBS) -l$(LIBPYTHON)


../include/%.h: ./emc/pythonplugin/%.h
	cp $^ $@
../include/%.hh: ./emc/pythonplugin/%.hh
	cp $^ $@