LP# 953299 - defend against null and zero-length cache keys
[OpenSRF.git] / Makefile.am
index 289b3e3..a92deec 100644 (file)
@@ -23,25 +23,106 @@ export APR_HEADERS              = @APR_HEADERS@
 export ETCDIR                   = @sysconfdir@
 export APXS2                    = @APXS2@
 export APACHE2_HEADERS          = @APACHE2_HEADERS@
-export DEF_CFLAGS              = -D_LARGEFILE64_SOURCE $(MAYBE_DEBUG) -pipe -g -Wall -O2 -fPIC -I@abs_top_builddir@/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) @INCLUDES@
-export DEF_LDFLAGS             = -L$(TMPDIR) @LIBDIRS@
-export DEF_LDLIBS              = -lobjson -lopensrf
-export VAR                     = @localstatedir@
-export PID                     = @localstatedir@/run/opensrf
-export SOCK                    = @localstatedir@/lock/opensrf
-export LOG                     = @localstatedir@/log/opensrf
+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@
+export DEF_LDLIBS               = -lopensrf
+export VAR                      = @localstatedir@
+export PID                      = @localstatedir@/run/opensrf
+export SOCK                     = @localstatedir@/lock/opensrf
+export LOG                      = @localstatedir@/log/opensrf
+export srcdir                   = @srcdir@
+opensrfincludedir               = @includedir@/opensrf
 
 AM_CFLAGS = $(DEF_CFLAGS)
-LDFLAGS = $(DEF_LDFLAGS) -L./src/
 
-SUBDIRS = src
+DISTCLEANFILES = Makefile.in Makefile aclocal.m4 config.guess config.log config.sub config.status configure depcomp install-sh ltmain.sh missing
+
+DOC_FILES = @srcdir@/doc/Application-HOWTO.txt \
+                       @srcdir@/doc/dokuwiki-doc-stubber.pl \
+                       @srcdir@/doc/OpenSRF-Messaging-Protocol.html \
+                       @srcdir@/doc/Persist-API.html \
+                       @srcdir@/doc/Roadmap.txt \
+                       @srcdir@/AUTHORS \
+                       @srcdir@/ChangeLog \
+                       @srcdir@/INSTALL \
+                       @srcdir@/README
+
+EXAMPLES_FILES = @srcdir@/examples/fieldmapper2cdbi.xsl \
+                                @srcdir@/examples/fieldmapper2javascript.xsl \
+                                @srcdir@/examples/fieldmapper2perl.xsl \
+                                @srcdir@/examples/gen-fieldmapper.xml \
+                                @srcdir@/examples/math_bench.pl \
+                                @srcdir@/examples/math_client.py \
+                                @srcdir@/examples/multisession-test.pl \
+                                @srcdir@/examples/register.pl \
+                                @srcdir@/examples/srfsh_config.xsd \
+                                @srcdir@/examples/math_xul_client/math \
+                                @srcdir@/examples/math_xul_client/install.js
+
+strn_compat_FILES = @srcdir@/src/ports/strn_compat/strndup.c \
+                                       @srcdir@/src/ports/strn_compat/strndup.h \
+                                       @srcdir@/src/ports/strn_compat/strnlen.c \
+                                       @srcdir@/src/ports/strn_compat/strnlen.h
+
+python_FILES = @srcdir@/src/python/opensrf.py \
+                          @srcdir@/src/python/setup.py \
+                          @srcdir@/src/python/srfsh.py \
+                          @srcdir@/src/python/osrf
+
+java_FILES = @srcdir@/src/java/deps.inc \
+                        @srcdir@/src/java/deps.sh \
+                        @srcdir@/src/java/org
+
+libosrf_FILES = @srcdir@/src/libopensrf/basic_client.c \
+               @srcdir@/src/libopensrf/osrf_big_hash.c \
+               @srcdir@/src/libopensrf/osrf_big_list.c \
+               @srcdir@/src/libopensrf/osrfConfig.c
+
+
+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
+
+OSRFINC=@srcdir@/include/opensrf
+
+if BUILDCORE
+opensrfinclude_HEADERS = $(OSRFINC)/log.h \
+       $(OSRFINC)/md5.h \
+       $(OSRFINC)/osrf_application.h \
+       $(OSRFINC)/osrf_app_session.h \
+       $(OSRFINC)/osrf_big_hash.h \
+       $(OSRFINC)/osrf_big_list.h \
+       $(OSRFINC)/osrf_cache.h \
+       $(OSRFINC)/osrfConfig.h \
+       $(OSRFINC)/osrf_hash.h \
+       $(OSRFINC)/osrf_json.h \
+       $(OSRFINC)/osrf_json_xml.h \
+       $(OSRFINC)/osrf_legacy_json.h \
+       $(OSRFINC)/osrf_list.h \
+       $(OSRFINC)/osrf_message.h \
+       $(OSRFINC)/osrf_prefork.h \
+       $(OSRFINC)/osrf_settings.h \
+       $(OSRFINC)/osrf_stack.h \
+       $(OSRFINC)/osrf_system.h \
+       $(OSRFINC)/osrf_transgroup.h \
+       $(OSRFINC)/sha.h \
+       $(OSRFINC)/socket_bundle.h \
+       $(OSRFINC)/string_array.h \
+       $(OSRFINC)/transport_client.h \
+       $(OSRFINC)/transport_message.h \
+       $(OSRFINC)/transport_session.h \
+       $(OSRFINC)/utils.h \
+       $(OSRFINC)/xml_utils.h \
+       src/gateway/apachetools.h
+endif
+
+SUBDIRS = src tests
 
 jserver:
-       make -s -C src jserver
+       $(MAKE) -s -C src jserver
 
 jserver-install:
-       make -s -C src jserver-install
+       $(MAKE) -s -C src jserver-install
 
-javascript-install:
-       make -s -C src javascript-install
+distclean-local:
+       rm -rf ./autom4te.cache
+       rm -rf ./m4
 
+# vim:noet:ts=4:sw=4: