about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-11-04 17:10:15 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-11-04 17:10:15 +0100
commit1207a1200c402f54266db2cbc18ef11cb2fa394e (patch)
treedc540b5cc00673ae551763d05afeb7eeb2bd78fc
parenta99b4704518369ebf6606b6a1a271c5cfd21bd5e (diff)
downloadsnooze-1207a1200c402f54266db2cbc18ef11cb2fa394e.tar.gz
snooze-1207a1200c402f54266db2cbc18ef11cb2fa394e.tar.xz
snooze-1207a1200c402f54266db2cbc18ef11cb2fa394e.zip
add Makefile
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ec491be
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+ALL=snooze
+
+CFLAGS=-g -O2 -Wall -Wextra -Wwrite-strings
+
+DESTDIR=
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+
+all: $(ALL)
+
+clean: FRC
+	rm -f $(ALL)
+
+install: FRC all
+	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
+
+FRC: