From 5db227b05ba316713d6793e728b21366e8337721 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sat, 4 Apr 2020 20:23:21 -0400 Subject: Initial commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..121272a --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2