1 # set this shell variable prior to calling make to run with malloc_check enabled
2 #MALLOC_CHECK_=1 # XXX debug only
6 CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include -I ../../../../cc/libxml2-2.6.16
8 EXE_LD_OPTS = -L $(LIB_DIR) -lxml2 -ltransport
9 LIB_SOURCES = generic_utils.c transport_socket.c transport_session.c transport_message.c transport_client.c
11 TARGETS=generic_utils.o transport_socket.o transport_message.o transport_session.o transport_client.o
13 all: router basic_client
16 $(CC) $(CC_OPTS) $(EXE_LD_OPTS) basic_client.c -o $@
18 # --- Libs -----------------------------------------------
21 $(CC) -c $(CC_OPTS) $(LIB_SOURCES)
22 $(CC) -shared -W1 $(LD_OPTS) $(TARGETS) -o $(LIB_DIR)/libtransport.so
25 # The router is compiled as a static binary because of some
26 # necessary #defines that would break the library
28 $(CC) $(LD_OPTS) -D_ROUTER $(CC_OPTS) $(LIB_SOURCES) transport_router.c -o $@
31 /bin/rm -f *.o ../../lib/libtransport.so router basic_client