summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-12-01 07:03:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-12-01 07:03:11 +0000
commitc8919ac3b56a8906c07d681f6a69c69765986854 (patch)
tree4e150be45ce8e489a2e054d681011f2423c85277
parentdc2ffc30e812fc52ad2bf4c11f36a69940f8d1ea (diff)
downloadapk-tools-c8919ac3b56a8906c07d681f6a69c69765986854.tar.gz
apk-tools-c8919ac3b56a8906c07d681f6a69c69765986854.tar.bz2
apk-tools-c8919ac3b56a8906c07d681f6a69c69765986854.tar.xz
apk-tools-c8919ac3b56a8906c07d681f6a69c69765986854.zip
Allow distromakers override CFLAGS and LDFLAGS
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 06ab4c8..2e7e392 100644
--- a/Makefile
+++ b/Makefile
@@ -20,9 +20,10 @@ CC=gcc
INSTALL=install
INSTALLDIR=$(INSTALL) -d
-CFLAGS=-g -D_GNU_SOURCE -Werror -Wall -Wstrict-prototypes -std=gnu99 \
- -DAPK_VERSION=\"$(FULL_VERSION)\"
-LDFLAGS=-g
+CFLAGS?=-g -Werror -Wall -Wstrict-prototypes
+CFLAGS+=-D_GNU_SOURCE -std=gnu99 -DAPK_VERSION=\"$(FULL_VERSION)\"
+
+LDFLAGS?=-g
LIBS=/usr/lib/libz.a
ifeq ($(STATIC),yes)