Pass existing CFLAGS and LDFLAGS through

Useful when dependencies are installed at custom locations
This commit is contained in:
Willem Toorop 2013-10-29 20:31:25 +01:00
parent 37fe39e4ae
commit 06ad9a53b5
3 changed files with 6 additions and 8 deletions

View File

@ -6,7 +6,6 @@ package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
cflags = @CFLAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
@ -16,8 +15,8 @@ srcdir = @srcdir@
VPATH = @srcdir@
CC=gcc
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -I /usr/local/include -std=c99
LDFLAGS=-levent_core -lldns -lunbound
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I/usr/local/include -std=c99
LDFLAGS=@LDFLAGS@ -levent_core -lldns -lunbound
# PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
.SUFFIXES: .c .o .a .lo .h

View File

@ -15,8 +15,8 @@ srcdir = @srcdir@
VPATH = @srcdir@
CC=gcc
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99
LDFLAGS=-L. -L$(srcdir)/.. -L/usr/local/lib
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99
LDFLAGS=@LDFLAGS@ -L. -L$(srcdir)/.. -L/usr/local/lib
LDLIBS=-lgetdns -lldns -levent_core -lunbound
PROGRAMS=example_simple_answers example_tree example_all_functions example_synchronous

View File

@ -6,7 +6,6 @@ package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
cflags = @CFLAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
@ -16,8 +15,8 @@ srcdir = @srcdir@
VPATH = @srcdir@
CC=gcc
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99 $(cflags)
LDFLAGS=-L. -L$(srcdir)/.. -L/usr/local/lib
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99 $(cflags)
LDFLAGS=@LDFLAGS@ -L. -L$(srcdir)/.. -L/usr/local/lib
LDLIBS=-lgetdns -lldns -levent_core -lunbound
PROGRAMS=tests_dict tests_list tests_stub_async tests_stub_sync