~ubuntu-branches/ubuntu/wily/clamav/wily-proposed

« back to all changes in this revision

Viewing changes to .pc/0005-libclamav-use-libmspack.patch/libclamav/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Sebastian Andrzej Siewior, Andreas Cadhalpun, Scott Kitterman, Javier Fernández-Sanguino
  • Date: 2015-01-28 00:25:13 UTC
  • mfrom: (0.48.14 sid)
  • Revision ID: package-import@ubuntu.com-20150128002513-lil2oi74cooy4lzr
Tags: 0.98.6+dfsg-1
[ Sebastian Andrzej Siewior ]
* update "fix-ssize_t-size_t-off_t-printf-modifier", include of misc.h was
  missing but was pulled in via the systemd patch.
* Don't leak return codes from libmspack to clamav API. (Closes: #774686).

[ Andreas Cadhalpun ]
* Add patch to avoid emitting incremental progress messages when not
  outputting to a terminal. (Closes: #767350)
* Update lintian-overrides for unused-file-paragraph-in-dep5-copyright.
* clamav-base.postinst: always chown /var/log/clamav and /var/lib/clamav
  to clamav:clamav, not only on fresh installations. (Closes: #775400)
* Adapt the clamav-daemon and clamav-freshclam logrotate scripts,
  so that they correctly work under systemd.
* Move the PidFile variable from the clamd/freshclam configuration files
  to the init scripts. This makes the init scripts more robust against
  misconfiguration and avoids error messages with systemd. (Closes: #767353)
* debian/copyright: drop files from Files-Excluded only present in github
  tarballs
* Drop Workaround-a-bug-in-libc-on-Hurd.patch, because hurd got fixed.
  (see #752237)
* debian/rules: Remove useless --with-system-tommath --without-included-ltdl
  configure options.

[ Scott Kitterman ]
* Stop stripping llvm when repacking the tarball as the system llvm on some
  releases is too old to use
* New upstream bugfix release
  - Library shared object revisions.
  - Includes a patch from Sebastian Andrzej Siewior making ClamAV pid files
    compatible with systemd.
  - Fix a heap out of bounds condition with crafted Yoda's crypter files.
    This issue was discovered by Felix Groebert of the Google Security Team.
  - Fix a heap out of bounds condition with crafted mew packer files. This
    issue was discovered by Felix Groebert of the Google Security Team.
  - Fix a heap out of bounds condition with crafted upx packer files. This
    issue was discovered by Kevin Szkudlapski of Quarkslab.
  - Fix a heap out of bounds condition with crafted upack packer files. This
    issue was discovered by Sebastian Andrzej Siewior. CVE-2014-9328.
  - Compensate a crash due to incorrect compiler optimization when handling
    crafted petite packer files. This issue was discovered by Sebastian
    Andrzej Siewior.
* Update lintian override for embedded zlib to match new so version

[ Javier Fernández-Sanguino ]
* Updated Spanish Debconf template translation (Closes: #773563)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#  Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
 
3
#  Copyright (C) 2008 - 2013 Sourcefire, Inc.
 
4
#
 
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.
 
9
#
 
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.
 
14
#
 
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,
 
18
#  MA 02110-1301, USA.
 
19
 
 
20
AM_CPPFLAGS = -I$(top_srcdir) -I@srcdir@/nsis $(LTDLINCL)
 
21
AM_CFLAGS=@WERR_CFLAGS@
 
22
lib_LTLIBRARIES =
 
23
EXTRA_DIST = c++/Makefile.nollvm.in
 
24
if ENABLE_UNRAR
 
25
 
 
26
AM_CPPFLAGS += -DWARN_DLOPEN_FAIL
 
27
libclamunrar_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
 
28
 
 
29
if VERSIONSCRIPT
 
30
libclamunrar_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamunrar/libclamunrar.map
 
31
endif
 
32
 
 
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
 
51
 
 
52
lib_LTLIBRARIES += libclamunrar.la
 
53
EXTRA_DIST += @top_srcdir@/libclamunrar/libclamunrar.map
 
54
 
 
55
 
 
56
libclamunrar_iface_la_LIBADD = libclamunrar.la
 
57
libclamunrar_iface_la_LDFLAGS = -module @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
 
58
 
 
59
if VERSIONSCRIPT
 
60
libclamunrar_iface_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamunrar_iface/libclamunrar_iface.map
 
61
endif
 
62
 
 
63
libclamunrar_iface_la_SOURCES = \
 
64
        ../libclamunrar_iface/unrar_iface.c \
 
65
        ../libclamunrar_iface/unrar_iface.h
 
66
 
 
67
lib_LTLIBRARIES += libclamunrar_iface.la
 
68
EXTRA_DIST += @top_srcdir@/libclamunrar_iface/libclamunrar_iface.map
 
69
 
 
70
IFACELIBADD = -dlopen libclamunrar_iface.la
 
71
IFACEDEP = libclamunrar_iface.la
 
72
endif
 
73
 
 
74
libclamav_internal_utils_la_SOURCES=str.c\
 
75
                                    str.h\
 
76
                                        conv.c \
 
77
                                        conv.h \
 
78
                                        crypto.c \
 
79
                                        clamav.h \
 
80
                                    iowrap.c \
 
81
                                    iowrap.h \
 
82
                                    others_common.c \
 
83
                                    others.h \
 
84
                                    qsort.c \
 
85
                                    regex/strlcpy.c \
 
86
                                    regex/regcomp.c \
 
87
                                    regex/regerror.c \
 
88
                                    regex/regexec.c \
 
89
                                    regex/regfree.c \
 
90
                                    regex/cclass.h \
 
91
                                    regex/cname.h \
 
92
                                    regex/regex.h \
 
93
                                    regex/regex2.h \
 
94
                                    regex/utils.h
 
95
 
 
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@
 
99
 
 
100
libclamav_internal_utils_nothreads_la_SOURCES=str.c\
 
101
                                        conv.c \
 
102
                                        conv.h \
 
103
                                        crypto.c \
 
104
                                        clamav.h \
 
105
                                    str.h\
 
106
                                    iowrap.c \
 
107
                                    iowrap.h \
 
108
                                    others_common.c \
 
109
                                    others.h \
 
110
                                    qsort.c \
 
111
                                    regex/strlcpy.c \
 
112
                                    regex/regcomp.c \
 
113
                                    regex/regerror.c \
 
114
                                    regex/regexec.c \
 
115
                                    regex/regfree.c \
 
116
                                    regex/cclass.h \
 
117
                                    regex/cname.h \
 
118
                                    regex/regex.h \
 
119
                                    regex/regex2.h \
 
120
                                    regex/utils.h
 
121
 
 
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@
 
125
 
 
126
if ENABLE_LLVM
 
127
LLVMLIBADD=c++/libclamavcxx.la -lstdc++ -lm
 
128
LLVMDEP=c++/libclamavcxx.la
 
129
SUBDIRS=c++
 
130
else
 
131
LLVMLIBADD=libclamav_nocxx.la
 
132
LLVMDEP=libclamav_nocxx.la
 
133
c++/Makefile: c++/Makefile.nollvm.in
 
134
        $(AM_V_at) cp $< $@
 
135
distclean-recursive distdir maintainer-clean-recursive: c++/Makefile
 
136
endif
 
137
 
 
138
libclamav_nocxx_la_SOURCES = bytecode_nojit.c
 
139
libclamav_nocxx_la_CFLAGS=$(AM_CFLAGS) @SSL_CPPFLAGS@ @JSON_CPPFLAGS@
 
140
 
 
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
 
145
 
 
146
if VERSIONSCRIPT
 
147
libclamav_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamav/libclamav.map
 
148
endif
 
149
 
 
150
include_HEADERS = clamav.h
 
151
 
 
152
libclamav_la_SOURCES = \
 
153
        matcher-ac.c \
 
154
        matcher-ac.h \
 
155
        matcher-bm.c \
 
156
        matcher-bm.h \
 
157
        matcher-hash.c \
 
158
        matcher-hash.h \
 
159
        matcher.c \
 
160
        matcher.h \
 
161
        others.c \
 
162
        others.h \
 
163
        readdb.c \
 
164
        readdb.h \
 
165
        cvd.c \
 
166
        cvd.h \
 
167
        dsig.c \
 
168
        dsig.h \
 
169
        scanners.c \
 
170
        scanners.h \
 
171
        textdet.c \
 
172
        textdet.h \
 
173
        filetypes.c \
 
174
        filetypes.h \
 
175
        filetypes_int.h \
 
176
        rtf.c \
 
177
        rtf.h \
 
178
        blob.c \
 
179
        blob.h \
 
180
        mbox.c \
 
181
        mbox.h \
 
182
        message.c \
 
183
        message.h \
 
184
        table.c \
 
185
        table.h \
 
186
        text.c \
 
187
        text.h \
 
188
        ole2_extract.c \
 
189
        ole2_extract.h \
 
190
        vba_extract.c \
 
191
        vba_extract.h \
 
192
        cltypes.h \
 
193
        msexpand.c \
 
194
        msexpand.h \
 
195
        pe.c \
 
196
        pe.h \
 
197
        pe_icons.c \
 
198
        pe_icons.h \
 
199
        disasm.c \
 
200
        disasm.h \
 
201
        disasm-common.h \
 
202
        disasmpriv.h \
 
203
        upx.c \
 
204
        upx.h \
 
205
        htmlnorm.c \
 
206
        htmlnorm.h \
 
207
        chmunpack.c \
 
208
        chmunpack.h \
 
209
        rebuildpe.c \
 
210
        rebuildpe.h \
 
211
        petite.c \
 
212
        petite.h \
 
213
        wwunpack.c \
 
214
        wwunpack.h \
 
215
        unsp.c \
 
216
        unsp.h \
 
217
        aspack.c \
 
218
        aspack.h \
 
219
        packlibs.c \
 
220
        packlibs.h \
 
221
        fsg.c \
 
222
        fsg.h \
 
223
        mew.c \
 
224
        mew.h \
 
225
        upack.c \
 
226
        upack.h \
 
227
        line.c \
 
228
        line.h \
 
229
        untar.c \
 
230
        untar.h \
 
231
        unzip.c \
 
232
        unzip.h \
 
233
        ooxml.c \
 
234
        ooxml.h \
 
235
        inflate64.c \
 
236
        inflate64.h \
 
237
        inffixed64.h \
 
238
        inflate64_priv.h \
 
239
        special.c \
 
240
        special.h \
 
241
        binhex.c \
 
242
        binhex.h \
 
243
        is_tar.c \
 
244
        is_tar.h \
 
245
        tnef.c \
 
246
        tnef.h \
 
247
        autoit.c \
 
248
        autoit.h \
 
249
        unarj.c \
 
250
        unarj.h \
 
251
        nsis/bzlib.c \
 
252
        nsis/bzlib_private.h \
 
253
        nsis/nsis_bzlib.h \
 
254
        nsis/nulsft.c \
 
255
        nsis/nulsft.h \
 
256
        nsis/infblock.c \
 
257
        nsis/nsis_zconf.h \
 
258
        nsis/nsis_zlib.h \
 
259
        nsis/nsis_zutil.h \
 
260
        pdf.c \
 
261
        pdf.h \
 
262
        pdfng.c \
 
263
        spin.c \
 
264
        spin.h \
 
265
        yc.c \
 
266
        yc.h \
 
267
        elf.c \
 
268
        elf.h \
 
269
        execs.h \
 
270
        sis.c \
 
271
        sis.h \
 
272
        uuencode.c \
 
273
        uuencode.h \
 
274
        phishcheck.c \
 
275
        phishcheck.h \
 
276
        phish_domaincheck_db.c \
 
277
        phish_domaincheck_db.h \
 
278
        phish_whitelist.c \
 
279
        phish_whitelist.h \
 
280
        iana_cctld.h \
 
281
        iana_tld.h \
 
282
        regex_list.c \
 
283
        regex_list.h \
 
284
        regex_suffix.c \
 
285
        regex_suffix.h \
 
286
        mspack.c \
 
287
        mspack.h \
 
288
        cab.c \
 
289
        cab.h \
 
290
        entconv.c \
 
291
        entconv.h \
 
292
        entitylist.h \
 
293
        encoding_aliases.h \
 
294
        hashtab.c \
 
295
        hashtab.h \
 
296
        dconf.c \
 
297
        dconf.h \
 
298
        lzma_iface.c \
 
299
        lzma_iface.h \
 
300
        7z_iface.c \
 
301
        7z_iface.h \
 
302
        7z/7z.h \
 
303
        7z/7zAlloc.c \
 
304
        7z/7zAlloc.h \
 
305
        7z/7zBuf.c \
 
306
        7z/7zBuf.h \
 
307
        7z/7zBuf2.c \
 
308
        7z/7zCrc.c \
 
309
        7z/7zCrc.h \
 
310
        7z/7zDec.c \
 
311
        7z/7zFile.c \
 
312
        7z/7zFile.h \
 
313
        7z/7zIn.c \
 
314
        7z/7zStream.c \
 
315
        7z/7zVersion.h \
 
316
        7z/Bcj2.c \
 
317
        7z/Bcj2.h \
 
318
        7z/Bra.c \
 
319
        7z/Bra.h \
 
320
        7z/Bra86.c \
 
321
        7z/CpuArch.h \
 
322
        7z/Lzma2Dec.c \
 
323
        7z/Lzma2Dec.h \
 
324
        7z/LzmaDec.c \
 
325
        7z/LzmaDec.h \
 
326
        7z/Ppmd.h \
 
327
        7z/Ppmd7.c \
 
328
        7z/Ppmd7.h \
 
329
        7z/Ppmd7Dec.c \
 
330
        7z/Types.h \
 
331
        7z/Xz.c \
 
332
        7z/Xz.h \
 
333
        7z/XzCrc64.c \
 
334
        7z/XzCrc64.h \
 
335
        7z/XzDec.c \
 
336
        7z/XzIn.c \
 
337
        7z/Delta.c \
 
338
        7z/Delta.h \
 
339
        7z/Alloc.h \
 
340
        7z/BraIA64.c \
 
341
        7z/CpuArch.c \
 
342
        7z/CpuArch.h \
 
343
        7z/7zCrcOpt.c \
 
344
        7z/RotateDefs.h \
 
345
        explode.c \
 
346
        explode.h \
 
347
        textnorm.c \
 
348
        textnorm.h \
 
349
        dlp.c \
 
350
        dlp.h \
 
351
        jsparse/js-norm.c \
 
352
        jsparse/js-norm.h \
 
353
        jsparse/lexglobal.h \
 
354
        jsparse/textbuf.h \
 
355
        uniq.c \
 
356
        uniq.h \
 
357
        version.c\
 
358
        version.h\
 
359
        mpool.c\
 
360
        mpool.h \
 
361
        filtering.h\
 
362
        filtering.c\
 
363
        fmap.c \
 
364
        fmap.h \
 
365
        perflogging.c\
 
366
        perflogging.h\
 
367
        default.h\
 
368
        bytecode.c\
 
369
        bytecode.h\
 
370
        bytecode_vm.c\
 
371
        bytecode_priv.h\
 
372
        clambc.h \
 
373
        cpio.c \
 
374
        cpio.h \
 
375
        macho.c \
 
376
        macho.h \
 
377
        ishield.c \
 
378
        ishield.h \
 
379
        type_desc.h \
 
380
        bcfeatures.h \
 
381
        bytecode_api.c \
 
382
        bytecode_api_decl.c \
 
383
        bytecode_api.h \
 
384
        bytecode_api_impl.h \
 
385
        bytecode_hooks.h \
 
386
        cache.c \
 
387
        cache.h \
 
388
        bytecode_detect.c \
 
389
        bytecode_detect.h\
 
390
        builtin_bytecodes.h\
 
391
        events.c\
 
392
        events.h \
 
393
        adc.c \
 
394
        adc.h \
 
395
        dmg.c \
 
396
        dmg.h \
 
397
        xar.c \
 
398
        xar.h \
 
399
        xdp.c \
 
400
        xdp.h \
 
401
        mbr.c \
 
402
        mbr.h \
 
403
        gpt.c \
 
404
        gpt.h \
 
405
        apm.c \
 
406
        apm.h \
 
407
        prtn_intxn.c \
 
408
        prtn_intxn.h \
 
409
        json_api.c\
 
410
        json_api.h\
 
411
        xz_iface.c \
 
412
        xz_iface.h \
 
413
        sf_base64decode.c \
 
414
        sf_base64decode.h \
 
415
        hfsplus.c \
 
416
        hfsplus.h \
 
417
        swf.c \
 
418
        swf.h \
 
419
        jpeg.c \
 
420
        jpeg.h \
 
421
        png.c \
 
422
        png.h \
 
423
        iso9660.c \
 
424
        iso9660.h \
 
425
        arc4.c \
 
426
        arc4.h \
 
427
        rijndael.c \
 
428
        rijndael.h \
 
429
        crtmgr.c \
 
430
        crtmgr.h \
 
431
        asn1.c \
 
432
        asn1.h \
 
433
        fpu.c \
 
434
        fpu.h \
 
435
        stats.c \
 
436
        stats.h \
 
437
        www.c \
 
438
        www.h \
 
439
        stats_json.c \
 
440
        stats_json.h \
 
441
        hostid.c \
 
442
        hostid.h \
 
443
        openioc.c \
 
444
        openioc.h \
 
445
        msdoc.c \
 
446
        msdoc.h
 
447
 
 
448
libclamav_la_SOURCES += bignum.h\
 
449
        bignum_fast.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
 
531
 
 
532
.PHONY: version.h.tmp
 
533
version.c: version.h
 
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 $@;\
 
539
        fi
 
540
 
 
541
version.h.tmp:
 
542
        $(AM_V_GEN) test -f version.h || touch version.h;\
 
543
        rm -f $@;\
 
544
        REVISION="$$(LANG=C cd "$(top_srcdir)"; git describe --always 2>/dev/null || echo "exported")";\
 
545
        if test "$$REVISION" = "exported"; then\
 
546
            REVISION="";\
 
547
        fi;\
 
548
        if test -n "$$REVISION"; then\
 
549
                echo "#define REPO_VERSION \"devel-$$REVISION\"" >> $@;\
 
550
        else\
 
551
                touch version.h.tmp;\
 
552
        fi
 
553
 
 
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
 
560
if MAINTAINER_MODE
 
561
BUILT_SOURCES=jsparse/generated/operators.h jsparse/generated/keywords.h jsparse-keywords.gperf
 
562
 
 
563
GPERF_FLAGS=-E -t -L ANSI-C -C -F ', TOK_ERROR' -c
 
564
 
 
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
 
570
        mv keywords-g-tmp $@
 
571
 
 
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
 
575
        rm operators-tmp-g
 
576
        mv operators-tmp @srcdir@/jsparse/generated/operators.h
 
577
 
 
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
 
581
        rm keywords-tmp-g
 
582
        mv keywords-tmp @srcdir@/jsparse/generated/keywords.h
 
583
 
 
584
CLEANFILES=$(COMMON_CLEANFILES) @srcdir@/jsparse/generated/operators.h @srcdir@/jsparse/generated/keywords.h
 
585
else
 
586
CLEANFILES=$(COMMON_CLEANFILES)
 
587
endif