aboutsummaryrefslogtreecommitdiff
path: root/util/Makefile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-19 14:10:13 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-19 14:10:13 +0200
commit2e102a11afe9b256f0f9cf5391faf445fd40430a (patch)
treefcf8f6f4e2b7832bed9c380bf49bcc491ca06292 /util/Makefile
downloadvis-2e102a11afe9b256f0f9cf5391faf445fd40430a.tar.gz
vis-2e102a11afe9b256f0f9cf5391faf445fd40430a.tar.xz
Initial import of test branch from vis repository
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/util/Makefile b/util/Makefile
new file mode 100644
index 0000000..cec7b21
--- /dev/null
+++ b/util/Makefile
@@ -0,0 +1,23 @@
+-include ../../config.mk
+
+DEPS_ROOT = ../../dependency/install
+DEPS_PREFIX = $(DEPS_ROOT)/usr
+DEPS_LIB = $(DEPS_PREFIX)/lib
+DEPS_INC = $(DEPS_PREFIX)/include
+
+CFLAGS_TERMKEY ?= $(shell pkg-config --cflags termkey || echo "-I/usr/local/include")
+LDFLAGS_TERMKEY ?= $(shell pkg-config --libs termkey || echo "-ltermkey")
+
+keys: keys.c
+ @echo Compiling keys utility
+ $(CC) $(CFLAGS_TERMKEY) keys.c $(LDFLAGS_TERMKEY) -o keys
+
+keys-local: keys.c
+ @echo Compiling keys utility locally
+ $(CC) -I$(DEPS_INC) keys.c -L$(DEPS_LIB) $(LDFLAGS_TERMKEY) $(LDFLAGS_CURSES) -o keys
+
+clean:
+ @echo cleaning
+ @rm -f keys
+
+.PHONY: clean keys-local