]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/router/Makefile
added 'named' configs.
[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
6 LD_OPTS = -L ../../lib -lxml2 -lopensrf_stack -ljson
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 $(LP)/sha.c
9
10 all: router 
11 #router_query router_register
12
13 #router_register: router_register.c
14 #       $(CC) $(CC_OPTS) -L ../../lib -lopensrf_transport -lxml2 router_register.c -o router_register
15
16 #router_query: router_query.c
17 #       $(CC) $(CC_OPTS) -L ../../lib -lopensrf_transport -lxml2 router_query.c -o router_query
18
19 # The router is compiled as a static binary because of some 
20 # necessary #defines that would break the library
21 router:  router.c $(LIB_SOURCES)
22         $(CC) $(LD_OPTS) -D_ROUTER $(CC_OPTS)   $(LIB_SOURCES) router.c -o $@ 
23
24 clean:
25         /bin/rm -f router  router_query