From c890f6befa2340b668df3b0028abf4fa3cdedbef Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 12 Nov 2010 17:48:49 +0100 Subject: [PATCH] print LDFLAGS and add -s only if SFLAGS is not set --- Makefile | 1 + config.mk | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f4c5503..09ec3c3 100644 --- a/Makefile +++ b/Makefile @@ -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}" diff --git a/config.mk b/config.mk index a370180..cdd0ba0 100644 --- a/config.mk +++ b/config.mk @@ -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