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
     1.1 --- a/conf.mk	Mon Mar 21 20:35:58 2016 +0100
     1.2 +++ b/conf.mk	Tue Aug 28 13:45:22 2018 +0200
     1.3 @@ -32,10 +32,10 @@
     1.4  
     1.5  BIN        = terminal-chess
     1.6  CC         = gcc
     1.7 -CFLAGS     = -O2 -std=gnu99
     1.8 -CFLAGS_D   = -g -std=gnu99 -Wall -pedantic
     1.9 +CFLAGS     = -O2 -std=gnu99 `pkg-config --cflags ncurses`
    1.10 +CFLAGS_D   = -g -std=gnu99 -Wall -pedantic `pkg-config --cflags ncurses`
    1.11  LD         = gcc
    1.12 -LDFLAGS    = -lncurses
    1.13 +LDFLAGS    = `pkg-config --libs ncurses`
    1.14  ARFLAGS    = -r
    1.15  MKDIRFLAGS = -p
    1.16  RMFLAGS    = -f -R

mercurial