blob: 410cb4427d31a52e6de610438903b587014a9128 (
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
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
59
60
61
|
#BOOST_DEBUG_FLAGS= -DBOOST_DEBUG_PYTHON -g -O0
BOOST_DEBUG_FLAGS=
INCLUDES += emc/rs274ngc
LIBRS274SRCS := $(addprefix emc/rs274ngc/, \
interp_arc.cc \
interp_array.cc \
interp_base.cc \
interp_check.cc \
interp_convert.cc \
interp_queue.cc \
interp_cycles.cc \
interp_execute.cc \
interp_find.cc \
interp_internal.cc \
interp_inverse.cc \
interp_read.cc \
interp_write.cc \
interp_o_word.cc \
nurbs_additional_functions.cc \
interp_namedparams.cc \
interp_python.cc \
interp_remap.cc \
interp_setup.cc \
canonmodule.cc \
pyparamclass.cc \
pyemctypes.cc \
pyinterp1.cc \
pyblock.cc \
pyarrays.cc \
interpmodule.cc \
rs274ngc_pre.cc)
USERSRCS += $(LIBRS274SRCS)
$(call TOOBJSDEPS, $(LIBRS274SRCS)) : EXTRAFLAGS=-fPIC $(BOOST_DEBUG_FLAGS)
TARGETS += ../lib/librs274.so ../lib/librs274.so.0
../lib/librs274.so.0: $(patsubst %.cc,objects/%.o,$(LIBRS274SRCS)) \
../lib/liblinuxcncini.so ../lib/libpyplugin.so ../lib/liblinuxcnchal.so.0
$(ECHO) Linking $(notdir $@)
@mkdir -p ../lib
@rm -f $@
$(CXX) -g $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^ -lstdc++ $(BOOST_PYTHON_LIBS) -l$(LIBPYTHON) -ldl
../include/%.h: ./emc/rs274ngc/%.h
cp $^ $@
../include/%.hh: ./emc/rs274ngc/%.hh
cp $^ $@
GCODEMODULESRCS := emc/rs274ngc/gcodemodule.cc
PYSRCS += $(GCODEMODULESRCS)
GCODEMODULE := ../lib/python/gcode.so
$(GCODEMODULE): $(call TOOBJS, $(GCODEMODULESRCS)) ../lib/librs274.so.0
$(ECHO) Linking python module $(notdir $@)
$(CXX) $(LDFLAGS) -shared -o $@ $^ -lstdc++
PYTARGETS += $(GCODEMODULE)
|