File: Makefile

package info (click to toggle)
sel 0.08.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 128 kB
  • ctags: 171
  • sloc: ansic: 1,545; makefile: 69; sh: 45
file content (48 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (2)
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
42
43
44
45
46
47
48
# written by Thomas Kluge for sel

#Edited for Debian GNU/Linux
DESTDIR =

CC=gcc
PROG=sel
MAN=sel.1
HELP=help.txt
MAINFILE=sel.c
BINDIR=$(DESTDIR)/usr/bin
MANDIR=$(DESTDIR)/usr/share/man/man1
HELPDIR=$(DESTDIR)/usr/share/sel
CFLAGS= -o $(PROG) -Wall -g -O3 -lncurses
GLIBCFLAGS= -nostdinc -I /usr/include
INSTALL=install


ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
  CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  INSTALL += -s
endif


all:sel

sel: sel.c

sel_glibc:
	gcc $(MAINFILE) $(CFLAGS) $(GLIBCFLAGS)

clean:
	rm -f $(PROG) *.o *~ core

install:
	$(INSTALL) $(PROG) $(BINDIR)
	cp $(MAN)  $(MANDIR)
	cp $(HELP) $(HELPDIR)

deinstall:
	rm $(BINDIR)/$(PROG)
	rm $(MANDIR)/$(MAN)

lint:
	lclint $(MAINFILE) +gnuextensions +posixlib | sensible-pager