~ubuntu-branches/ubuntu/trusty/checkpolicy/trusty

« back to all changes in this revision

Viewing changes to debian/common/copt.mk

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2012-03-27 20:22:24 UTC
  • mfrom: (1.1.17) (2.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20120327202224-6usj2w3sdksoeqs1
Tags: 2.1.8-2
* Team upload.
* Switch to debhelper sequence
* debian/control:
  - Bump Standards-Version to 3.9.3
  - Add Homepage field
  - Update Vcs-* fields
  - Make checkpolicy arch linux-any
  - Put under the Debian SELinux team maintenance
* Add debian/gbp.conf file
* debian/rules: Append CPPFLAGS hardening flags to CFLAGS as build system is
  not using CPPFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
############################ -*- Mode: Makefile -*- ###########################
2
 
## copt.mk --- 
3
 
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
4
 
## Created On       : Sat Nov 15 02:48:40 2003
5
 
## Created On Node  : glaurung.green-gryphon.com
6
 
## Last Modified By : Manoj Srivastava
7
 
## Last Modified On : Sat Nov 15 02:49:07 2003
8
 
## Last Machine Used: glaurung.green-gryphon.com
9
 
## Update Count     : 1
10
 
## Status           : Unknown, Use with caution!
11
 
## HISTORY          : 
12
 
## Description      : 
13
 
## 
14
 
## arch-tag: a0045c20-f1b3-4852-9a4b-1a33ebd7c1b8
15
 
## 
16
 
###############################################################################
17
 
 
18
 
PREFIX    := /usr
19
 
# set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is detected
20
 
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
21
 
  CC=$(DEB_HOST_GNU_TYPE)-gcc
22
 
else
23
 
  CC = cc
24
 
endif
25
 
 
26
 
# Policy 10.1 says to make this the default
27
 
CFLAGS = -Wall -g
28
 
 
29
 
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
30
 
    CFLAGS += -O0
31
 
else
32
 
    CFLAGS += -O2
33
 
endif
34
 
 
35
 
## ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
36
 
## endif
37
 
 
38
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
39
 
  STRIP   += -s
40
 
  LDFLAGS += -s
41
 
  INT_INSTALL_TARGET = install 
42
 
else
43
 
  INT_INSTALL_TARGET = install
44
 
endif