summaryrefslogtreecommitdiff
path: root/src/libnml/Submakefile
blob: 41bad9387f51912bc164f6c9dc31818c7269dfb3 (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
LIBNMLSRCS := $(addprefix libnml/, \
	rcs/rcs_print.cc rcs/rcs_exit.cc \
\
	os_intf/_sem.c os_intf/_shm.c os_intf/_timer.c os_intf/sem.cc \
	os_intf/shm.cc os_intf/timer.cc \
\
	buffer/locmem.cc buffer/memsem.cc buffer/phantom.cc buffer/physmem.cc \
	buffer/recvn.c buffer/sendn.c buffer/shmem.cc buffer/tcpmem.cc \
\
	cms/cms.cc cms/cms_aup.cc cms/cms_cfg.cc cms/cms_in.cc cms/cms_dup.cc \
	cms/cms_pm.cc cms/cms_srv.cc cms/cms_up.cc cms/cms_xup.cc \
	cms/cmsdiag.cc cms/tcp_opts.cc cms/tcp_srv.cc \
\
	nml/cmd_msg.cc nml/nml_mod.cc nml/nml_oi.cc nml/nml_srv.cc nml/nml.cc \
	nml/nmldiag.cc nml/nmlmsg.cc nml/stat_msg.cc \
\
	linklist/linklist.cc)

$(call TOOBJSDEPS, $(LIBNMLSRCS)) : EXTRAFLAGS=-fPIC

USERSRCS += $(LIBNMLSRCS)

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

../lib/libnml.so.0: $(call TOOBJS,$(LIBNMLSRCS))
	$(ECHO) Creating shared library $(notdir $@)
	@mkdir -p ../lib
	@rm -f $@
	$(Q)$(CXX) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^