]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/libtransport/Makefile
50687b559a31ce07ef3d8e20f08ab6c5b5f78c49
[OpenSRF.git] / src / libtransport / Makefile
1 # set this shell variable prior to calling make to run with malloc_check enabled
2 #MALLOC_CHECK_=1 # XXX debug only
3
4 LD_OPTS += -lxml2 -lopensrf_transport -lc_utils 
5
6 SOURCES = transport_socket.c transport_session.c transport_message.c transport_client.c
7 TARGETS = transport_socket.o transport_message.o transport_session.o transport_client.o 
8 HEADERS = transport_socket.h transport_message.h transport_session.h transport_client.h 
9
10 all:  lib
11         
12 lib:  $(SOURCES) $(HEADERS)
13         $(CC) -c $(CC_OPTS) $(SOURCES)  
14         $(CC) -shared -W1 $(LD_OPTS) $(TARGETS) -o $(TMPDIR)/libopensrf_transport.so
15         cp $(HEADERS) $(TMPDIR)
16
17
18 install:
19         @echo "Installing libopensrf_transport..."
20         cp $(TMPDIR)/libopensrf_transport.so $(LIBDIR)/
21         cp $(HEADERS) $(INCLUDEDIR)/$(OPENSRF)
22 #       for h in $(TMPDIR)/$(HEADERS); do
23 #               mv $$h $(INCLUDEDIR)/$(OPENSRF);
24 #       done
25
26
27 clean:
28         /bin/rm -f *.o basic_client component