mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 10:36:00 +01:00
print LDFLAGS and add -s only if SFLAGS is not set
This commit is contained in:
parent
815f2b5243
commit
c890f6befa
2 changed files with 7 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -13,6 +13,7 @@ all: options ${PROJECT}
|
||||||
options:
|
options:
|
||||||
@echo ${PROJECT} build options:
|
@echo ${PROJECT} build options:
|
||||||
@echo "CFLAGS = ${CFLAGS}"
|
@echo "CFLAGS = ${CFLAGS}"
|
||||||
|
@echo "LDFLAGS = ${LDFLAGS}"
|
||||||
@echo "LIBS = ${LIBS}"
|
@echo "LIBS = ${LIBS}"
|
||||||
@echo "DFLAGS = ${DFLAGS}"
|
@echo "DFLAGS = ${DFLAGS}"
|
||||||
@echo "CC = ${CC}"
|
@echo "CC = ${CC}"
|
||||||
|
|
|
@ -14,14 +14,17 @@ GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 poppler-glib)
|
||||||
INCS = -I. -I/usr/include ${GTK_INC}
|
INCS = -I. -I/usr/include ${GTK_INC}
|
||||||
LIBS = -lc ${GTK_LIB} -lpthread -lm
|
LIBS = -lc ${GTK_LIB} -lpthread -lm
|
||||||
|
|
||||||
# flags
|
# compiler flags
|
||||||
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
|
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
|
||||||
|
|
||||||
# debug
|
# debug flags
|
||||||
DFLAGS = -g
|
DFLAGS = -g
|
||||||
|
|
||||||
|
# linker flags
|
||||||
|
LDFLAGS ?=
|
||||||
|
|
||||||
# compiler
|
# compiler
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
|
|
||||||
# strip
|
# strip
|
||||||
SFLAGS = -s
|
SFLAGS ?= -s
|
||||||
|
|
Loading…
Reference in a new issue