mirror of https://github.com/getdnsapi/getdns.git
Pass existing CFLAGS and LDFLAGS through
Useful when dependencies are installed at custom locations
This commit is contained in:
parent
37fe39e4ae
commit
06ad9a53b5
|
@ -6,7 +6,6 @@ package = @PACKAGE_NAME@
|
||||||
version = @PACKAGE_VERSION@
|
version = @PACKAGE_VERSION@
|
||||||
tarname = @PACKAGE_TARNAME@
|
tarname = @PACKAGE_TARNAME@
|
||||||
distdir = $(tarname)-$(version)
|
distdir = $(tarname)-$(version)
|
||||||
cflags = @CFLAGS@
|
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
@ -16,8 +15,8 @@ srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -I /usr/local/include -std=c99
|
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I/usr/local/include -std=c99
|
||||||
LDFLAGS=-levent_core -lldns -lunbound
|
LDFLAGS=@LDFLAGS@ -levent_core -lldns -lunbound
|
||||||
# PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
|
# PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
|
||||||
|
|
||||||
.SUFFIXES: .c .o .a .lo .h
|
.SUFFIXES: .c .o .a .lo .h
|
||||||
|
|
|
@ -15,8 +15,8 @@ srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99
|
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99
|
||||||
LDFLAGS=-L. -L$(srcdir)/.. -L/usr/local/lib
|
LDFLAGS=@LDFLAGS@ -L. -L$(srcdir)/.. -L/usr/local/lib
|
||||||
LDLIBS=-lgetdns -lldns -levent_core -lunbound
|
LDLIBS=-lgetdns -lldns -levent_core -lunbound
|
||||||
PROGRAMS=example_simple_answers example_tree example_all_functions example_synchronous
|
PROGRAMS=example_simple_answers example_tree example_all_functions example_synchronous
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ package = @PACKAGE_NAME@
|
||||||
version = @PACKAGE_VERSION@
|
version = @PACKAGE_VERSION@
|
||||||
tarname = @PACKAGE_TARNAME@
|
tarname = @PACKAGE_TARNAME@
|
||||||
distdir = $(tarname)-$(version)
|
distdir = $(tarname)-$(version)
|
||||||
cflags = @CFLAGS@
|
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
@ -16,8 +15,8 @@ srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99 $(cflags)
|
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I$(srcdir)/../ -I/usr/local/include -std=c99 $(cflags)
|
||||||
LDFLAGS=-L. -L$(srcdir)/.. -L/usr/local/lib
|
LDFLAGS=@LDFLAGS@ -L. -L$(srcdir)/.. -L/usr/local/lib
|
||||||
LDLIBS=-lgetdns -lldns -levent_core -lunbound
|
LDLIBS=-lgetdns -lldns -levent_core -lunbound
|
||||||
PROGRAMS=tests_dict tests_list tests_stub_async tests_stub_sync
|
PROGRAMS=tests_dict tests_list tests_stub_async tests_stub_sync
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue