summaryrefslogtreecommitdiff
path: root/Makefile
blob: 33cd3d434f8436f637edf1e77a027fe3361f45b1 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
# Makefile for inotail
#
# Copyright (C) 2006-2009 Tobias Klauser <tklauser@distanz.ch>
#
# Licensed under the terms of the GNU General Public License; version 2 or later.

P = inotail
VERSION	= 0.6

# Paths
prefix	= /usr/local
BINDIR	= $(prefix)/bin
MANDIR	= $(prefix)/share/man/man1

CC	:= gcc
CFLAGS	:= $(CFLAGS) -pipe -D_USE_SOURCE -DVERSION="\"$(VERSION)\"" -W -Wall \
	   -Wextra -Wstrict-prototypes -Wsign-compare -Wshadow -Wchar-subscripts \
	   -Wmissing-declarations -Wpointer-arith -Wcast-align -Wmissing-prototypes

# Compile with 'make DEBUG=true' to enable debugging
DEBUG = false
ifeq ($(strip $(DEBUG)),true)
	CFLAGS  += -g -DDEBUG
endif

all: $(P)
$(P): $(P).o

%.o: %.c %.h
	$(CC) $(CFLAGS) -c $< -o $@

install: $(P)
	install -m 775 -D $(P) $(BINDIR)/$(P)
	install -m 644 -D $(P).1 $(MANDIR)/$(P).1
	gzip -9 $(MANDIR)/$(P).1

uninstall:
	rm $(BINDIR)/$(P) $(MANDIR)/$(P).1*

cscope:
	cscope -b

archive:
	git archive --format=tar --prefix=$(P)-$(VERSION)/ HEAD | gzip -9v > ../$(P)-$(VERSION).tar.gz
	git archive --format=tar --prefix=$(P)-$(VERSION)/ HEAD | bzip2 -9v > ../$(P)-$(VERSION).tar.bz2

checksum: archive
	(cd ..; \
		sha1sum $(P)-$(VERSION).tar.gz > $(P)-$(VERSION).tar.gz.sha1; \
		sha1sum $(P)-$(VERSION).tar.bz2 > $(P)-$(VERSION).tar.bz2.sha1)

signature: archive
	(cd ..; \
		gpg -a --detach-sign $(P)-$(VERSION).tar.gz; \
		gpg -a --detach-sign $(P)-$(VERSION).tar.bz2)

release: archive checksum signature

clean:
	rm -f $(P) *.o cscope.*
vdimm: blk labels and namespace instantiationDan Williams1-0/+25 2015-06-24libnvdimm: pmem label sets and namespace instantiation.Dan Williams1-0/+24 2015-06-24libnvdimm: support for legacy (non-aliasing) nvdimmsDan Williams1-0/+10 2015-06-24libnvdimm, nvdimm: dimm driver and base libnvdimm device-driver infrastructureDan Williams1-0/+39 ='2015-08-17 16:53:53 +0800'>2015-08-17crypto: aead - Remove CRYPTO_ALG_AEAD_NEW flagHerbert Xu1-2/+1 2015-06-22crypto: algif_aead - Temporarily disable all AEAD algorithmsHerbert Xu1-1/+2 2015-05-28crypto: algif_aead - Switch to new AEAD interfaceHerbert Xu1-58/+8 2015-05-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6Herbert Xu1-5/+4 2015-05-18crypto: algif_aead - fix invalid sgl linkingTadeusz Struk1-5/+4 2015-04-23crypto: algif_aead - Include crypto/aead.hHerbert Xu1-0/+1 2015-04-15crypto: fix mis-merge with the networking mergeLinus Torvalds1-4/+2 2015-03-04crypto: algif - add AEAD supportStephan Mueller1-0/+666