~ubuntu-branches/ubuntu/oneiric/isomd5sum/oneiric

« back to all changes in this revision

Viewing changes to Makefile.inc

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Finnie
  • Date: 2008-02-12 20:50:55 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080212205055-ok7t538if9lctyws
Tags: 1:1.0.4-1
* New upstream version.
* Epoch added, upstream re-worked into standalone package
* debian/control: new homepage/git
* debian/control: clarified description
* Removed sgml documentation (manpages moved upstream)
* Added watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# define destination locations
3
 
#
4
 
PYTHONLIBDIR = /usr/lib/anaconda
5
 
RUNTIMEDIR = /usr/lib/anaconda-runtime
6
 
ANACONDADATADIR = /usr/share/anaconda
7
 
PYVER  := $(shell python -c 'import sys; print sys.version[0:3]')
8
 
PYTHON = python$(PYVER)
9
 
PYTHONINCLUDE = /usr/include/$(PYTHON)
10
 
 
11
 
ARCH := $(patsubst i%86,i386,$(shell uname -m))
12
 
ARCH := $(patsubst sparc%,sparc,$(ARCH))
13
 
ARCH := $(patsubst ppc%,ppc,$(ARCH))
14
 
FULLARCH := $(shell uname -m)
15
 
 
16
 
ifneq (,$(filter ppc64 x86_64 s390x,$(FULLARCH)))
17
 
LIBDIR = lib64
18
 
else
19
 
LIBDIR = lib
20
 
endif
21
 
 
22
 
USESELINUX=1
23
 
 
24
 
ifeq ($(USESELINUX),1)
25
 
SELINUXLIBES = -lselinux -lsepol
26
 
SELINUXFLAGS = -DUSESELINUX=1
27
 
endif
28
 
 
29
 
ifndef RPM_OPT_FLAGS
30
 
RPM_OPT_FLAGS = -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
31
 
endif
32
 
 
33
 
# uncomment to build 32bit on an 64bit host
34
 
#M32FLAGS = -m32
35
 
CFLAGS = $(RPM_OPT_FLAGS) -Wall -Werror -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 $(SELINUXFLAGS) $(M32FLAGS)
36
 
LDFLAGS = $(M32FLAGS)