Merge patch from Scott McKellar for better Unicode handling
[OpenSRF.git] / src / libopensrf / Makefile.am
1 # Copyright (C) 2008 Equinox Software, Inc.
2 # Kevin Beswick <kevinbeswick00@gmail.com>
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14
15 AM_CFLAGS = $(DEF_CFLAGS) -DASSUME_STATELESS  -DOSRF_STRICT_PARAMS -rdynamic -fno-strict-aliasing -DOSRF_JSON_ENABLE_XML_UTILS
16 AM_LDFLAGS = $(DEF_LDFLAGS) -R $(libdir)
17 LDADD = -lxml2 -ldl -lmemcache -lopensrf
18
19 OSRF_INC = @top_srcdir@/include/opensrf
20
21 TARGS =                 osrf_message.c \
22                         osrf_app_session.c \
23                         osrf_stack.c \
24                         osrf_system.c \
25                         osrf_settings.c \
26                         osrf_prefork.c \
27                         osrfConfig.c \
28                         osrf_application.c \
29                         osrf_cache.c \
30                         osrf_transgroup.c \
31                         osrf_list.c \
32                         osrf_hash.c \
33                         osrf_utf8.c \
34                         xml_utils.c \
35                         transport_message.c\
36                         transport_session.c\
37                         transport_client.c\
38                         md5.c\
39                         log.c\
40                         utils.c\
41                         socket_bundle.c\
42                         sha.c\
43                         string_array.c
44
45 TARGS_HEADS =    $(OSRF_INC)/transport_message.h \
46                  $(OSRF_INC)/transport_session.h \
47                  $(OSRF_INC)/transport_client.h \
48                  $(OSRF_INC)/osrf_message.h \
49                  $(OSRF_INC)/osrf_app_session.h \
50                  $(OSRF_INC)/osrf_stack.h \
51                  $(OSRF_INC)/osrf_system.h \
52                  $(OSRF_INC)/osrf_settings.h \
53                  $(OSRF_INC)/osrf_prefork.h \
54                  $(OSRF_INC)/osrfConfig.h \
55                  $(OSRF_INC)/osrf_application.h \
56                  $(OSRF_INC)/osrf_cache.h \
57                  $(OSRF_INC)/osrf_list.h \
58                  $(OSRF_INC)/osrf_hash.h \
59                  $(OSRF_INC)/osrf_utf8.h \
60                  $(OSRF_INC)/md5.h \
61                  $(OSRF_INC)/log.h \
62                  $(OSRF_INC)/utils.h \
63                  $(OSRF_INC)/socket_bundle.h \
64                  $(OSRF_INC)/sha.h \
65                  $(OSRF_INC)/string_array.h \
66                  $(OSRF_INC)/osrf_json_utils.h \
67                  $(OSRF_INC)/osrf_json_xml.h 
68
69 JSON_TARGS =                    osrf_json_object.c\
70                                 osrf_json_parser.c \
71                                 osrf_json_tools.c \
72                                 osrf_legacy_json.c \
73                                 osrf_json_xml.c
74
75 # use these when building the standalone JSON module
76 JSON_DEP =              osrf_list.c\
77                         osrf_hash.c\
78                         osrf_utf8.c\
79                         utils.c\
80                         log.c\
81                         md5.c\
82                         string_array.c
83
84 JSON_TARGS_HEADS =      $(OSRF_INC)/osrf_legacy_json.h \
85                         $(OSRF_INC)/osrf_json_xml.h
86
87 JSON_DEP_HEADS =        $(OSRF_INC)/osrf_list.h \
88                         $(OSRF_INC)/osrf_hash.h \
89                         $(OSRF_INC)/osrf_utf8.h \
90                         $(OSRF_INC)/utils.h \
91                         $(OSRF_INC)/log.h \
92                         $(OSRF_INC)/md5.h \
93                         $(OSRF_INC)/string_array.h
94
95 noinst_PROGRAMS = osrf_json_test
96
97 bin_PROGRAMS = opensrf-c
98 opensrf_c_SOURCES = opensrf.c
99 opensrf_c_DEPENDENCIES = libopensrf.la
100
101 osrf_json_test_SOURCES = osrf_json_test.c $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
102
103 noinst_LTLIBRARIES = libosrf_json.la
104 lib_LTLIBRARIES = libopensrf.la
105
106 libosrf_json_la_SOURCES = $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
107 libosrf_json_la_CFLAGS = $(AM_CFLAGS)
108
109 libopensrf_la_CFLAGS = $(AM_CFLAGS)
110 libopensrf_la_DEPENDENCIES = libosrf_json.la
111
112 libopensrf_la_SOURCES = $(TARGS) $(TARGS_HEADS) $(JSON_TARGS) $(JSON_TARGS_HEADS)
113