summaryrefslogtreecommitdiff
path: root/Makefile
blob: 121272a0b84a5c0d48401ea4d88669df24c2a05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS ?= -O2 -s
CFLAGS += -Wall -Wextra

prefix = /usr/local
sbindir = $(prefix)/sbin

all: nureadahead-preload

nureadahead-preload: nureadahead-preload.c
	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@

clean:
	rm -f nureadahead-preload

install: all
	install -Dm755 nureadahead-collect $(DESTDIR)$(sbindir)
	install -Dm755 nureadahead-collect-auto $(DESTDIR)$(sbindir)
	install -Dm755 nureadahead-init $(DESTDIR)$(sbindir)
	install -Dm755 nureadahead-merge $(DESTDIR)$(sbindir)
	install -Dm755 nureadahead-preload $(DESTDIR)$(sbindir)

.PHONY: all clean install