diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-23 15:38:35 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-23 15:38:35 +0200 |
commit | 2eafe241bee22e7cdb4a11de279303542a673079 (patch) | |
tree | 61ee6fff12ea4b8d39cf6b2f6f0bbd43c778727c /Makefile | |
parent | 3e51325663806c54b16eb9aa9d3d25f10a8cdc54 (diff) | |
download | lr-2eafe241bee22e7cdb4a11de279303542a673079.tar.gz lr-2eafe241bee22e7cdb4a11de279303542a673079.tar.xz lr-2eafe241bee22e7cdb4a11de279303542a673079.zip |
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
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: |