aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-10-23 15:38:35 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-10-23 15:38:35 +0200
commit2eafe241bee22e7cdb4a11de279303542a673079 (patch)
tree61ee6fff12ea4b8d39cf6b2f6f0bbd43c778727c /Makefile
parent3e51325663806c54b16eb9aa9d3d25f10a8cdc54 (diff)
downloadlr-2eafe241bee22e7cdb4a11de279303542a673079.tar.gz
lr-2eafe241bee22e7cdb4a11de279303542a673079.tar.xz
lr-2eafe241bee22e7cdb4a11de279303542a673079.zip
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..42d417b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+ALL=lr
+
+CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings
+
+DESTDIR=
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+
+all: $(ALL)
+
+clean: FRC
+ rm -f lr
+
+install: FRC all
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+ install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
+
+FRC: