~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/Makefile.tests

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##----------------------------------------------------------*- Makefile -*-===##
 
2
##
 
3
## Common rules for generating, linking, and compiling via LLVM.  This is
 
4
## used to implement a robust testing framework for LLVM
 
5
##
 
6
##-------------------------------------------------------------------------===##
 
7
 
 
8
# If the user specified a TEST= option on the command line, we do not want to do
 
9
# the default testing type.  Instead, we change the default target to be the
 
10
# test:: target.
 
11
#
 
12
ifdef TEST
 
13
test::
 
14
endif
 
15
 
 
16
# We do not want to make .d files for tests! 
 
17
DISABLE_AUTO_DEPENDENCIES=1
 
18
 
 
19
include ${LEVEL}/Makefile.common
 
20
 
 
21
# Specify ENABLE_STATS on the command line to enable -stats and -time-passes
 
22
# output from gccas and gccld.
 
23
ifdef ENABLE_STATS
 
24
STATS = -stats -time-passes
 
25
endif
 
26
 
 
27
.PHONY: clean default
 
28
 
 
29
# These files, which might be intermediate results, should not be deleted by
 
30
# make
 
31
.PRECIOUS: Output/%.bc  Output/%.ll
 
32
.PRECIOUS: Output/%.tbc Output/%.tll
 
33
.PRECIOUS: Output/.dir
 
34
.PRECIOUS: Output/%.llvm.bc
 
35
.PRECIOUS: Output/%.llvm
 
36
 
 
37
LCCFLAGS  += -O2 -Wall
 
38
LCXXFLAGS += -O2 -Wall
 
39
LLCFLAGS =
 
40
TESTRUNR = @echo Running test: $<; \
 
41
             PATH="$(LLVMTOOLCURRENT):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \
 
42
                  $(LLVM_SRC_ROOT)/test/TestRunner.sh
 
43
 
 
44
LLCLIBS := $(LLCLIBS) -lm
 
45
 
 
46
clean::
 
47
        $(RM) -f a.out core
 
48
        $(RM) -rf Output/
 
49
 
 
50
# Compile from X.c to Output/X.ll
 
51
Output/%.ll: %.c $(LCC1) Output/.dir $(INCLUDES)
 
52
        -$(LLVMCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@
 
53
 
 
54
# Compile from X.cpp to Output/X.ll
 
55
Output/%.ll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
 
56
        -$(LLVMCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
 
57
 
 
58
# Compile from X.cc to Output/X.ll
 
59
Output/%.ll: %.cc $(LCC1XX) Output/.dir $(INCLUDES)
 
60
        -$(LLVMCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
 
61
 
 
62
# LLVM Assemble from Output/X.ll to Output/X.bc.  Output/X.ll must have come
 
63
# from GCC output, so use GCCAS.
 
64
#
 
65
Output/%.bc: Output/%.ll $(LGCCAS)
 
66
        -$(LGCCAS) $(STATS) $< -o $@
 
67
 
 
68
# LLVM Assemble from X.ll to Output/X.bc.  Because we are coming directly from
 
69
# LLVM source, use the non-transforming assembler.
 
70
#
 
71
Output/%.bc: %.ll $(LLVMAS) Output/.dir
 
72
        -$(LLVMAS) $< -o $@
 
73
 
 
74
## Cancel built-in implicit rules that override above rules
 
75
%: %.s
 
76
 
 
77
%: %.c
 
78
 
 
79
%.o: %.c
 
80