moved sha.c
[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 -lobjson
7 LP=../libtransport
8 UTIL_DIR = ../utils
9 LIB_SOURCES = $(UTIL_DIR)/utils.c $(LP)/generic_utils.c $(LP)/transport_socket.c $(LP)/transport_session.c $(LP)/transport_message.c $(LP)/transport_client.c $(UTIL_DIR)/sha.c
10
11 all: router 
12 install: router
13         cp router ../../bin
14
15 router:  router.c $(LIB_SOURCES)
16         $(CC) $(LD_OPTS) -D_ROUTER $(CC_OPTS)   $(LIB_SOURCES) router.c -o $@ 
17
18 clean:
19         /bin/rm -f router  router_query