Re: How to use another module at build time?

Michael Kappert <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <[email protected]>
On 04/09/2012 08:26 PM, Sam Steingold wrote:
>> * Michael Kappert<[email protected]>  [2012-04-08 22:08:02 +0200]:
>>
>> Nothing is wrong with the above REQUIRE form itself, but with the way
>> clisp-link is used in the overall Makefile (in the 'full' target): It
>> first tries to compile all requested modules before creating dynmod
>> entries.
>
> This is not true.
> prepare_dynamic_module in clisp-link is called for each module one by
> one and it does create the files in dynmod one by one.

Indeed, sorry.
Looks like the Makefile of module gtk+3 is invoked from the anymodule 
target because it's a prerequisite for target all (via  $(MODULES)).

My gtk+3 Makefile contains
  gtkffi.fas gtkffi.c : $(srcdir)/gtkffi.cl gtk3-package.fas
	$(CLISP) -c $(srcdir)/gtkffi.cl -o ./
and compiling gtkffi.cl requires the 'gir' module   (the GTK+ 
introspection typelibs are queried to produce FFI forms at compile time).

I moved the resp. prerequisites from the clisp-module target to a new 
target and call the new target from link.sh(.in). I still need to clean 
things up but building the modules now works as desired.

Thanks!


Michael
--

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.