]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/libopensrf/Makefile.am
LP#1704116: fix intermittant failure of parallel building
[OpenSRF.git] / src / libopensrf / Makefile.am
1 # Copyright (C) 2008-2012 Equinox Software, Inc., and others
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 = -lopensrf
18
19 DISTCLEANFILES = Makefile.in Makefile
20
21 OSRF_INC = @top_srcdir@/include/opensrf
22
23 TARGS =                 osrf_message.c \
24                         osrf_app_session.c \
25                         osrf_stack.c \
26                         osrf_system.c \
27                         osrf_settings.c \
28                         osrf_prefork.c \
29                         osrfConfig.c \
30                         osrf_application.c \
31                         osrf_cache.c \
32                         osrf_transgroup.c \
33                         osrf_list.c \
34                         osrf_hash.c \
35                         osrf_utf8.c \
36                         xml_utils.c \
37                         transport_message.c\
38                         transport_session.c\
39                         transport_client.c\
40                         md5.c\
41                         log.c\
42                         utils.c\
43                         socket_bundle.c\
44                         sha.c\
45                         string_array.c
46
47 TARGS_HEADS =    $(OSRF_INC)/transport_message.h \
48                  $(OSRF_INC)/transport_session.h \
49                  $(OSRF_INC)/transport_client.h \
50                  $(OSRF_INC)/osrf_message.h \
51                  $(OSRF_INC)/osrf_app_session.h \
52                  $(OSRF_INC)/osrf_stack.h \
53                  $(OSRF_INC)/osrf_system.h \
54                  $(OSRF_INC)/osrf_settings.h \
55                  $(OSRF_INC)/osrf_prefork.h \
56                  $(OSRF_INC)/osrfConfig.h \
57                  $(OSRF_INC)/osrf_application.h \
58                  $(OSRF_INC)/osrf_cache.h \
59                  $(OSRF_INC)/osrf_list.h \
60                  $(OSRF_INC)/osrf_hash.h \
61                  $(OSRF_INC)/osrf_utf8.h \
62                  $(OSRF_INC)/md5.h \
63                  $(OSRF_INC)/log.h \
64                  $(OSRF_INC)/utils.h \
65                  $(OSRF_INC)/socket_bundle.h \
66                  $(OSRF_INC)/sha.h \
67                  $(OSRF_INC)/string_array.h \
68                  $(OSRF_INC)/osrf_json_xml.h 
69
70 JSON_TARGS =                    osrf_json_object.c\
71                                 osrf_parse_json.c \
72                                 osrf_json_tools.c \
73                                 osrf_legacy_json.c \
74                                 osrf_json_xml.c
75
76 # use these when building the standalone JSON module
77 JSON_DEP =              osrf_list.c\
78                         osrf_hash.c\
79                         osrf_utf8.c\
80                         utils.c\
81                         log.c\
82                         md5.c\
83                         string_array.c
84
85 JSON_TARGS_HEADS =      $(OSRF_INC)/osrf_legacy_json.h \
86                         $(OSRF_INC)/osrf_json_xml.h
87
88 JSON_DEP_HEADS =        $(OSRF_INC)/osrf_list.h \
89                         $(OSRF_INC)/osrf_hash.h \
90                         $(OSRF_INC)/osrf_utf8.h \
91                         $(OSRF_INC)/utils.h \
92                         $(OSRF_INC)/log.h \
93                         $(OSRF_INC)/md5.h \
94                         $(OSRF_INC)/string_array.h
95
96 noinst_PROGRAMS = osrf_json_test
97
98 bin_PROGRAMS = opensrf-c
99 opensrf_c_SOURCES = opensrf.c
100 opensrf_c_DEPENDENCIES = libopensrf.la
101
102 osrf_json_test_SOURCES = osrf_json_test.c $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
103 osrf_json_test_DEPENDENCIES = libopensrf.la
104
105 noinst_LTLIBRARIES = libosrf_json.la
106 lib_LTLIBRARIES = libopensrf.la
107
108 libosrf_json_la_SOURCES = $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
109 libosrf_json_la_CFLAGS = $(AM_CFLAGS)
110
111 libopensrf_la_CFLAGS = $(AM_CFLAGS) $(memcached_CFLAGS)
112 libopensrf_la_DEPENDENCIES = libosrf_json.la
113 libopensrf_la_LIBADD = $(memcached_LIBS)
114
115 libopensrf_la_SOURCES = $(TARGS) $(TARGS_HEADS) $(JSON_TARGS) $(JSON_TARGS_HEADS)
116 libopensrf_la_LDFLAGS = -version-info 3:1:1