~mathiaz/apparmor/ubuntu-mathiaz

« back to all changes in this revision

Viewing changes to module-deprecated/Makefile

  • Committer: Mathias Gug
  • Date: 2008-02-04 18:57:00 UTC
  • mfrom: (885.1.5 apparmor)
  • Revision ID: mathiaz@ubuntu.com-20080204185700-wwlyq0ksssxclv8w
Merge  ubuntu branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for AppArmor Linux Security Module (previously called "SubDomain")
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` APPARMOR_VER=${REPO_VERSION} $@
19
 
        mv apparmor.ko apparmor-${KERNELVER}.ko
20
 
        mv aamatch/aamatch_pcre.ko aamatch_pcre-${KERNELVER}.ko
21
 
 
22
 
clean:
23
 
        rm -f *.o *.ko *.mod.c .*.cmd Module{s,}.symvers \
24
 
                aamatch/*.o aamatch/*.ko aamatch/.*.cmd aamatch/*.mod.c
25
 
        rm -rf .tmp_versions