[Monetdb-developers] Win32 build & prefix
HowToStart-SQL-Win32.txt says In case the install (i.e., prefix) directories of MonetDB and MonetDB/SQL are identical, ... However, it seems that prefix is fixed in NT/Makefile prefix = $(MAKEDIR) Would it be possible to control the prefix via an environment variable? Also, it seems that CLIENTS_PREFIX MONETDB4_PREFIX MONETDB5_PREFIX are required, but HowToStart-SQL-Win32.txt only mentions MONETDB_PREFIX. And a related question: Is it possible to use a build directory outside of the source tree (under Win32)? Steffen Goeldner
On 2007-03-21 11:10, Steffen Goeldner wrote:
HowToStart-SQL-Win32.txt says
In case the install (i.e., prefix) directories of MonetDB and MonetDB/SQL are identical, ...
However, it seems that prefix is fixed in NT/Makefile
prefix = $(MAKEDIR)
Would it be possible to control the prefix via an environment variable?
It should be possible to do a make like this: nmake prefix=whatever ... At one point that worked. I recently tried it with nmake install, and that did the right thing. The files that are created from .in files will have the wrong values in them if you do the prefix trick only at install time. The only problem that remains is:
Also, it seems that
CLIENTS_PREFIX MONETDB4_PREFIX MONETDB5_PREFIX
are required, but HowToStart-SQL-Win32.txt only mentions MONETDB_PREFIX.
You're right. The documentation is behind. Also, it might be good if these variables could use some sort of default that is derived from a single value so that you don't need to set them all.
And a related question: Is it possible to use a build directory outside of the source tree (under Win32)?
That should be possible using the prefix trick above. -- Sjoerd Mullender
Sjoerd Mullender wrote:
On 2007-03-21 11:10, Steffen Goeldner wrote:
HowToStart-SQL-Win32.txt says
In case the install (i.e., prefix) directories of MonetDB and MonetDB/SQL are identical, ...
However, it seems that prefix is fixed in NT/Makefile
prefix = $(MAKEDIR)
Would it be possible to control the prefix via an environment variable?
It should be possible to do a make like this:
nmake prefix=whatever ...
Aah, thanks! Indeed it installs in a directory of my choice.´ However, dependent module no longer find the include files. E.g. clients/NT/rules.msc contains MONETDB_CFLAGS=-I$(TOPDIR)\..\..\MonetDB\NT\include ... It works with MONETDB_CFLAGS=-I$(prefix)\include ... but only if $(prefix) is not the default $(MAKEDIR). AFAICS, we need a $(MONETDB_INSTALL_DIR) or something like that. Steffen
Steffen Goeldner wrote:
Aah, thanks! Indeed it installs in a directory of my choice.´ However, dependent module no longer find the include files. E.g. clients/NT/rules.msc contains
MONETDB_CFLAGS=-I$(TOPDIR)\..\..\MonetDB\NT\include ...
It works with
MONETDB_CFLAGS=-I$(prefix)\include ...
but only if $(prefix) is not the default $(MAKEDIR). AFAICS, we need a $(MONETDB_INSTALL_DIR) or something like that.
MONETDB_CFLAGS is used by clients and MonetDB4 (and only to set INCLUDES), whereas the other modules use MONETDB_INCS. Any objections if I change MONETDB_CFLAGS to MONETDB_INCS (and drop it from buildtools)? Steffen
Steffen Goeldner wrote:
Steffen Goeldner wrote:
Aah, thanks! Indeed it installs in a directory of my choice.´ However, dependent module no longer find the include files. E.g. clients/NT/rules.msc contains
MONETDB_CFLAGS=-I$(TOPDIR)\..\..\MonetDB\NT\include ...
It works with
MONETDB_CFLAGS=-I$(prefix)\include ...
but only if $(prefix) is not the default $(MAKEDIR). AFAICS, we need a $(MONETDB_INSTALL_DIR) or something like that.
MONETDB_CFLAGS is used by clients and MonetDB4 (and only to set INCLUDES), whereas the other modules use MONETDB_INCS.
Any objections if I change MONETDB_CFLAGS to MONETDB_INCS (and drop it from buildtools)?
No objections from me (as long as things keep compiling of course ;-) ). -- Sjoerd Mullender
Sjoerd Mullender wrote:
Any objections if I change MONETDB_CFLAGS to MONETDB_INCS (and drop it from buildtools)?
No objections from me (as long as things keep compiling of course ;-) ).
Done. Next step: In rules.msc we find MONETDB_INCLUDEDIR=$(MONETDB_PREFIX)\include MONETDB_INCS="-I$(MONETDB_INCLUDEDIR)" ... (and similar for MONETDB4, MONETDB5). But we have CLIENTS_INCS=-I$(TOPDIR)\..\..\clients\NT\include ... I'd like it this way: CLIENTS_INCLUDEDIR=$(CLIENTS_PREFIX)\include CLIENTS_INCS="-I$(CLIENTS_INCLUDEDIR)" ... Still no objections if I change this? Steffen
Steffen Goeldner wrote:
Sjoerd Mullender wrote:
Any objections if I change MONETDB_CFLAGS to MONETDB_INCS (and drop it from buildtools)?
No objections from me (as long as things keep compiling of course ;-) ).
Done. Next step: In rules.msc we find
MONETDB_INCLUDEDIR=$(MONETDB_PREFIX)\include MONETDB_INCS="-I$(MONETDB_INCLUDEDIR)" ...
(and similar for MONETDB4, MONETDB5). But we have
CLIENTS_INCS=-I$(TOPDIR)\..\..\clients\NT\include ...
I'd like it this way:
CLIENTS_INCLUDEDIR=$(CLIENTS_PREFIX)\include CLIENTS_INCS="-I$(CLIENTS_INCLUDEDIR)" ...
Still no objections if I change this?
Go for it! -- Sjoerd Mullender
participants (2)
-
Sjoerd Mullender
-
Steffen Goeldner