mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:23:47 +01:00
set NEEDS_DL to 0 if you don't need to link against dl
This commit is contained in:
parent
cf3fd3510b
commit
2657ff58ae
4
Makefile
4
Makefile
@ -8,6 +8,10 @@ SOURCE = $(shell find . -iname "*.c")
|
|||||||
OBJECTS = $(patsubst %.c, %.o, $(SOURCE))
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCE))
|
||||||
DOBJECTS = $(patsubst %.c, %.do, $(SOURCE))
|
DOBJECTS = $(patsubst %.c, %.do, $(SOURCE))
|
||||||
|
|
||||||
|
ifneq "$(NEEDS_DL)" "0"
|
||||||
|
LIBS += -ldl
|
||||||
|
endif
|
||||||
|
|
||||||
all: options ${PROJECT}
|
all: options ${PROJECT}
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
@ -8,6 +8,10 @@ PREFIX ?= /usr
|
|||||||
MANPREFIX ?= ${PREFIX}/share/man
|
MANPREFIX ?= ${PREFIX}/share/man
|
||||||
|
|
||||||
# libs
|
# libs
|
||||||
|
|
||||||
|
# set this to 0 if you don't need to link against dl
|
||||||
|
NEEDS_DL ?= 1
|
||||||
|
|
||||||
GTK_INC ?= $(shell pkg-config --cflags gtk+-2.0)
|
GTK_INC ?= $(shell pkg-config --cflags gtk+-2.0)
|
||||||
GTK_LIB ?= $(shell pkg-config --libs gtk+-2.0 gthread-2.0)
|
GTK_LIB ?= $(shell pkg-config --libs gtk+-2.0 gthread-2.0)
|
||||||
|
|
||||||
@ -18,7 +22,7 @@ SQLITE_INC ?= $(shell pkg-config --cflags sqlite3)
|
|||||||
SQLITE_LIB ?= $(shell pkg-config --libs sqlite3)
|
SQLITE_LIB ?= $(shell pkg-config --libs sqlite3)
|
||||||
|
|
||||||
INCS = ${GIRARA_INC} ${GTK_INC} $(SQLITE_INC)
|
INCS = ${GIRARA_INC} ${GTK_INC} $(SQLITE_INC)
|
||||||
LIBS = -lc ${GIRARA_LIB} ${GTK_LIB} $(SQLITE_LIB) -lpthread -lm -ldl
|
LIBS = ${GIRARA_LIB} ${GTK_LIB} $(SQLITE_LIB) -lpthread -lm
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
|
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
|
||||||
|
Loading…
Reference in New Issue
Block a user