📄 makefile.am
字号:
# vim:tw=0# $Id: Makefile.am,v 1.144 2007/01/14 16:33:22 m-a Exp $SUBDIRS = . testsSYSCONFDIR = @sysconfdir@PERL = @PERL@if ENABLE_MEMDEBUGMEMDEBUG_SRC = memdebug.c memdebug.hendifnoinst_LIBRARIES = libbogofilter.aif USE_GCC4AM_CPPFLAGS = -iquote$(top_srcdir)/gnugetopt -iquote$(top_srcdir)/trio \ -I$(srcdir) @GSL_CFLAGS@ -I$(top_srcdir)/gsl/specfunc -I$(top_srcdir)elseAM_CPPFLAGS = -I$(top_srcdir)/gnugetopt -I$(top_srcdir)/trio -I- -I. \ -I$(srcdir) @GSL_CFLAGS@ -I$(top_srcdir)/gsl/specfunc -I$(top_srcdir)endifAM_CFLAGS = -DBOGOFILTERif ENABLE_MEMDEBUGAM_CFLAGS += -DENABLE_MEMDEBUGendifBUILT_SOURCES= version.c directories.c# what to buildbin_PROGRAMS = bogofilter bogoutil bogolexer bogotunebin_SCRIPTS = bogoupgradedist_bin_SCRIPTS = bf_copy bf_compact bf_tarif ENABLE_STATICbin_PROGRAMS += bogofilter_static bogoutil_static bogolexer_static bogotune_staticendifcheck_PROGRAMS = debugtest configtest wordhash find_home.test \ fgetsl.testTESTS=LDADD = libbogofilter.abogofilter_LDADD = $(LDADD) $(LIBDB) $(GSL_LIBS)bogoutil_LDADD = $(LDADD) $(LIBDB)configtest_LDADD = $(LDADD) $(LIBDB)if NEED_GSLlibbf_gsl_a_CFLAGS=$(AM_CFLAGS) -DRENAMEFILESlibbf_gsl_a_SOURCES= \../gsl/cdf/chisq.c ../gsl/cdf/gamma.c \../gsl/specfunc/gamma_inc.c ../gsl/err/error.c \../gsl/sys/infnan.c ../gsl/sys/fdiv.c \../gsl/specfunc/exp.c ../gsl/specfunc/trig.c \../gsl/specfunc/log.c ../gsl/specfunc/psi.c \../gsl/specfunc/zeta.c ../gsl/specfunc/elementary.c \../gsl/err/stream.c ../gsl/specfunc/expint.c \../gsl/specfunc/erfc.c ../gsl/sys/coerce.c \../gsl/sys/pow_int.c ../gsl/sys/minmax.cnoinst_LIBRARIES += libbf_gsl.alibbf_gsl_a_CPPFLAGS= -I$(top_srcdir)BUILT_SOURCES += libbf_gsl.aendifEXTRA_PROGRAMS=panicenvpanicenv_SOURCES=panicenv.cpanicenv_LDADD=$(LIBDB)if NEEDTRIOnoinst_LIBRARIES += libtrio.alibtrio_a_SOURCES= ../trio/triostr.c ../trio/trio.c ../trio/trionan.c \ ../trio/trio.h ../trio/triop.h ../trio/triodef.h \ ../trio/trionan.h ../trio/triostr.hcheck_PROGRAMS += regressionTESTS+=./regressionregression_SOURCES= ../trio/regression.cLDADD += libtrio.aendifif !DISABLE_UNICODELDADD += @LIBICONV@endifif ENABLE_UNICODECHARSET_SOURCES = charset.c charset.h convert_unicode.c iconvert.h iconvert.celseif DISABLE_UNICODECHARSET_SOURCES = charset.c charset.h convert_charset.c chUnicodeTo866.helseCHARSET_SOURCES = charset.c charset.h \ convert_charset.c convert_charset.h chUnicodeTo866.h \ convert_unicode.c convert_unicode.h iconvert.c iconvert.hendifendif# what to build that fromversion_sources= \ common.h system.h bftypes.h \ globals.h globals.c \ base64.h base64.c \ bf_exit.c \ bogoconfig.h bogoconfig.c \ bogomain.h bogomain.c \ bogoreader.h bogoreader.c \ bool.h bool.c \ bsdqueue.h \ buff.h buff.c \ $(CHARSET_SOURCES) \ collect.h collect.c \ configfile.h configfile.c \ datastore.h datastore.c \ datastore_dbcommon.h datastore_db_private.h \ db_lock.h db_lock.c \ debug.h debug.c \ error.h error.c \ fgetsl.h fgetsl.c \ find_home.h find_home.c find_home_user.c find_home_tildeexpand.c \ format.h format.c \ lexer.h lexer.c lexer_v3.l \ longoptions.h \ maint.h maint.c \ memstr.h memstr.c \ mime.h mime.c \ msgcounts.h msgcounts.c \ mxcat.h mxcat.c \ passthrough.h passthrough.c \ paths.h paths.c \ prob.h prob.c \ qp.h qp.c \ rand_sleep.h rand_sleep.c \ register.h register.c \ robx.h robx.c \ rstats.h rstats.c \ score.h score.c \ sighandler.h sighandler.c \ swap.h swap_32bit.c system.c \ textblock.h textblock.c \ token.h token.c \ transaction.h transaction.c \ uudecode.h uudecode.c \ word.h word.c \ wordhash.h wordhash.c wordlists.h wordlists.c \ wordlists_base.h wordlists_base.c \ xmalloc.h xcalloc.c xmalloc.c xmem_error.c xrealloc.c \ xmemrchr.h xmemrchr.c \ xstrdup.h xstrdup.c \ xstrlcat.h xstrlcat.c \ xstrlcpy.h xstrlcpy.c \ $(MEMDEBUG_SRC) \ xatox.h xatof.c xatoi.c \ datastore_db.h \ mysetvbuf.c mysetvbuf.hlibbogofilter_a_SOURCES = \ version.c \ $(version_sources)nodist_libbogofilter_a_SOURCES = \ directories.c \ unicode_runtime_selection unicode_enabled unicode_disabledif NEED_GETOPTnoinst_LIBRARIES += libgnugetopt.aLDADD += libgnugetopt.alibgnugetopt_a_SOURCES = ../gnugetopt/getopt1.c ../gnugetopt/getopt.cendif# this must be last so any library we may have added has access to the# AC_REPLACE objects, for instance, trio may need strtoul:LDADD += @LIBOBJS@if ENABLE_QDBM_DATASTOREdatastore_SOURCE = datastore_qdbm.c datastore_qdbm_cmpkey.c \ datastore_txn_dummies.c datastore_opthelp_dummies.c \ datastore_dummies.cbin_PROGRAMS += bogoQDBMupgradebogoQDBMupgrade_SOURCES = bogoQDBMupgrade.c datastore_qdbm_cmpkey.cbogoQDBMupgrade_LDADD = $(LDADD) $(LIBDB)elseif ENABLE_SQLITE_DATASTOREdatastore_SOURCE = datastore_sqlite.c datastore_opthelp_dummies.c \ datastore_dummies.celseif ENABLE_TRANSACTIONSdatastore_SOURCE = datastore_db.c datastore_db_trans.celseif DISABLE_TRANSACTIONSdatastore_SOURCE = datastore_db.c datastore_db_trad.c \ datastore_opthelp_dummies.celsedatastore_SOURCE = datastore_db.c datastore_db_trad.c datastore_db_trans.cendifendifendifendifdatastore_OBJECT = $(datastore_SOURCE:.c=.o)libbogofilter_a_SOURCES += $(datastore_SOURCE)EXTRA_libbogofilter_a_SOURCES = datastore_db.c datastore_db_trad.c \ datastore_db_trans.c \ datastore_opthelp_dummies.c \ datastore_txn_dummies.c \ datastore_qdbm.h datastore_qdbm.c \ datastore_sqlite.c \ charset.h convert_charset.h convert_unicode.h \ charset.c \ convert_charset.c chUnicodeTo866.h \ convert_unicode.c iconvert.c iconvert.hCLEANFILES=version.c directories.c bogoupgradebogofilter_SOURCES = bogofilter.c bogofilter.h main.c \ common.hbogofilter_static_SOURCES = $(bogofilter_SOURCES)bogofilter_static_LDFLAGS = $(STATICLDFLAGS)bogofilter_static_LDADD = $(LDADD) $(STATIC_DB) $(GSL_LIBS)bogolexer_static_SOURCES = bogolexer.cbogolexer_static_LDFLAGS = $(STATICLDFLAGS)bogoutil_SOURCES = bogoutil.c bogohist.c bogohist.hbogoutil_static_SOURCES = bogoutil.c bogohist.c bogohist.hbogoutil_static_LDFLAGS = $(STATICLDFLAGS)bogoutil_static_LDADD = $(LDADD) $(STATIC_DB)bogotune_SOURCES = bogotune.c bogotune.h \ tunelist.c tunelist.h \ common.hbogotune_LDADD = $(LDADD) $(LIBDB) $(GSL_LIBS)bogotune_static_SOURCES = bogotune.c bogotune.h \ tunelist.c tunelist.h \ common.hbogotune_static_LDFLAGS = $(STATICLDFLAGS)bogotune_static_LDADD= $(LDADD) $(STATIC_DB) $(GSL_LIBS)debugtest_SOURCES = debug.main.cwordhash_SOURCES = wordhash.main.cfind_home_test_SOURCES = find_home.test.cfgetsl_test_SOURCES = fgetsl.cfgetsl_test_CFLAGS= -DMAIN# what to distributeEXTRA_DIST = $(bin_SCRIPTS) \ bogoupgrade.in \ version.sh \ strlcat.3 strlcpy.3 \ patch.lexer.254.txt patch.lexer.253x.txt#version.c: version.sh ../configure.ac Makefile.am \ $(version_sources) \ $(bogofilter_SOURCES) \ $(bogolexer_SOURCES) \ $(bogoutil_SOURCES) \ $(bogotune_SOURCES) $(SHELL) $(srcdir)/version.sh $(top_srcdir) >"$@.new" && mv -f "$@.new" "$@" \ || { rm -f "$@" ; false ; }#directories.c: ../config.status rm -f $@ echo "const char *const system_config_file = \"$(SYSCONFDIR)/bogofilter.cf\";" >"$@" \ || { rm -f "$@" ; false ; }#$(datastore_OBJECT): Makefile $(datastore_SOURCE)#bogoupgrade: bogoupgrade.in Makefile rm -f $@ sed 's}[@]PERL@}$(PERL)}' <$(srcdir)/bogoupgrade.in >$@ || rm -f $@ chmod +x bogoupgrade#splint - weaksplint.check: $(version_sources) $(bogofilter_SOURCES) $(bogolexer_SOURCES) $(bogoutil_SOURCES) $(bogotune_SOURCES) splint -I. -f $(srcdir)/.lclintrc -weak `for i in \ $(version_sources) \ $(bogofilter_SOURCES) \ $(bogolexer_SOURCES) \ $(bogoutil_SOURCES) \ $(bogotune_SOURCES) ; do echo $(srcdir)/$$i ; done | sort -u | egrep -v "(lexer_v3.l|db_handle_props.h)"` > splint.tmp || : grep ^F splint.tmp wc -l splint.tmplexer_v3.c: $(srcdir)/lexer_v3.l $(srcdir)/Makefile.in $(LEX) $(srcdir)/lexer_v3.l (echo '/* Include config.h early to avoid _FILE_OFFSET_BITS redefinition on Solaris */'; echo '#include "config.h"' ; sed '/^#/ s|lex.yy\.c|$@|; s/\(accepting rule at line\) %d/\\1 %ld/' lex.yy.c) >$@if PATCH_FLEX_254 patch $@ < $(srcdir)/patch.lexer.254.txtendifif PATCH_FLEX_253X patch $@ < $(srcdir)/patch.lexer.253x.txtendif rm -f lex.yy.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -