~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

« back to all changes in this revision

Viewing changes to libclamav/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        msexpand.h \
83
83
        pe.c \
84
84
        pe.h \
 
85
        disasm.c \
 
86
        disasm.h \
 
87
        disasmpriv.h \
85
88
        upx.c \
86
89
        upx.h \
87
90
        htmlnorm.c \
166
169
        phish_domaincheck_db.h \
167
170
        phish_whitelist.c \
168
171
        phish_whitelist.h \
 
172
        iana_cctld.h \
169
173
        iana_tld.h \
170
174
        regex_list.c \
171
175
        regex_list.h \
 
176
        regex_suffix.c \
 
177
        regex_suffix.h \
172
178
        mspack.c \
173
179
        mspack.h \
174
180
        cab.c \
186
192
        explode.c \
187
193
        explode.h \
188
194
        textnorm.c \
189
 
        textnorm.h
 
195
        textnorm.h \
 
196
        dlp.c \
 
197
        dlp.h \
 
198
        jsparse/js-norm.c \
 
199
        jsparse/js-norm.h \
 
200
        jsparse/lexglobal.h \
 
201
        jsparse/textbuf.h \
 
202
        uniq.c \
 
203
        uniq.h \
 
204
        version.c\
 
205
        version.h
 
206
 
 
207
.PHONY: version.h.tmp
 
208
version.lo: version.h
 
209
version.h: version.h.tmp
 
210
        @if test -f version.h.static; then\
 
211
                cp version.h.static version.h;\
 
212
        elif ! diff $@ version.h.tmp >/dev/null 2>/dev/null; then\
 
213
                cp version.h.tmp $@;\
 
214
        fi
 
215
 
 
216
version.h.tmp:
 
217
        @test -f version.h || touch version.h;\
 
218
        rm -f $@;\
 
219
        REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)";\
 
220
        if test $$REVISION = "exported"; then\
 
221
                REVISION="$$(LANG=C cd "$(top_srcdir)"; git-svn info configure 2>/dev/null| awk '/Revision:/ { print $$2 }' || echo)";\
 
222
                if test -n "$$REVISION"; then\
 
223
                        REVISION="$$REVISION-$$(LANG=C cd "$(top_srcdir)"; git-describe --always 2>/dev/null)";\
 
224
                fi;\
 
225
        fi;\
 
226
        if test -n "$$REVISION"; then\
 
227
                echo "#define REPO_VERSION \"devel-r$$REVISION\"" >> $@;\
 
228
        else\
 
229
                touch version.h.tmp;\
 
230
        fi
190
231
 
191
232
libclamav_internal_utils_la_SOURCES=str.c \
192
233
                                    str.h \
197
238
libclamav_internal_utils_la_CFLAGS=-DCLI_MEMFUNSONLY
198
239
lib_LTLIBRARIES = libclamav.la
199
240
noinst_LTLIBRARIES = libclamav_internal_utils.la
200
 
EXTRA_DIST = regex/engine.c libclamav.map
 
241
EXTRA_DIST = regex/engine.c libclamav.map \
 
242
             jsparse/generated/operators.h jsparse/generated/keywords.h jsparse/future_reserved_words.list\
 
243
             jsparse/keywords.list jsparse/special_keywords.list jsparse/operators.gperf
 
244
COMMON_CLEANFILES=version.h version.h.tmp *.gcda *.gcno lzma/*.gcda lzma/*.gcno
 
245
if MAINTAINER_MODE
 
246
BUILT_SOURCES=jsparse/generated/operators.h jsparse/generated/keywords.h jsparse-keywords.gperf
 
247
 
 
248
GPERF_FLAGS=-E -t -L ANSI-C -C -F ', TOK_ERROR' -c
 
249
 
 
250
jsparse-keywords.gperf: jsparse/keywords.list jsparse/future_reserved_words.list jsparse/special_keywords.list
 
251
        echo -e "struct keyword { const char *name; int val; };\n%%" >keywords-g-tmp
 
252
        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
 
253
        for i in `cat @srcdir@/jsparse/future_reserved_words.list`; do echo "$$i, TOK_FUTURE_RESERVED_WORD" >>keywords-g-tmp; done
 
254
        cat @srcdir@/jsparse/special_keywords.list >>keywords-g-tmp
 
255
        mv keywords-g-tmp $@
 
256
 
 
257
jsparse/generated/operators.h: jsparse/operators.gperf
 
258
        $(GPERF) $(GPERF_FLAGS) -H op_hash -N in_op_set -W oplist $< >operators-tmp-g
 
259
        grep -v '^#line' <operators-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >operators-tmp
 
260
        rm operators-tmp-g
 
261
        mv operators-tmp @srcdir@/jsparse/generated/operators.h
 
262
 
 
263
jsparse/generated/keywords.h: jsparse-keywords.gperf
 
264
        $(GPERF) $(GPERF_FLAGS) $< >keywords-tmp-g
 
265
        grep -v '^#line' <keywords-tmp-g |  sed -e 's/^const struct/static const struct/' -e 's/register //g' >keywords-tmp
 
266
        rm keywords-tmp-g
 
267
        mv keywords-tmp @srcdir@/jsparse/generated/keywords.h
 
268
 
 
269
CLEANFILES=$(COMMON_CLEANFILES) @srcdir@/jsparse/generated/operators.h @srcdir@/jsparse/generated/keywords.h
 
270
else
 
271
CLEANFILES=$(COMMON_CLEANFILES)
 
272
endif