]> git.evergreen-ils.org Git - Evergreen.git/blob - OpenSRF/src/libstack/Makefile
ad65bfa6fee7110a589ee96f7f018627455b56e5
[Evergreen.git] / OpenSRF / src / libstack / Makefile
1 # OSRF_LOG_PARAMS log all incoming method params at OSRF_INFO log level. 
2 # OSRF_STRICT_PARAMS instructs the app handler to return an error if the number of method arguments
3 #       provided to any method is not at least as large as the 'argc' setting for the method
4
5 CFLAGS  +=  -DASSUME_STATELESS  -DOSRF_LOG_PARAMS -DOSRF_STRICT_PARAMS -rdynamic -fno-strict-aliasing
6 LDLIBS  += -lxml2 -lobjson -ldl -lmemcache -LJudy
7
8 TARGETS = osrf_message.o \
9                          osrf_app_session.o \
10                          osrf_stack.o \
11                          osrf_system.o \
12                          osrf_settings.o \
13                          osrf_prefork.o \
14                          osrfConfig.o \
15                          osrf_application.o \
16                          osrf_cache.o \
17                          osrf_transgroup.o \
18                          osrf_list.o \
19                          osrf_hash.o \
20                          xml_utils.o
21
22 HEADERS = osrf_message.h \
23                          osrf_app_session.h \
24                          osrf_stack.h \
25                          osrf_system.h \
26                          osrf_settings.h \
27                          osrf_prefork.h \
28                          osrfConfig.h \
29                          osrf_application.h \
30                          osrf_cache.h \
31                          osrf_transgroup.h \
32                          osrf_list.h \
33                          osrf_hash.h \
34                          xml_utils.h
35
36 all: xml_utils.o $(TARGETS) copy 
37
38 xml_utils.o:
39         cp ../utils/xml_utils.h .
40         cp ../utils/xml_utils.c .
41         $(CC) -c $(CFLAGS) xml_utils.c -o $@ 
42
43 copy:
44         cp $(HEADERS) $(TMPDIR)/
45
46 osrf_message.o: osrf_message.c osrf_message.h
47 osrf_app_session.o:     osrf_app_session.c osrf_app_session.h
48 osrf_stack.o:   osrf_stack.c osrf_stack.h
49 osrf_system.o:  osrf_system.c osrf_system.h
50 osrf_settings.o:        osrf_settings.c osrf_settings.h
51 osrf_prefork.o: osrf_prefork.c osrf_prefork.h
52 osrfConfig.o:   osrfConfig.c osrfConfig.h xml_utils.o
53 osrf_application.o: osrf_application.c osrf_application.h
54 osrf_cache.o:   osrf_cache.c osrf_cache.h
55 osrf_list.o:    osrf_list.c osrf_list.h
56 osrf_hash.o:    osrf_hash.c osrf_hash.h
57
58
59 clean:
60         /bin/rm -f *.o libopensrf_stack.so xml_utils.h xml_utils.c opensrf
61