diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-03-05 00:40:17 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-03-07 20:57:37 +0100 |
commit | 8ab6afb0c446c1ad5874b55e0f611627849ff2e8 (patch) | |
tree | a2c45765eca629fa11a9fc208d916b2b8bb34151 /rasdl | |
parent | 6d75aed5d100995f93c35d53652d0b95b4a8f95e (diff) | |
download | rasdaman-upstream-8ab6afb0c446c1ad5874b55e0f611627849ff2e8.tar.gz rasdaman-upstream-8ab6afb0c446c1ad5874b55e0f611627849ff2e8.tar.xz rasdaman-upstream-8ab6afb0c446c1ad5874b55e0f611627849ff2e8.zip |
build: Free up CPPFLAGS & Co. for users
The CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS vars should be
free for use by the person who does the build, so rasdaman
itself should put all its internally needed flags to
AM_CPPFLAGS, AM_CFLAGS, AM_CXXFLAGS, *_LIBS instead.
We do just that, and also put all the C preprocessor
defines in _CPPFLAGS so they are used for compiling
both C and C++ source files. This redistributes some
responsibilities from the _CFLAGS and _CXXFLAGS vars.
Also use _LDADD _LIBS where appropriate.
As a result, the user can now properly set CPPFLAGS,
CFLAGS, CXXFLAGS, LDFLAGS at configure or make time
and have these values used in the build.
Diffstat (limited to 'rasdl')
-rw-r--r-- | rasdl/Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rasdl/Makefile.am b/rasdl/Makefile.am index 171c05f..27a3e49 100644 --- a/rasdl/Makefile.am +++ b/rasdl/Makefile.am @@ -32,8 +32,6 @@ AM_LFLAGS=-I YACC = bison AM_YFLAGS=-d -y -AM_CXXFLAGS=@BASEDBCXXFLAGS@ -AM_LDFLAGS=@BASEDBLDFLAGS@ bin_PROGRAMS=rasdl rasdl_SOURCES=lex.ll odl.yy parse.cc parse.hh symbtbl.cc symbtbl.hh \ @@ -48,6 +46,10 @@ rasdl_LDADD = ../reladminif/libreladminif.a ../relmddif/librelmddif.a \ ../compression/libcompression.a ../commline/libcommline.a ../raslib/libraslib.a \ ../conversion/libconversion.a ../rasodmg/librasodmg.a +rasdl_CPPFLAGS = $(AM_CPPFLAGS) +rasdl_CPPFLAGS += $(BASEDB_CPPFLAGS) +rasdl_LDADD += $(BASEDB_LIBS) + BUILT_SOURCES=lex.cc odl.cc odl.h CLEANFILES=lex.cc odl.cc odl.h |