~ubuntu-branches/ubuntu/oneiric/apparmor/oneiric-security

« back to all changes in this revision

Viewing changes to module/apparmor/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for AppArmor Linux Security Module
2
 
#
3
 
# kernel build Makefile is the Kbuild file
4
 
 
5
 
REPO_VERSION := $(shell if [ -x /usr/bin/svn ] ; then \
6
 
       /usr/bin/svn info . 2> /dev/null | grep "^Last Changed Rev:" | sed "s/^Last Changed Rev: //" ; \
7
 
       fi)
8
 
 
9
 
ifeq ("${REPO_VERSION}", "")
10
 
REPO_VERSION := "unknown"
11
 
endif
12
 
 
13
 
KERNELVER := $(shell uname -r)
14
 
 
15
 
KERNELDIR := /lib/modules/${KERNELVER}/build
16
 
 
17
 
all:
18
 
        $(MAKE) -C $(KERNELDIR) M=`pwd` modules CONFIG_SECURITY_APPARMOR=m \
19
 
                                        APPARMOR_VER=${REPO_VERSION}
20
 
        mv apparmor.ko apparmor-${KERNELVER}.ko
21
 
        mv match/aamatch_pcre.ko aamatch_pcre-${KERNELVER}.ko
22
 
 
23
 
clean:
24
 
        rm -f *~ *.o *.ko *.mod.c .*.cmd Module{s,}.symvers \
25
 
                match/*~ match/*.o match/*.ko match/.*.cmd match/*.mod.c
26
 
        rm -rf .tmp_versions
27
 
 
28