]> git.evergreen-ils.org Git - OpenSRF.git/blob - Makefile.am
We routinely grab a chunk of configuration file that doesn't
[OpenSRF.git] / 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 if !DEBUG
16 MAYBE_DEBUG = -DNDEBUG
17 endif
18
19 export PREFIX                   = @prefix@
20 export TMP                      = @TMP@
21 export LIBXML2_HEADERS          = @LIBXML2_HEADERS@
22 export APR_HEADERS              = @APR_HEADERS@
23 export ETCDIR                   = @sysconfdir@
24 export APXS2                    = @APXS2@
25 export APACHE2_HEADERS          = @APACHE2_HEADERS@
26 export DEF_CFLAGS               = -D_LARGEFILE64_SOURCE $(MAYBE_DEBUG) -pipe -g -Wall -O2 -fPIC -I@abs_top_srcdir@/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) @INCLUDES@
27 export DEF_LDLIBS               = -lopensrf
28 export VAR                      = @localstatedir@
29 export PID                      = @localstatedir@/run/opensrf
30 export SOCK                     = @localstatedir@/lock/opensrf
31 export LOG                      = @localstatedir@/log/opensrf
32 export srcdir                   = @srcdir@
33 opensrfincludedir               = @includedir@/opensrf
34
35 ACLOCAL_AMFLAGS = -I m4
36
37 AM_CFLAGS = $(DEF_CFLAGS)
38
39 DISTCLEANFILES = Makefile.in Makefile aclocal.m4 config.guess config.log config.sub config.status configure depcomp install-sh ltmain.sh missing
40
41 DOC_FILES = @srcdir@/doc/Application-HOWTO.txt \
42             @srcdir@/doc/dokuwiki-doc-stubber.pl \
43             @srcdir@/doc/OpenSRF-Messaging-Protocol.html \
44             @srcdir@/doc/Persist-API.html \
45             @srcdir@/doc/Roadmap.txt \
46                 @srcdir@/AUTHORS \
47                 @srcdir@/ChangeLog \
48                 @srcdir@/INSTALL \
49                 @srcdir@/README
50
51 EXAMPLES_FILES = @srcdir@/examples/fieldmapper2cdbi.xsl \
52                  @srcdir@/examples/fieldmapper2javascript.xsl \
53                  @srcdir@/examples/fieldmapper2perl.xsl \
54                  @srcdir@/examples/gen-fieldmapper.xml \
55                  @srcdir@/examples/math_bench.pl \
56                  @srcdir@/examples/math_client.py \
57                  @srcdir@/examples/multisession-test.pl \
58                  @srcdir@/examples/register.pl \
59                  @srcdir@/examples/srfsh_config.xsd \
60                  @srcdir@/examples/math_xul_client/math \
61                  @srcdir@/examples/math_xul_client/install.js
62
63 strn_compat_FILES = @srcdir@/src/ports/strn_compat/strndup.c \
64                     @srcdir@/src/ports/strn_compat/strndup.h \
65                     @srcdir@/src/ports/strn_compat/strnlen.c \
66                     @srcdir@/src/ports/strn_compat/strnlen.h
67
68 python_FILES = @srcdir@/src/python/opensrf.py \
69                @srcdir@/src/python/setup.py \
70                @srcdir@/src/python/srfsh.py \
71                @srcdir@/src/python/osrf
72
73 java_FILES = @srcdir@/src/java/deps.inc \
74              @srcdir@/src/java/deps.sh \
75              @srcdir@/src/java/org
76
77 libosrf_FILES = @srcdir@/src/libopensrf/basic_client.c \
78                 @srcdir@/src/libopensrf/osrf_big_hash.c \
79                 @srcdir@/src/libopensrf/osrf_big_list.c \
80                 @srcdir@/src/libopensrf/osrfConfig.c
81
82
83 EXTRA_DIST = $(DOC_FILES) $(EXAMPLES_FILES) $(libosrf_FILES) $(strn_compat_FILES) $(python_FILES) $(java_FILES) @srcdir@/autogen.sh @srcdir@/src/extras @srcdir@/COPYING @srcdir@/DCO-1.1.txt @srcdir@/LICENSE.txt @srcdir@/src/perl @srcdir@/src/javascript
84
85 OSRFINC=@srcdir@/include/opensrf
86
87 if BUILDCORE
88 opensrfinclude_HEADERS = $(OSRFINC)/log.h \
89         $(OSRFINC)/md5.h \
90         $(OSRFINC)/osrf_application.h \
91         $(OSRFINC)/osrf_app_session.h \
92         $(OSRFINC)/osrf_big_hash.h \
93         $(OSRFINC)/osrf_big_list.h \
94         $(OSRFINC)/osrf_cache.h \
95         $(OSRFINC)/osrfConfig.h \
96         $(OSRFINC)/osrf_hash.h \
97         $(OSRFINC)/osrf_json.h \
98         $(OSRFINC)/osrf_json_utils.h \
99         $(OSRFINC)/osrf_json_xml.h \
100         $(OSRFINC)/osrf_legacy_json.h \
101         $(OSRFINC)/osrf_list.h \
102         $(OSRFINC)/osrf_message.h \
103         $(OSRFINC)/osrf_prefork.h \
104         $(OSRFINC)/osrf_settings.h \
105         $(OSRFINC)/osrf_stack.h \
106         $(OSRFINC)/osrf_system.h \
107         $(OSRFINC)/osrf_transgroup.h \
108         $(OSRFINC)/sha.h \
109         $(OSRFINC)/socket_bundle.h \
110         $(OSRFINC)/string_array.h \
111         $(OSRFINC)/transport_client.h \
112         $(OSRFINC)/transport_message.h \
113         $(OSRFINC)/transport_session.h \
114         $(OSRFINC)/utils.h \
115         $(OSRFINC)/xml_utils.h \
116         src/gateway/apachetools.h
117 endif
118
119 SUBDIRS = src
120
121 jserver:
122         make -s -C src jserver
123
124 jserver-install:
125         make -s -C src jserver-install
126
127 distclean-local:
128         rm -rf ./autom4te.cache
129         rm -rf ./m4