using pkg-config in hand crafted make file

Tue, 28 Aug 2018 13:45:22 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 28 Aug 2018 13:45:22 +0200
changeset 57
498d92449d6d
parent 56
11b57a15d11a
child 58
7ba8a97a8b6e

using pkg-config in hand crafted make file

conf.mk file | annotate | diff | comparison | revisions
--- a/conf.mk	Mon Mar 21 20:35:58 2016 +0100
+++ b/conf.mk	Tue Aug 28 13:45:22 2018 +0200
@@ -32,10 +32,10 @@
 
 BIN        = terminal-chess
 CC         = gcc
-CFLAGS     = -O2 -std=gnu99
-CFLAGS_D   = -g -std=gnu99 -Wall -pedantic
+CFLAGS     = -O2 -std=gnu99 `pkg-config --cflags ncurses`
+CFLAGS_D   = -g -std=gnu99 -Wall -pedantic `pkg-config --cflags ncurses`
 LD         = gcc
-LDFLAGS    = -lncurses
+LDFLAGS    = `pkg-config --libs ncurses`
 ARFLAGS    = -r
 MKDIRFLAGS = -p
 RMFLAGS    = -f -R

mercurial