]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/libtransport/Makefile
changed some config file stuff so it's not router specific
[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 CC = gcc
5 LIB_DIR=../../lib
6 CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include -I /home/erickson/cc/libxml2-2.6.16
7 EXE_LD_OPTS = -L $(LIB_DIR) -lxml2 -lopensrf_transport 
8 LIB_SOURCES = generic_utils.c transport_socket.c transport_session.c transport_message.c transport_client.c
9
10 TARGETS=generic_utils.o transport_socket.o transport_message.o transport_session.o transport_client.o 
11
12 all: basic_client
13
14 basic_client: lib
15         $(CC) $(CC_OPTS) $(EXE_LD_OPTS) basic_client.c -o $@
16
17
18 # --- Libs -----------------------------------------------
19         
20 lib: 
21         $(CC) -c $(CC_OPTS)     $(LIB_SOURCES)  
22         $(CC) -shared -W1 $(LD_OPTS) $(TARGETS) -o $(LIB_DIR)/libopensrf_transport.so
23
24
25 clean:
26         /bin/rm -f *.o $(LIB_DIR)/libopensrf_transport.so basic_client