~ubuntu-branches/debian/sid/policycoreutils/sid

« back to all changes in this revision

Viewing changes to .pc/multiarch/mcstrans/src/Makefile

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2012-03-20 19:50:46 UTC
  • Revision ID: package-import@ubuntu.com-20120320195046-e0u3p8oxbk1a1qcg
Tags: 2.1.10-5
* Team upload.
* Switch to dh sequence and debhelper 9
* Merge my missing patches
* d/p/fix-ftbfs-hardening-flags.patch: Fix FTBFS with hardening flags
* d/policycoreutils.lintian-overrides: Drop non-standard-toplevel-dir selinux/
* debian/patches/0006-default-config.patch: Properly disable sandbox by
  default
* Rewrite maintainer scripts to use debhelper generated stanza.
  (Should closes: #660345)
* debian/control: Update Vcs-* fields
* Add debian/gbp.conf file
* debian/control:
  - Add Pre-Depends: ${misc:Pre-Depends} field
  - Make policycoreutils arch:linux-any
  - Put under the Debian SELinux team maintenance
  - Bump python-setools dependency to >= 3.3.7-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
ARCH = $(shell uname -i)
2
 
ifeq "$(ARCH)" "x86_64"
3
 
        # In case of 64 bit system, use these lines
4
 
        LIBDIR=/usr/lib64
5
 
else 
6
 
ifeq "$(ARCH)" "i686"
7
 
        # In case of 32 bit system, use these lines
8
 
        LIBDIR=/usr/lib
9
 
else
10
 
ifeq "$(ARCH)" "i386"
11
 
        # In case of 32 bit system, use these lines
12
 
        LIBDIR=/usr/lib
13
 
endif
14
 
endif
15
 
endif
16
 
# Installation directories.
17
 
PREFIX  ?= $(DESTDIR)/usr
18
 
SBINDIR ?= $(DESTDIR)/sbin
19
 
INITDIR ?= $(DESTDIR)/etc/rc.d/init.d
20
 
 
21
 
PROG_SRC=mcstrans.c  mcscolor.c  mcstransd.c  mls_level.c
22
 
PROG_OBJS= $(patsubst %.c,%.o,$(PROG_SRC))
23
 
PROG=mcstransd
24
 
INITSCRIPT=mcstrans
25
 
CFLAGS ?= -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute
26
 
override CFLAGS += -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
27
 
 
28
 
all: $(PROG)
29
 
 
30
 
$(PROG): $(PROG_OBJS)
31
 
        $(CC) $(LDFLAGS) -pie -o $@ $^ -lselinux -lcap -lpcre $(LIBDIR)/libsepol.a
32
 
 
33
 
%.o:  %.c 
34
 
        $(CC) $(CFLAGS) -fPIE -c -o $@ $<
35
 
 
36
 
install: all
37
 
        test -d $(SBINDIR) || install -m 755 -d $(SBINDIR)
38
 
        install -m 755 $(PROG) $(SBINDIR)
39
 
        test -d $(INITDIR) || install -m 755 -d $(INITDIR)
40
 
        install -m 755 $(INITSCRIPT).init $(INITDIR)/$(INITSCRIPT)
41
 
 
42
 
clean: 
43
 
        -rm -f $(OBJS) $(LOBJS) $(TARGET) $(PROG) $(PROG_OBJS) *~ \#*
44