aboutsummaryrefslogtreecommitdiff
path: root/util/Makefile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-09 11:37:26 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-09 11:45:16 +0200
commit7a90c9a7118474962d4a336962690149bef585ac (patch)
tree5788ee655080eead7e9e037a9c284d8b782e98f6 /util/Makefile
parent8d7f35be97b4d3c2508524032c5762b75f3a213b (diff)
downloadvis-7a90c9a7118474962d4a336962690149bef585ac.tar.gz
vis-7a90c9a7118474962d4a336962690149bef585ac.tar.xz
Improve Cygwin support
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile16
1 files changed, 2 insertions, 14 deletions
diff --git a/util/Makefile b/util/Makefile
index cec7b21..2c8161f 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -1,23 +1,11 @@
-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
+ $(CC) $(CFLAGS) $(CFLAGS_TERMKEY) keys.c $(LDFLAGS) $(LDFLAGS_TERMKEY) $(LDFLAGS_CURSES) -o keys
clean:
@echo cleaning
@rm -f keys
-.PHONY: clean keys-local
+.PHONY: clean