"Fossies" - the Fresh Open Source Software Archive

Member "memcached-1.6.9/Makefile.am" (21 Nov 2020, 5164 Bytes) of package /linux/www/memcached-1.6.9.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.8_vs_1.6.9.

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