diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-04-04 20:23:21 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-04-04 20:23:21 -0400 |
commit | 5db227b05ba316713d6793e728b21366e8337721 (patch) | |
tree | 8001f1fba5ec3c1fa37ad1aa6c55fe748880823a /Makefile | |
download | nureadahead-5db227b05ba316713d6793e728b21366e8337721.tar.xz nureadahead-5db227b05ba316713d6793e728b21366e8337721.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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 |