File: copt.mk

package info (click to toggle)
policycoreutils 2.0.82-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,584 kB
  • ctags: 727
  • sloc: ansic: 5,661; python: 2,427; sh: 474; makefile: 442
file content (44 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (43)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
############################ -*- Mode: Makefile -*- ###########################
## copt.mk --- 
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
## Created On       : Sat Nov 15 02:48:40 2003
## Created On Node  : glaurung.green-gryphon.com
## Last Modified By : Manoj Srivastava
## Last Modified On : Sat Nov 15 02:49:07 2003
## Last Machine Used: glaurung.green-gryphon.com
## Update Count     : 1
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: a0045c20-f1b3-4852-9a4b-1a33ebd7c1b8
## 
###############################################################################

PREFIX    := /usr
# set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is detected
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  CC=$(DEB_HOST_GNU_TYPE)-gcc
else
  CC = cc
endif

# Policy 10.1 says to make this the default
CFLAGS = -Wall -g

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
    CFLAGS += -O0
else
    CFLAGS += -O2
endif

## ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
## endif

ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  STRIP   += -s
  LDFLAGS += -s
  INT_INSTALL_TARGET = install 
else
  INT_INSTALL_TARGET = install
endif