2
# Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
3
# Copyright (C) 2008 - 2013 Sourcefire, Inc.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
AM_CPPFLAGS = -I$(top_srcdir) -I@srcdir@/nsis $(LTDLINCL)
21
AM_CFLAGS=@WERR_CFLAGS@
23
EXTRA_DIST = c++/Makefile.nollvm.in
26
AM_CPPFLAGS += -DWARN_DLOPEN_FAIL
27
libclamunrar_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
30
libclamunrar_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamunrar/libclamunrar.map
33
libclamunrar_la_SOURCES = \
34
../libclamunrar/unrar15.c \
35
../libclamunrar/unrar20.h \
36
../libclamunrar/unrar.h \
37
../libclamunrar/unrar15.h \
38
../libclamunrar/unrar.c \
39
../libclamunrar/unrar20.c \
40
../libclamunrar/unrarcmd.h \
41
../libclamunrar/unrarfilter.h \
42
../libclamunrar/unrarppm.c \
43
../libclamunrar/unrarvm.c \
44
../libclamunrar/unrarcmd.c \
45
../libclamunrar/unrarfilter.c \
46
../libclamunrar/unrar.h \
47
../libclamunrar/unrarppm.h \
48
../libclamunrar/unrarvm.h \
49
../libclamunrar/unrarhlp.c \
50
../libclamunrar/unrarhlp.h
52
lib_LTLIBRARIES += libclamunrar.la
53
EXTRA_DIST += @top_srcdir@/libclamunrar/libclamunrar.map
56
libclamunrar_iface_la_LIBADD = libclamunrar.la
57
libclamunrar_iface_la_LDFLAGS = -module @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
60
libclamunrar_iface_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamunrar_iface/libclamunrar_iface.map
63
libclamunrar_iface_la_SOURCES = \
64
../libclamunrar_iface/unrar_iface.c \
65
../libclamunrar_iface/unrar_iface.h
67
lib_LTLIBRARIES += libclamunrar_iface.la
68
EXTRA_DIST += @top_srcdir@/libclamunrar_iface/libclamunrar_iface.map
70
IFACELIBADD = -dlopen libclamunrar_iface.la
71
IFACEDEP = libclamunrar_iface.la
74
libclamav_internal_utils_la_SOURCES=str.c\
96
libclamav_internal_utils_la_LDFLAGS=-static @SSL_LDFLAGS@ @JSON_LDFLAGS@
97
libclamav_internal_utils_la_CFLAGS=$(AM_CFLAGS) -fPIC -DPIC @SSL_CPPFLAGS@ @JSON_CPPFLAGS@
98
libclamav_internal_utils_la_LIBADD=@SSL_LIBS@ @JSON_LIBS@
100
libclamav_internal_utils_nothreads_la_SOURCES=str.c\
122
libclamav_internal_utils_nothreads_la_LDFLAGS=-static @SSL_LDFLAGS@ @JSON_LDFLAGS@
123
libclamav_internal_utils_nothreads_la_CFLAGS=$(AM_CFLAGS) -DCL_NOTHREADS @SSL_CPPFLAGS@ @JSON_CPPFLAGS@
124
libclamav_internal_utils_nothreads_la_LIBADD=@SSL_LIBS@ @JSON_LIBS@
127
LLVMLIBADD=c++/libclamavcxx.la -lstdc++ -lm
128
LLVMDEP=c++/libclamavcxx.la
131
LLVMLIBADD=libclamav_nocxx.la
132
LLVMDEP=libclamav_nocxx.la
133
c++/Makefile: c++/Makefile.nollvm.in
135
distclean-recursive distdir maintainer-clean-recursive: c++/Makefile
138
libclamav_nocxx_la_SOURCES = bytecode_nojit.c
139
libclamav_nocxx_la_CFLAGS=$(AM_CFLAGS) @SSL_CPPFLAGS@ @JSON_CPPFLAGS@
141
libclamav_la_LIBADD = @SSL_LIBS@ @JSON_LIBS@ @LIBCLAMAV_LIBS@ @LIBLTDL@ $(IFACELIBADD) $(LLVMLIBADD) libclamav_internal_utils.la @THREAD_LIBS@ @LIBM@
142
libclamav_la_DEPENDENCIES = @LTDLDEPS@ $(IFACEDEP) $(LLVMDEP) libclamav_internal_utils.la
143
libclamav_la_CFLAGS =$(AM_CFLAGS) $(XML_CPPFLAGS) -DSEARCH_LIBDIR=\"$(libdir)\" @LIBCLAMAV_CPPFLAGS@ @SSL_CPPFLAGS@ @JSON_CPPFLAGS@
144
libclamav_la_LDFLAGS = @SSL_LDFLAGS@ @TH_SAFE@ @JSON_LDFLAGS@ $(XML_LIBS) -version-info @LIBCLAMAV_VERSION@ -no-undefined
147
libclamav_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamav/libclamav.map
150
include_HEADERS = clamav.h
152
libclamav_la_SOURCES = \
252
nsis/bzlib_private.h \
276
phish_domaincheck_db.c \
277
phish_domaincheck_db.h \
353
jsparse/lexglobal.h \
382
bytecode_api_decl.c \
384
bytecode_api_impl.h \
448
libclamav_la_SOURCES += bignum.h\
450
tomsfastmath/addsub/fp_add.c\
451
tomsfastmath/addsub/fp_add_d.c\
452
tomsfastmath/addsub/fp_addmod.c\
453
tomsfastmath/addsub/fp_cmp.c\
454
tomsfastmath/addsub/fp_cmp_d.c\
455
tomsfastmath/addsub/fp_cmp_mag.c\
456
tomsfastmath/addsub/fp_sub.c\
457
tomsfastmath/addsub/fp_sub_d.c\
458
tomsfastmath/addsub/fp_submod.c\
459
tomsfastmath/addsub/s_fp_add.c\
460
tomsfastmath/addsub/s_fp_sub.c\
461
tomsfastmath/bin/fp_radix_size.c\
462
tomsfastmath/bin/fp_read_radix.c\
463
tomsfastmath/bin/fp_read_signed_bin.c\
464
tomsfastmath/bin/fp_read_unsigned_bin.c\
465
tomsfastmath/bin/fp_reverse.c\
466
tomsfastmath/bin/fp_s_rmap.c\
467
tomsfastmath/bin/fp_signed_bin_size.c\
468
tomsfastmath/bin/fp_to_signed_bin.c\
469
tomsfastmath/bin/fp_to_unsigned_bin.c\
470
tomsfastmath/bin/fp_toradix.c\
471
tomsfastmath/bin/fp_toradix_n.c\
472
tomsfastmath/bin/fp_unsigned_bin_size.c\
473
tomsfastmath/bit/fp_cnt_lsb.c\
474
tomsfastmath/bit/fp_count_bits.c\
475
tomsfastmath/bit/fp_div_2.c\
476
tomsfastmath/bit/fp_div_2d.c\
477
tomsfastmath/bit/fp_lshd.c\
478
tomsfastmath/bit/fp_mod_2d.c\
479
tomsfastmath/bit/fp_rshd.c\
480
tomsfastmath/divide/fp_div.c\
481
tomsfastmath/divide/fp_div_d.c\
482
tomsfastmath/divide/fp_mod.c\
483
tomsfastmath/divide/fp_mod_d.c\
484
tomsfastmath/exptmod/fp_2expt.c\
485
tomsfastmath/exptmod/fp_exptmod.c\
486
tomsfastmath/misc/fp_ident.c\
487
tomsfastmath/misc/fp_set.c\
488
tomsfastmath/mont/fp_montgomery_calc_normalization.c\
489
tomsfastmath/mont/fp_montgomery_reduce.c\
490
tomsfastmath/mont/fp_montgomery_setup.c\
491
tomsfastmath/mul/fp_mul.c\
492
tomsfastmath/mul/fp_mul_comba.c\
493
tomsfastmath/mul/fp_mul_2.c\
494
tomsfastmath/mul/fp_mul_2d.c\
495
tomsfastmath/mul/fp_mul_comba_12.c\
496
tomsfastmath/mul/fp_mul_comba_17.c\
497
tomsfastmath/mul/fp_mul_comba_20.c\
498
tomsfastmath/mul/fp_mul_comba_24.c\
499
tomsfastmath/mul/fp_mul_comba_28.c\
500
tomsfastmath/mul/fp_mul_comba_3.c\
501
tomsfastmath/mul/fp_mul_comba_32.c\
502
tomsfastmath/mul/fp_mul_comba_4.c\
503
tomsfastmath/mul/fp_mul_comba_48.c\
504
tomsfastmath/mul/fp_mul_comba_6.c\
505
tomsfastmath/mul/fp_mul_comba_64.c\
506
tomsfastmath/mul/fp_mul_comba_7.c\
507
tomsfastmath/mul/fp_mul_comba_8.c\
508
tomsfastmath/mul/fp_mul_comba_9.c\
509
tomsfastmath/mul/fp_mul_comba_small_set.c\
510
tomsfastmath/mul/fp_mul_d.c\
511
tomsfastmath/mul/fp_mulmod.c\
512
tomsfastmath/numtheory/fp_invmod.c\
513
tomsfastmath/sqr/fp_sqr.c\
514
tomsfastmath/sqr/fp_sqr_comba_12.c\
515
tomsfastmath/sqr/fp_sqr_comba_17.c\
516
tomsfastmath/sqr/fp_sqr_comba_20.c\
517
tomsfastmath/sqr/fp_sqr_comba_24.c\
518
tomsfastmath/sqr/fp_sqr_comba_28.c\
519
tomsfastmath/sqr/fp_sqr_comba_3.c\
520
tomsfastmath/sqr/fp_sqr_comba_32.c\
521
tomsfastmath/sqr/fp_sqr_comba_4.c\
522
tomsfastmath/sqr/fp_sqr_comba_48.c\
523
tomsfastmath/sqr/fp_sqr_comba_6.c\
524
tomsfastmath/sqr/fp_sqr_comba_64.c\
525
tomsfastmath/sqr/fp_sqr_comba_7.c\
526
tomsfastmath/sqr/fp_sqr_comba_8.c\
527
tomsfastmath/sqr/fp_sqr_comba_9.c\
528
tomsfastmath/sqr/fp_sqr_comba_generic.c\
529
tomsfastmath/sqr/fp_sqr_comba_small_set.c\
530
tomsfastmath/sqr/fp_sqrmod.c
532
.PHONY: version.h.tmp
534
version.h: version.h.tmp
535
$(AM_V_GEN) if test -f version.h.static; then\
536
cp version.h.static version.h;\
537
elif ! diff $@ version.h.tmp >/dev/null 2>/dev/null; then\
538
cp version.h.tmp $@;\
542
$(AM_V_GEN) test -f version.h || touch version.h;\
544
REVISION="$$(LANG=C cd "$(top_srcdir)"; git describe --always 2>/dev/null || echo "exported")";\
545
if test "$$REVISION" = "exported"; then\
548
if test -n "$$REVISION"; then\
549
echo "#define REPO_VERSION \"devel-$$REVISION\"" >> $@;\
551
touch version.h.tmp;\
554
lib_LTLIBRARIES += libclamav.la
555
noinst_LTLIBRARIES = libclamav_internal_utils.la libclamav_internal_utils_nothreads.la libclamav_nocxx.la
556
EXTRA_DIST += regex/engine.c tomsfastmath/sqr/fp_sqr_comba.c tomsfastmath/mul/fp_mul_comba.c libclamav.map \
557
jsparse/generated/operators.h jsparse/generated/keywords.h jsparse/future_reserved_words.list\
558
jsparse/keywords.list jsparse/special_keywords.list jsparse/operators.gperf
559
COMMON_CLEANFILES=version.h version.h.tmp *.gcda *.gcno
561
BUILT_SOURCES=jsparse/generated/operators.h jsparse/generated/keywords.h jsparse-keywords.gperf
563
GPERF_FLAGS=-E -t -L ANSI-C -C -F ', TOK_ERROR' -c
565
jsparse-keywords.gperf: jsparse/keywords.list jsparse/future_reserved_words.list jsparse/special_keywords.list
566
echo -e "struct keyword { const char *name; int val; };\n%%" >keywords-g-tmp
567
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
568
for i in `cat @srcdir@/jsparse/future_reserved_words.list`; do echo "$$i, TOK_FUTURE_RESERVED_WORD" >>keywords-g-tmp; done
569
cat @srcdir@/jsparse/special_keywords.list >>keywords-g-tmp
572
jsparse/generated/operators.h: jsparse/operators.gperf
573
$(GPERF) $(GPERF_FLAGS) -H op_hash -N in_op_set -W oplist $< >operators-tmp-g
574
grep -v '^#line' <operators-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >operators-tmp
576
mv operators-tmp @srcdir@/jsparse/generated/operators.h
578
jsparse/generated/keywords.h: jsparse-keywords.gperf
579
$(GPERF) $(GPERF_FLAGS) $< >keywords-tmp-g
580
grep -v '^#line' <keywords-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >keywords-tmp
582
mv keywords-tmp @srcdir@/jsparse/generated/keywords.h
584
CLEANFILES=$(COMMON_CLEANFILES) @srcdir@/jsparse/generated/operators.h @srcdir@/jsparse/generated/keywords.h
586
CLEANFILES=$(COMMON_CLEANFILES)