mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:36:00 +01:00
use pkg-config to determine girara libs and inc
This commit is contained in:
parent
aec6843b54
commit
376390a65c
1 changed files with 6 additions and 3 deletions
|
@ -11,8 +11,11 @@ MANPREFIX ?= ${PREFIX}/share/man
|
|||
GTK_INC = $(shell pkg-config --cflags gtk+-2.0)
|
||||
GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0)
|
||||
|
||||
INCS = -I. -I/usr/include ${GTK_INC}
|
||||
LIBS = -lc ${GTK_LIB} -lpthread -lm -lgirara-gtk2 -ldl
|
||||
GIRARA_INC = $(shell pkg-config --cflags girara-gtk2)
|
||||
GIRARA_LIB = $(shell pkg-config --libs girara-gtk2)
|
||||
|
||||
INCS = -I. -I/usr/include ${GIRARA_INC} ${GTK_INC}
|
||||
LIBS = -lc ${GIRARA_LIB} ${GTK_LIB} -lpthread -lm -ldl
|
||||
|
||||
# flags
|
||||
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
|
||||
|
@ -27,4 +30,4 @@ LDFLAGS += -rdynamic
|
|||
CC ?= gcc
|
||||
|
||||
# strip
|
||||
SFLAGS = -s
|
||||
SFLAGS ?= -s
|
||||
|
|
Loading…
Reference in a new issue