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