summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7eec852..4a5052e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,16 @@
# makefile for uirc
+# to configure install locations and compiler settings, see config.mk
+include config.mk
+
SRC = uirc.c
uirc: ${SRC}
- gcc -o uirc -O ${SRC}
+ ${CC} -o uirc -O ${SRC}
+
+install: uirc
+ mkdir -p ${PREFIX}/bin
+ cp -f uirc ${PREFIX}/bin
+ chmod 755 ${PREFIX}/bin/uirc
+
+.PHONY: uirc install