mirror of https://github.com/Cisco-Talos/clamav
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
240 lines
5.5 KiB
240 lines
5.5 KiB
#
|
|
# Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
# MA 02110-1301, USA.
|
|
|
|
SUBDIRS = lzma .
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I@srcdir@/nsis -I@srcdir@/lzma
|
|
|
|
if ENABLE_UNRAR
|
|
libclamav_la_LIBADD = $(top_builddir)/libclamunrar_iface/libclamunrar_iface.la lzma/liblzma.la @LIBCLAMAV_LIBS@ @THREAD_LIBS@
|
|
else
|
|
libclamav_la_LIBADD = lzma/liblzma.la @LIBCLAMAV_LIBS@ @THREAD_LIBS@
|
|
endif
|
|
|
|
libclamav_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
|
|
|
|
if VERSIONSCRIPT
|
|
libclamav_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamav/libclamav.map
|
|
endif
|
|
|
|
include_HEADERS = clamav.h
|
|
|
|
libclamav_la_SOURCES = \
|
|
clamav.h \
|
|
matcher-ac.c \
|
|
matcher-ac.h \
|
|
matcher-bm.c \
|
|
matcher-bm.h \
|
|
matcher.c \
|
|
matcher.h \
|
|
md5.c \
|
|
md5.h \
|
|
others.c \
|
|
others.h \
|
|
readdb.c \
|
|
readdb.h \
|
|
cvd.c \
|
|
cvd.h \
|
|
dsig.c \
|
|
dsig.h \
|
|
str.c \
|
|
str.h \
|
|
scanners.c \
|
|
scanners.h \
|
|
textdet.c \
|
|
textdet.h \
|
|
filetypes.c \
|
|
filetypes.h \
|
|
filetypes_int.h \
|
|
rtf.c \
|
|
rtf.h \
|
|
blob.c \
|
|
blob.h \
|
|
mbox.c \
|
|
mbox.h \
|
|
message.c \
|
|
message.h \
|
|
table.c \
|
|
table.h \
|
|
text.c \
|
|
text.h \
|
|
ole2_extract.c \
|
|
ole2_extract.h \
|
|
vba_extract.c \
|
|
vba_extract.h \
|
|
cltypes.h \
|
|
msexpand.c \
|
|
msexpand.h \
|
|
pe.c \
|
|
pe.h \
|
|
disasm.c \
|
|
disasm.h \
|
|
disasmpriv.h \
|
|
upx.c \
|
|
upx.h \
|
|
htmlnorm.c \
|
|
htmlnorm.h \
|
|
chmunpack.c \
|
|
chmunpack.h \
|
|
rebuildpe.c \
|
|
rebuildpe.h \
|
|
petite.c \
|
|
petite.h \
|
|
wwunpack.c \
|
|
wwunpack.h \
|
|
unsp.c \
|
|
unsp.h \
|
|
aspack.c \
|
|
aspack.h \
|
|
packlibs.c \
|
|
packlibs.h \
|
|
fsg.c \
|
|
fsg.h \
|
|
mew.c \
|
|
mew.h \
|
|
upack.c \
|
|
upack.h \
|
|
line.c \
|
|
line.h \
|
|
untar.c \
|
|
untar.h \
|
|
unzip.c \
|
|
unzip.h \
|
|
inflate64.c \
|
|
inflate64.h \
|
|
inffixed64.h \
|
|
inflate64_priv.h \
|
|
special.c \
|
|
special.h \
|
|
binhex.c \
|
|
binhex.h \
|
|
is_tar.c \
|
|
is_tar.h \
|
|
tnef.c \
|
|
tnef.h \
|
|
autoit.c \
|
|
autoit.h \
|
|
regex/strlcpy.c \
|
|
regex/regcomp.c \
|
|
regex/regerror.c \
|
|
regex/regexec.c \
|
|
regex/regfree.c \
|
|
regex/cclass.h \
|
|
regex/cname.h \
|
|
regex/regex.h \
|
|
regex/regex2.h \
|
|
regex/utils.h \
|
|
unarj.c \
|
|
unarj.h \
|
|
nsis/bzlib.c \
|
|
nsis/bzlib_private.h \
|
|
nsis/nsis_bzlib.h \
|
|
nsis/nulsft.c \
|
|
nsis/nulsft.h \
|
|
nsis/infblock.c \
|
|
nsis/nsis_zconf.h \
|
|
nsis/nsis_zlib.h \
|
|
nsis/nsis_zutil.h \
|
|
pdf.c \
|
|
pdf.h \
|
|
spin.c \
|
|
spin.h \
|
|
yc.c \
|
|
yc.h \
|
|
elf.c \
|
|
elf.h \
|
|
execs.h \
|
|
sis.c \
|
|
sis.h \
|
|
uuencode.c \
|
|
uuencode.h \
|
|
phishcheck.c \
|
|
phishcheck.h \
|
|
phish_domaincheck_db.c \
|
|
phish_domaincheck_db.h \
|
|
phish_whitelist.c \
|
|
phish_whitelist.h \
|
|
iana_tld.h \
|
|
regex_list.c \
|
|
regex_list.h \
|
|
regex_suffix.c \
|
|
regex_suffix.h \
|
|
mspack.c \
|
|
mspack.h \
|
|
cab.c \
|
|
cab.h \
|
|
entconv.c \
|
|
entconv.h \
|
|
entitylist.h \
|
|
encoding_aliases.h \
|
|
hashtab.c \
|
|
hashtab.h \
|
|
dconf.c \
|
|
dconf.h \
|
|
lzma_iface.c \
|
|
lzma_iface.h \
|
|
explode.c \
|
|
explode.h \
|
|
textnorm.c \
|
|
textnorm.h \
|
|
dlp.c \
|
|
dlp.h \
|
|
jsparse/js-norm.c \
|
|
jsparse/js-norm.h \
|
|
jsparse/lexglobal.h \
|
|
jsparse/textbuf.h
|
|
|
|
libclamav_internal_utils_la_SOURCES=str.c \
|
|
str.h \
|
|
others.c \
|
|
others.h
|
|
|
|
libclamav_internal_utils_la_LDFLAGS=-static
|
|
libclamav_internal_utils_la_CFLAGS=-DCLI_MEMFUNSONLY
|
|
lib_LTLIBRARIES = libclamav.la
|
|
noinst_LTLIBRARIES = libclamav_internal_utils.la
|
|
EXTRA_DIST = regex/engine.c libclamav.map jsparse-keywords.gperf \
|
|
jsparse/generated/operators.h jsparse/generated/keywords.h jsparse/future_reserved_words.list\
|
|
jsparse/keywords.list jsparse/special_keywords.list jsparse/operators.gperf
|
|
|
|
if MAINTAINER_MODE
|
|
BUILT_SOURCES=jsparse/generated/operators.h jsparse/generated/keywords.h jsparse-keywords.gperf
|
|
|
|
GPERF_FLAGS=-E -t -L ANSI-C -C -F ', TOK_ERROR' -c
|
|
|
|
jsparse-keywords.gperf: jsparse/keywords.list jsparse/future_reserved_words.list jsparse/special_keywords.list
|
|
echo -e "struct keyword { const char *name; int val; };\n%%" >keywords-g-tmp
|
|
for i in `cat @srcdir@/jsparse/keywords.list`; do j=`echo $$i |tr \[a-z\] \[A-Z\]`; echo "$$i, TOK_$$j" >>keywords-g-tmp; done
|
|
for i in `cat @srcdir@/jsparse/future_reserved_words.list`; do echo "$$i, TOK_FUTURE_RESERVED_WORD" >>keywords-g-tmp; done
|
|
cat @srcdir@/jsparse/special_keywords.list >>keywords-g-tmp
|
|
mv keywords-g-tmp $@
|
|
|
|
jsparse/generated/operators.h: jsparse/operators.gperf
|
|
$(GPERF) $(GPERF_FLAGS) -H op_hash -N in_op_set -W oplist $< >operators-tmp-g
|
|
grep -v '^#line' <operators-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >operators-tmp
|
|
rm operators-tmp-g
|
|
mv operators-tmp @srcdir@/jsparse/generated/operators.h
|
|
|
|
jsparse/generated/keywords.h: jsparse-keywords.gperf
|
|
$(GPERF) $(GPERF_FLAGS) $< >keywords-tmp-g
|
|
grep -v '^#line' <keywords-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >keywords-tmp
|
|
rm keywords-tmp-g
|
|
mv keywords-tmp @srcdir@/jsparse/generated/keywords.h
|
|
|
|
CLEANFILES=jsparse-keywords.gperf @srcdir@/jsparse/generated/operators.h @srcdir@/jsparse/generated/keywords.h
|
|
endif
|
|
|