]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/router/Makefile
1cb0d0a9a5a866ba09284cb46035720c46563e82
[OpenSRF.git] / src / router / 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 CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include -I /home/erickson/cc/libxml2-2.6.16
6 LD_OPTS = -lxml2
7 LP=../libtransport
8 LIB_SOURCES = $(LP)/generic_utils.c $(LP)/transport_socket.c $(LP)/transport_session.c $(LP)/transport_message.c $(LP)/transport_client.c
9
10 all: router
11
12 # The router is compiled as a static binary because of some 
13 # necessary #defines that would break the library
14 router: 
15         $(CC) $(LD_OPTS) -D_ROUTER $(CC_OPTS)   $(LIB_SOURCES) router.c -o $@ 
16
17 clean:
18         /bin/rm -f router