]> git.evergreen-ils.org Git - Evergreen.git/blob - OpenSRF/src/libstack/Makefile
some api changes
[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
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_log.o \
18                          xml_utils.o
19
20 HEADERS = osrf_message.h \
21                          osrf_app_session.h \
22                          osrf_stack.h \
23                          osrf_system.h \
24                          osrf_settings.h \
25                          osrf_prefork.h \
26                          osrfConfig.h \
27                          osrf_application.h \
28                          osrf_cache.h \
29                          osrf_log.h \
30                          xml_utils.h
31
32 all: xml_utils.o $(TARGETS) copy 
33
34 xml_utils.o:
35         cp ../utils/xml_utils.h .
36         cp ../utils/xml_utils.c .
37         $(CC) -c $(CFLAGS) xml_utils.c -o $@ 
38
39 copy:
40         cp $(HEADERS) $(TMPDIR)/
41
42 osrf_message.o: osrf_message.c osrf_message.h
43 osrf_app_session.o:     osrf_app_session.c osrf_app_session.h
44 osrf_stack.o:   osrf_stack.c osrf_stack.h
45 osrf_system.o:  osrf_system.c osrf_system.h
46 osrf_settings.o:        osrf_settings.c osrf_settings.h
47 osrf_prefork.o: osrf_prefork.c osrf_prefork.h
48 osrfConfig.o:   osrfConfig.c osrfConfig.h xml_utils.o
49 osrf_application.o: osrf_application.c osrf_application.h
50 osrf_cache.o:   osrf_cache.c osrf_cache.h
51 osrf_log.o:     osrf_log.c osrf_log.h
52
53 clean:
54         /bin/rm -f *.o libopensrf_stack.so xml_utils.h xml_utils.c