summaryrefslogtreecommitdiff
path: root/src/emc/canterp/Submakefile
blob: 92d5946e6a231bf602583174557bee535e697edd (plain)
1
2
3
4
5
6
7
8
9
LIBCANTERPSRCS := emc/canterp/canterp.cc
USERSRCS += $(LIBCANTERPSRCS)
TARGETS += ../lib/libcanterp.so ../lib/libcanterp.so.0
$(call TOOBJSDEPS, $(LIBCANTERPSRCS)) : EXTRAFLAGS=-fPIC
../lib/libcanterp.so.0: $(patsubst %.cc,objects/%.o,$(LIBCANTERPSRCS)) ../lib/liblinuxcncini.so ../lib/librs274.so
	$(ECHO) Linking $(notdir $@)
	@mkdir -p ../lib
	@rm -f $@
	@$(CXX) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^ -ldl