"Fossies" - the Fresh Open Source Software Archive

Member "memcached-1.6.15/Makefile.am" (30 Mar 2022, 5917 Bytes) of package /linux/www/memcached-1.6.15.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 1.6.14_vs_1.6.15.

    1 bin_PROGRAMS = memcached
    2 pkginclude_HEADERS = protocol_binary.h xxhash.h
    3 noinst_PROGRAMS = memcached-debug sizes testapp timedrun
    4 
    5 BUILT_SOURCES=
    6 
    7 testapp_SOURCES = testapp.c util.c util.h stats_prefix.c stats_prefix.h jenkins_hash.c murmur3_hash.c hash.h cache.c crc32c.c
    8 
    9 timedrun_SOURCES = timedrun.c
   10 
   11 memcached_SOURCES = memcached.c memcached.h \
   12                     hash.c hash.h \
   13                     jenkins_hash.c jenkins_hash.h \
   14                     murmur3_hash.c murmur3_hash.h \
   15                     queue.h \
   16                     slabs.c slabs.h \
   17                     items.c items.h \
   18                     assoc.c assoc.h \
   19                     thread.c daemon.c \
   20                     stats_prefix.c stats_prefix.h \
   21                     util.c util.h \
   22                     trace.h cache.c cache.h sasl_defs.h \
   23                     bipbuffer.c bipbuffer.h \
   24                     base64.c base64.h \
   25                     logger.c logger.h \
   26                     crawler.c crawler.h \
   27                     itoa_ljust.c itoa_ljust.h \
   28                     slab_automove.c slab_automove.h \
   29                     authfile.c authfile.h \
   30                     restart.c restart.h \
   31                     proto_text.c proto_text.h \
   32                     proto_bin.c proto_bin.h
   33 
   34 if BUILD_SOLARIS_PRIVS
   35 memcached_SOURCES += solaris_priv.c
   36 endif
   37 
   38 if BUILD_LINUX_PRIVS
   39 memcached_SOURCES += linux_priv.c
   40 endif
   41 
   42 if BUILD_OPENBSD_PRIVS
   43 memcached_SOURCES += openbsd_priv.c
   44 endif
   45 
   46 if BUILD_FREEBSD_PRIVS
   47 memcached_SOURCES += freebsd_priv.c
   48 endif
   49 
   50 if ENABLE_SASL
   51 memcached_SOURCES += sasl_defs.c
   52 endif
   53 
   54 if ENABLE_PROXY
   55 memcached_SOURCES += proto_proxy.c proto_proxy.h vendor/mcmc/mcmc.h \
   56 					 proxy_xxhash.c proxy.h \
   57 					 proxy_await.c proxy_ustats.c \
   58 					 proxy_jump_hash.c proxy_request.c \
   59 					 proxy_network.c proxy_lua.c \
   60 					 proxy_config.c proxy_ring_hash.c \
   61 					 md5.c
   62 endif
   63 
   64 if ENABLE_EXTSTORE
   65 memcached_SOURCES += extstore.c extstore.h \
   66                      crc32c.c crc32c.h \
   67                      storage.c storage.h \
   68                      slab_automove_extstore.c slab_automove_extstore.h
   69 endif
   70 
   71 if ENABLE_TLS
   72 memcached_SOURCES += tls.c tls.h
   73 endif
   74 
   75 memcached_debug_SOURCES = $(memcached_SOURCES)
   76 memcached_CPPFLAGS = -DNDEBUG
   77 memcached_debug_LDADD = @PROFILER_LDFLAGS@
   78 memcached_debug_CFLAGS = @PROFILER_FLAGS@
   79 
   80 memcached_LDADD =
   81 memcached_DEPENDENCIES =
   82 memcached_debug_DEPENDENCIES =
   83 CLEANFILES=
   84 
   85 if BUILD_LINUX_PRIVS
   86 memcached_LDADD += -lseccomp
   87 memcached_debug_LDADD += -lseccomp
   88 endif
   89 
   90 if BUILD_DTRACE
   91 BUILT_SOURCES += memcached_dtrace.h
   92 CLEANFILES += memcached_dtrace.h
   93 endif
   94 
   95 if DTRACE_INSTRUMENT_OBJ
   96 memcached_LDADD += memcached_dtrace.o
   97 memcached_DEPENDENCIES += memcached_dtrace.o
   98 memcached_debug_LDADD += memcached_debug_dtrace.o
   99 memcached_debug_DEPENDENCIES += memcached_debug_dtrace.o
  100 CLEANFILES += memcached_dtrace.o memcached_debug_dtrace.o
  101 endif
  102 
  103 if ENABLE_PROXY
  104 memcached_LDADD += vendor/lua/src/liblua.a vendor/mcmc/mcmc.o
  105 memcached_debug_LDADD += vendor/lua/src/liblua.a vendor/mcmc/mcmc.o
  106 endif
  107 
  108 if ENABLE_PROXY_URING
  109 memcached_LDADD += vendor/liburing/src/liburing.a
  110 memcached_debug_LDADD += vendor/liburing/src/liburing.a
  111 endif
  112 
  113 memcached_debug_CFLAGS += -DMEMCACHED_DEBUG
  114 
  115 memcached_dtrace.h: memcached_dtrace.d
  116 	${DTRACE} -h -s memcached_dtrace.d
  117 	sed -e 's,void \*,const void \*,g' memcached_dtrace.h | \
  118             sed -e 's,char \*,const char \*,g' | tr '\t' ' ' > mmc_dtrace.tmp
  119 	mv mmc_dtrace.tmp memcached_dtrace.h
  120 
  121 memcached_dtrace.o: $(memcached_OBJECTS)
  122 	$(DTRACE) $(DTRACEFLAGS) -G -o memcached_dtrace.o -s ${srcdir}/memcached_dtrace.d $(memcached_OBJECTS)
  123 
  124 memcached_debug_dtrace.o: $(memcached_debug_OBJECTS)
  125 	$(DTRACE) $(DTRACEFLAGS) -G -o memcached_debug_dtrace.o -s ${srcdir}/memcached_dtrace.d $(memcached_debug_OBJECTS)
  126 
  127 
  128 SUBDIRS = doc
  129 DIST_DIRS = scripts
  130 EXTRA_DIST = doc scripts t memcached.spec memcached_dtrace.d version.m4 README.md LICENSE.bipbuffer
  131 EXTRA_DIST += vendor/Makefile vendor/lua vendor/mcmc
  132 
  133 if ENABLE_PROXY
  134 SUBDIRS += vendor
  135 endif
  136 
  137 MOSTLYCLEANFILES = *.gcov *.gcno *.gcda *.tcov
  138 
  139 if ENABLE_TLS
  140 test_tls:
  141 	$(MAKE) SSL_TEST=1 test
  142 
  143 test_basic_tls:
  144 	@if test $(SSL_TEST)1 != 1; then \
  145 	  echo "Running basic tests with TLS"; \
  146 	  $(builddir)/testapp && \
  147 	  prove $(srcdir)/t/binary.t $(srcdir)/t/getset.t $(srcdir)/t/ssl* && \
  148 	  echo "Finished running basic TLS tests"; \
  149 	else \
  150 	  echo "Set SSL_TEST=1 to enable TLS tests"; \
  151 	fi
  152 endif
  153 
  154 test:	memcached-debug sizes testapp
  155 	$(builddir)/sizes
  156 	$(builddir)/testapp
  157 if ENABLE_TLS
  158 	@if test $(SSL_TEST)1 = 1; then \
  159           $(MAKE) SSL_TEST=1  test_basic_tls; \
  160 	fi
  161 endif
  162 	@if test -n "${PARALLEL}"; then \
  163 	  prove $(srcdir)/t -j ${PARALLEL}; \
  164 	else \
  165 	  prove $(srcdir)/t; \
  166 	fi
  167 	@if test `basename $(PROFILER)` = "gcov"; then \
  168 	  for file in memcached_debug-*.gc??; do \
  169 	    mv -f $$file `echo $$file | sed 's/memcached_debug-//'`; \
  170 	  done && \
  171 	  for file in *.gcda; do \
  172 	    srcfile=`echo $$file | sed 's/.gcda/.c/'`; \
  173 	    if test -n "`echo $(memcached_debug_SOURCES) | grep $$srcfile`"; then \
  174 	      echo `$(PROFILER) $$srcfile` | sed 's/'$$srcfile':.*//'; \
  175 	    fi \
  176 	  done \
  177 	elif test `basename $(PROFILER)` = "tcov"; then \
  178 	  files=`grep SRCFILE memcached-debug.profile/tcovd | sed 's/SRCFILE://' | sort | uniq` && \
  179 	  $(PROFILER) -x memcached-debug.profile $$files 2>&1; \
  180 	  for file in *.tcov; do \
  181 	    srcfile=`echo $$file | sed 's/.tcov//'`; \
  182 	    if test -n "`echo $(memcached_debug_SOURCES) | grep $$srcfile`"; then \
  183 	      echo $$srcfile : `grep 'Percent of the file executed' $$file`; \
  184 	    fi \
  185 	  done \
  186 	else :; fi
  187 
  188 docs:
  189 	(cat Doxyfile ; echo "PROJECT_NUMBER=`cat version.num`") | doxygen -
  190 
  191 dist-hook:
  192 	rm -f $(distdir)/*/*~ $(distdir)/t/lib/*~ $(distdir)/*~
  193 
  194 maintainer-clean-local:
  195 	-rm Makefile.in
  196 	-rm aclocal.m4
  197 	-rm config.guess
  198 	-rm config.sub
  199 	-rm depcomp
  200 	-rm install-sh
  201 	-rm ltmain.sh
  202 	-rm missing
  203 	-rm configure
  204 	-rm config.log
  205 	-rm config.status