From d5013a39151c39a2e59650215ed2f4bf3104eb54 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 27 Jan 2016 11:38:34 +0100 Subject: - fix Makefile CFLAGS for abuild-tar.o - make ssl flags overridable (e.g. if we don't have pkg-config) --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9ec4a53..189db84 100644 --- a/Makefile +++ b/Makefile @@ -37,14 +37,15 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \ -e 's:@datadir@:$(datadir):g' \ -e 's:@abuildrepo@:$(abuildrepo):g' -SSL_CFLAGS = $(shell pkg-config --cflags openssl) -SSL_LIBS = $(shell pkg-config --libs openssl) +SSL_CFLAGS ?= $(shell pkg-config --cflags openssl) +SSL_LDFLAGS ?= $(shell pkg-config --cflags openssl) +SSL_LIBS ?= $(shell pkg-config --libs openssl) -LDFLAGS ?= OBJS-abuild-tar = abuild-tar.o +CFLAGS-abuild-tar.o = $(SSL_CFLAGS) +LDFLAGS-abuild-tar = $(SSL_LDFLAGS) LIBS-abuild-tar = $(SSL_LIBS) -CFLAGS-abuild-tar = $(SSL_CFLAGS) OBJS-abuild-sudo = abuild-sudo.o OBJS-abuild-fetch = abuild-fetch.o -- cgit v1.2.3-70-g09d2