summaryrefslogtreecommitdiff
blob: 045278ef4e0630a4f84fefd6c085807a7450b809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
--- 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