Commit dd20047a authored by Sebastian Ramacher's avatar Sebastian Ramacher

print LDFLAGS and add -s only if SFLAGS is not set

parent 5ad6af63
......@@ -13,6 +13,7 @@ all: options ${PROJECT}
options:
@echo ${PROJECT} build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "LIBS = ${LIBS}"
@echo "DFLAGS = ${DFLAGS}"
@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}
LIBS = -lc ${GTK_LIB} -lpthread -lm
# flags
# compiler flags
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
# debug
# debug flags
DFLAGS = -g
# linker flags
LDFLAGS ?=
# compiler
CC ?= gcc
# strip
SFLAGS = -s
SFLAGS ?= -s
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment