1 # set this shell variable prior to calling make to run with malloc_check enabled
2 #MALLOC_CHECK_=1 # XXX debug only
4 LD_OPTS += -lxml2 -lc_utils
6 SOURCES = transport_session.c transport_message.c transport_client.c
7 TARGETS = transport_message.o transport_session.o transport_client.o
8 HEADERS = transport_message.h transport_session.h transport_client.h
10 TARGET = libopensrf_transport.so
12 all: msg libopensrf_transport.so
17 libopensrf_transport.so: $(TARGETS)
19 $(CC) -shared -W1 $(LD_OPTS) $(TARGETS) -o libopensrf_transport.so
20 $(CC) -shared -W1 $(LD_OPTS) $(TARGETS) -o $(TMPDIR)/libopensrf_transport.so
21 cp $(HEADERS) $(TMPDIR)
23 transport_session.o: transport_session.c transport_session.h
25 $(CC) -c $(CC_OPTS) transport_session.c -o $@
27 transport_message.o: transport_message.c transport_message.h
29 $(CC) -c $(CC_OPTS) transport_message.c -o $@
31 transport_client.o: transport_client.c transport_client.h
33 $(CC) -c $(CC_OPTS) transport_client.c -o $@
36 echo installing $(TARGET)
37 cp $(TMPDIR)/libopensrf_transport.so $(LIBDIR)/
38 cp $(HEADERS) $(INCLUDEDIR)/$(OPENSRF)
42 /bin/rm -f *.o libopensrf_transport.so