summaryrefslogtreecommitdiff
blob: ce5defb7bb89100eba60c1fe15b222a9418030c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Respect user CFLAGS and use pkg-config to get ncurses libs.

--- wiggle-1.0/Makefile
+++ wiggle-1.0/Makefile
@@ -3,7 +3,7 @@
 #OptDbg=-O3
 #OptDbg=-O3 -march=pentium2
 OptDbg=-ggdb
-CFLAGS=$(OptDbg) -I. -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
+CFLAGS += -I. -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter
 
 # STRIP = -s
 INSTALL = /usr/bin/install
@@ -12,7 +12,7 @@
 MANDIR  = /usr/share/man
 MAN1DIR = $(MANDIR)/man1
 MAN5DIR = $(MANDIR)/man5
-LDLIBS = -lncurses
+LDLIBS = $(shell pkg-config --libs ncurses)
 
 all: wiggle wiggle.man test