summaryrefslogtreecommitdiff
blob: 2f62112ceb480943d89b1b61604542d754704f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
https://bugs.gentoo.org/show_bug.cgi?id=722336
https://bugs.gentoo.org/show_bug.cgi?id=689986
https://bugs.gentoo.org/show_bug.cgi?id=698082
https://bugs.gentoo.org/show_bug.cgi?id=702372
diff --git a/Makefile b/Makefile
index e0e7645..6aee6ab 100644
--- a/Makefile
+++ b/Makefile
@@ -15,12 +15,13 @@ LIMIT_LENGTH = -DLIMIT_LENGTH=1024
 
 ### That's all ###
 
-CC      = gcc
+PKG_CONFIG ?= pkg-config
+CC      ?= gcc
 CFLAGS  += -Wall \
 	$(PRETTINESS) $(NASTINESS) $(BEEPS) $(FLASHES) $(COLORS) \
 	$(LIMIT_LENGTH) $(PROF)
 LDFLAGS += $(PROF)
-LIBS    = -lncurses
+LIBS    = $(shell pkg-config --libs ncurses)
 
 OBJECTS = dvorak7min.o lessons.o
 HEADERS = lessons.h