~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/flask/policy/policy/flask/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# flask needs to know where to export the libselinux headers.
 
2
LIBSEL ?= ../../libselinux
 
3
 
 
4
# flask needs to know where to export the kernel headers.
 
5
LINUXDIR ?= ../../../linux-2.6
 
6
 
 
7
AWK = awk
 
8
 
 
9
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
 
10
          else if [ -x /bin/bash ]; then echo /bin/bash; \
 
11
          else echo sh; fi ; fi)
 
12
 
 
13
FLASK_H_DEPEND = security_classes initial_sids
 
14
AV_H_DEPEND = access_vectors
 
15
 
 
16
FLASK_H_FILES = class_to_string.h flask.h initial_sid_to_string.h
 
17
AV_H_FILES = av_inherit.h common_perm_to_string.h av_perm_to_string.h av_permissions.h
 
18
ALL_H_FILES = $(FLASK_H_FILES) $(AV_H_FILES)
 
19
 
 
20
all:  $(ALL_H_FILES)
 
21
 
 
22
$(FLASK_H_FILES): $(FLASK_H_DEPEND)
 
23
        $(CONFIG_SHELL) mkflask.sh $(AWK) $(FLASK_H_DEPEND)
 
24
 
 
25
$(AV_H_FILES): $(AV_H_DEPEND)
 
26
        $(CONFIG_SHELL) mkaccess_vector.sh $(AWK) $(AV_H_DEPEND)
 
27
 
 
28
tolib: all
 
29
        install -m 644 flask.h av_permissions.h $(LIBSEL)/include/selinux
 
30
        install -m 644 class_to_string.h av_inherit.h common_perm_to_string.h av_perm_to_string.h $(LIBSEL)/src
 
31
 
 
32
tokern: all
 
33
        install -m 644 $(ALL_H_FILES) $(LINUXDIR)/security/selinux/include
 
34
 
 
35
install: all
 
36
 
 
37
relabel:
 
38
 
 
39
clean:  
 
40
        rm -f $(FLASK_H_FILES)
 
41
        rm -f $(AV_H_FILES)