1 # Copyright (C) 2008 Equinox Software, Inc.
2 # Kevin Beswick <kevinbeswick00@gmail.com>
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.
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.
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
19 OSRF_INC = @top_srcdir@/include/opensrf
21 TARGS = osrf_message.c \
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 \
63 $(OSRF_INC)/socket_bundle.h \
65 $(OSRF_INC)/string_array.h \
66 $(OSRF_INC)/osrf_json_utils.h \
67 $(OSRF_INC)/osrf_json_xml.h
69 JSON_TARGS = osrf_json_object.c\
76 # use these when building the standalone JSON module
77 JSON_DEP = osrf_list.c\
85 JSON_TARGS_HEADS = $(OSRF_INC)/osrf_legacy_json.h \
86 $(OSRF_INC)/osrf_json_xml.h
88 JSON_DEP_HEADS = $(OSRF_INC)/osrf_list.h \
89 $(OSRF_INC)/osrf_hash.h \
90 $(OSRF_INC)/osrf_utf8.h \
94 $(OSRF_INC)/string_array.h
96 noinst_PROGRAMS = osrf_json_test
98 bin_PROGRAMS = opensrf-c
99 opensrf_c_SOURCES = opensrf.c
100 opensrf_c_DEPENDENCIES = libopensrf.la
102 osrf_json_test_SOURCES = osrf_json_test.c $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
104 noinst_LTLIBRARIES = libosrf_json.la
105 lib_LTLIBRARIES = libopensrf.la
107 libosrf_json_la_SOURCES = $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
108 libosrf_json_la_CFLAGS = $(AM_CFLAGS)
110 libopensrf_la_CFLAGS = $(AM_CFLAGS)
111 libopensrf_la_DEPENDENCIES = libosrf_json.la
113 libopensrf_la_SOURCES = $(TARGS) $(TARGS_HEADS) $(JSON_TARGS) $(JSON_TARGS_HEADS)