~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/utils/buildit/GNUmakefile

  • 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
# LLVM LOCAL file build machinery
 
2
# LLVM Compiler Makefile for use by buildit.  
 
3
#
 
4
# This makefile is intended only for use with B&I buildit. For "normal" builds
 
5
# use the conventional top-level makefile.
 
6
#
 
7
# You can specify TARGETS=ppc (or i386) on the buildit command line to limit the
 
8
# build to just one target. The default is for ppc and i386. The compiler
 
9
# targetted at this host gets built anyway, but not installed unless it's listed
 
10
# in TARGETS.
 
11
 
 
12
# Include the set of standard Apple makefile definitions.
 
13
ifndef CoreOSMakefiles
 
14
CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
 
15
endif
 
16
include $(CoreOSMakefiles)/Standard/Standard.make
 
17
 
 
18
# Enable Apple extensions to (gnu)make.
 
19
USE_APPLE_PB_SUPPORT = all
 
20
 
 
21
RC_ARCHS := ppc i386
 
22
HOSTS = $(RC_ARCHS)
 
23
targets = echo $(RC_ARCHS)
 
24
TARGETS := $(shell $(targets))
 
25
 
 
26
SRCROOT = .
 
27
 
 
28
SRC = $(shell cd $(SRCROOT) && pwd | sed s,/private,,)
 
29
OBJROOT = $(SRC)/obj
 
30
SYMROOT = $(OBJROOT)/../sym
 
31
DSTROOT = $(OBJROOT)/../dst
 
32
 
 
33
#######################################################################
 
34
 
 
35
PREFIX = /usr/local
 
36
 
 
37
# Unless assertions are forced on in the GMAKE command line, disable them.
 
38
ifndef ENABLE_ASSERTIONS
 
39
ENABLE_ASSERTIONS := no
 
40
endif
 
41
 
 
42
# Default is optimized build.
 
43
ifeq ($(LLVM_DEBUG),1)
 
44
LLVM_OPTIMIZED := no
 
45
else
 
46
LLVM_OPTIMIZED := yes
 
47
endif
 
48
 
 
49
ifndef RC_ProjectSourceVersion
 
50
RC_ProjectSourceVersion = 9999
 
51
endif
 
52
 
 
53
ifndef RC_ProjectSourceSubversion
 
54
RC_ProjectSourceSubversion = 0
 
55
endif
 
56
 
 
57
# NOTE : Always put version numbers at the end because they are optional.
 
58
install: $(OBJROOT) $(SYMROOT) $(DSTROOT)
 
59
        cd $(OBJROOT) && \
 
60
          $(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \
 
61
            $(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \
 
62
            $(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) \
 
63
            $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) 
 
64
 
 
65
 
 
66
# installhdrs does nothing, because the headers aren't useful until
 
67
# the compiler is installed.
 
68
installhdrs:
 
69
 
 
70
# We build and install in one shell script.
 
71
build: 
 
72
 
 
73
installsrc:
 
74
        @echo
 
75
        @echo ++++++++++++++++++++++
 
76
        @echo + Installing sources +
 
77
        @echo ++++++++++++++++++++++
 
78
        @echo
 
79
        if [ $(SRCROOT) != . ]; then \
 
80
          $(PAX) -rw . $(SRCROOT); \
 
81
        fi
 
82
        find -d "$(SRCROOT)" \( -type d -a -name .svn -o \
 
83
                                -type f -a -name .DS_Store -o \
 
84
                                -name \*~ -o -name .\#\* \) \
 
85
          -exec rm -rf {} \;
 
86
        rm -rf "$(SRCROOT)/test"
 
87
 
 
88
#######################################################################
 
89
 
 
90
clean:
 
91
        @echo
 
92
        @echo ++++++++++++
 
93
        @echo + Cleaning +
 
94
        @echo ++++++++++++
 
95
        @echo
 
96
        @if [ -d $(OBJROOT) -a "$(OBJROOT)" != / ]; then \
 
97
          echo '*** DELETING ' $(OBJROOT); \
 
98
          rm -rf $(OBJROOT); \
 
99
        fi
 
100
        @if [ -d $(SYMROOT) -a "$(SYMROOT)" != / ]; then \
 
101
          echo '*** DELETING ' $(SYMROOT); \
 
102
          rm -rf $(SYMROOT); \
 
103
        fi
 
104
        @if [ -d $(DSTROOT) -a "$(DSTROOT)" != / ]; then \
 
105
          echo '*** DELETING ' $(DSTROOT); \
 
106
          rm -rf $(DSTROOT); \
 
107
        fi
 
108
 
 
109
#######################################################################
 
110
 
 
111
$(OBJROOT) $(SYMROOT) $(DSTROOT):
 
112
        mkdir -p $@
 
113
 
 
114
.PHONY: install installsrc clean