aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-06 00:20:54 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-06 00:20:54 -0400
commita990a78a4e8dc193f5876efe32d6790c896e26e5 (patch)
tree03331a4282ea2f3efdf6e130147ee143a8fa60ce /Makefile
parent70d6aee8138cd8b9a5c1a5d0a55538d031599779 (diff)
downloadrunes-a990a78a4e8dc193f5876efe32d6790c896e26e5.tar.gz
runes-a990a78a4e8dc193f5876efe32d6790c896e26e5.zip
simplify
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8bc189e..66df33a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,16 @@
OUT = runes
OBJ = runes.o display.o xlib.o term.o events.o
+LIBS = cairo cairo-xlib libuv
CFLAGS ?= -g -Wall -Wextra -Werror
LDFLAGS ?= -g -Wall -Wextra -Werror
build: $(OUT)
$(OUT): $(OBJ)
- $(CC) $(shell pkg-config --libs cairo-xlib libuv) $(LDFLAGS) -o $@ $^
+ $(CC) $(shell pkg-config --libs $(LIBS)) $(LDFLAGS) -o $@ $^
%.o: %.c
- $(CC) $(shell pkg-config --cflags cairo-xlib libuv) $(CFLAGS) -c -o $@ $^
+ $(CC) $(shell pkg-config --cflags $(LIBS)) $(CFLAGS) -c -o $@ $^
clean:
rm -f $(OUT) $(OBJ)