File: Makefile

package info (click to toggle)
policycoreutils 2.1.10-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,540 kB
  • sloc: ansic: 9,406; python: 3,383; makefile: 605; sh: 562; cpp: 315
file content (41 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Installation directories.
PREFIX ?= $(DESTDIR)/usr
BINDIR ?= $(PREFIX)/sbin

ARCH = $(shell uname -i)
ifeq "$(ARCH)" "x86_64"
        # In case of 64 bit system, use these lines
        LIBDIR=/usr/lib64
else
ifeq "$(ARCH)" "i686"
        # In case of 32 bit system, use these lines
        LIBDIR=/usr/lib
else
ifeq "$(ARCH)" "i386"
        # In case of 32 bit system, use these lines
        LIBDIR=/usr/lib
endif
endif
endif
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)

CFLAGS ?= -Wall
override CFLAGS += -I../src -D_GNU_SOURCE
LDLIBS += -L../src ../src/mcstrans.o ../src/mls_level.o -lselinux -lpcre $(LIBDIR)/libsepol.a

TARGETS=$(patsubst %.c,%,$(wildcard *.c))

all: $(TARGETS) 

install: all
	-mkdir -p $(BINDIR)
	install -m 755 $(TARGETS) $(BINDIR)

test:
	./mlstrans-test-runner.py ../test/*.test

clean:
	rm -f $(TARGETS) *.o *~ \#*

relabel: