blob: ede957f036c175f49cec331346a89297c200b2d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
INCLUDES += libnml/posemath
POSEMATHSRCS := $(addprefix libnml/posemath/, _posemath.c posemath.cc gomath.c sincos.c)
$(call TOOBJSDEPS, $(POSEMATHSRCS)) : EXTRAFLAGS=-fPIC
USERSRCS += $(POSEMATHSRCS)
TARGETS += ../lib/libposemath.so ../lib/libposemath.so.0
../lib/libposemath.so.0: $(call TOOBJS,$(POSEMATHSRCS))
$(ECHO) Creating shared library $(notdir $@)
@mkdir -p ../lib
@rm -f $@
@$(CXX) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^
../include/%.h: ./libnml/posemath/%.h
cp $^ $@
../include/%.hh: ./libnml/posemath/%.hh
cp $^ $@
|