summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2019-07-19 23:45:49 -0600
committerAaron Ball <nullspoon@oper.io>2019-07-19 23:45:49 -0600
commitf0e6402da28dcfd542750e04cd5807253aff855d (patch)
treea1f22549ff4bcc8fc99cdd3f0a7f302836bc6dad
parentec5df5fd9d2403b610356377e29e77a272d1809d (diff)
downloadkbd-fade-f0e6402da28dcfd542750e04cd5807253aff855d.tar.gz
kbd-fade-f0e6402da28dcfd542750e04cd5807253aff855d.tar.xz
Update Makefile with debug and install targets
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f60f60c..9c542e4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,11 @@
-CCOPTS = --std=gnu99 -Wall
+CCOPTS = --std=gnu99 -Wall $(DBG)
+PREFIX = /usr
+
all:
cc src/main.c -o kbd-fade
+
+debug:
+ make all DBG=-g
+
+install:
+ install -D -m 755 kbd-fade -t $(DESTDIR)$(PREFIX)/bin

Generated by cgit