summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-04-04 20:23:21 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-04-04 20:23:21 -0400
commit5db227b05ba316713d6793e728b21366e8337721 (patch)
tree8001f1fba5ec3c1fa37ad1aa6c55fe748880823a /Makefile
downloadnureadahead-master.tar.xz
nureadahead-master.zip
Initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
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