Re: Bug in IMake - Doesn't use DESTLIB

2002-09-10 Thread Alexander Gottwald

On Mon, 9 Sep 2002, Jean-Claude Gervais wrote:

 
   I've been trying to write an Imakefile that copies the shared-library I'm
 building to a directory specified using the DESTLIB variable when the 'make
 install' target is invoked.
 
   Although this works fine on Linux, invoking the 'make install' rule on
 Cygwin results in the DLL being copied to X11's 'bin' directory.
 
   Is this a know bug, and what should I do?

Hm, actually the dlls must be in the searchpath when the binary is started.
So it makes sense to locate in the bindir. I they are installed in DESTBIN.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




Re: Bug in IMake - Doesn't use DESTLIB

2002-09-10 Thread Alexander Gottwald

On Mon, 9 Sep 2002, Jean-Claude Gervais wrote:

 I'm sorry; I sent this to the list because imake is part of XFree.
 Is there a way for me to reach imake's maintainer if this query doesn't
 belong here?

I believe its our responsibility. Imake is only a tool for building
the Makefile with a large set of macros. These macros (and in special
the macro for installing the libraries) are written or modfied for
Cygwin/XFree

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




RE: Bug in IMake - Doesn't use DESTLIB

2002-09-10 Thread Jean-Claude Gervais

Alexander,

I've changed my Imakefile based on the recommendations both you and Han N.
Nguyen have made.

The only problem is that even though the shared library IS copied to the
proper destination, it's import-linking file (.a or .lib in Win32) is STILL
only being copied to the X folders:

Here's the Imakefile

-

#include Library.tmpl
LibraryObjectRule()

 LIBNAME = ldlib
SRCS = ldlib.cpp
OBJS = $(SRCS:.cpp=.o)

  CC = g++

   SOREV = 1.0

INCLUDES = -I../../include
 DESTLIB = ../../lib/Release/Cygwin

  BINDIR = ../../bin/Release/Cygwin
LOCALLIB = ../../lib/Release/Cygwin

SharedLibraryTarget($(LIBNAME),$(SOREV),$(OBJS),.,.)
InstallSharedLibrary($(LIBNAME),$(SOREV),$(DESTLIB))
DependTarget()
LintTarget()

-

And here is the output it produces:



make install
install -c -m 0644 libldlib.a /usr/X11R6/lib/libldlib.a
install -c -m 0644 libldlib.dll ../../bin/Release/Cygwin/libldlib.dll
install in . done


Have you any idea how to make the .a file go to ../../lib/Release/Cygwin
instead?

Thank you.

Jean-Claude



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Alexander Gottwald
Sent: Tuesday, September 10, 2002 6:25 AM
To: Cygwin-XFree
Subject: Re: Bug in IMake - Doesn't use DESTLIB

On Mon, 9 Sep 2002, Jean-Claude Gervais wrote:


   I've been trying to write an Imakefile that copies the
shared-library I'm
 building to a directory specified using the DESTLIB variable when the
'make
 install' target is invoked.

   Although this works fine on Linux, invoking the 'make install' rule
on
 Cygwin results in the DLL being copied to X11's 'bin' directory.

   Is this a know bug, and what should I do?

Hm, actually the dlls must be in the searchpath when the binary is started.
So it makes sense to locate in the bindir. I they are installed in DESTBIN.

bye
ago
--
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723