[Vm-dev] Setting up a VMMaker image

Igor Stasenko siguctua at gmail.com
Wed Nov 11 07:08:48 UTC 2009


2009/11/11 Andreas Raab <andreas.raab at gmx.de>:
>
> Igor Stasenko wrote:
>>>
>>> This is a linker issue; freetype.a isn't included in the final VM link
>>> which
>>> it needs if you want to make FT2Plugin internal. I'm not sure how to deal
>>> with it in the long term, for now you can add the following line to
>>> winbuild/Makefile (after the STDLIBS definition):
>>>
>>> STDLIBS += ../platforms/win32/plugins/FT2Plugin/freetype.a
>>>
>>
>> Yeah.
>> The solution is to change the main makefile to include
>> 'makefile.extras' (if it exists), which should be located in plugin
>> dirs,
>> so in such  'makefile.extras' one could write:
>>
>> STDLIBS += ../platforms/win32/plugins/FT2Plugin/freetype.a
>>
>> but i don't remember the syntax for file inclusion, and not sure that
>> make utility in Win32-Tools-1.2.zip  supports includes.
>
> This exists and is actually already used by the external build of the
> FT2Plugin (see platforms/win32/plugins/FT2Plugin/Makefile). The issue is
> that a custom Makefile isn't included by default for the main VM build
> (because it includes Makefile.plugin in return) so it's a bit of classic
> recursive Makefile invocation / inclusion nightmare. Are there any decent
> alternatives to make these days? (by "decent" I mean small and to the point,
> not requiring megabytes of additional installation crap)
>
no no.. include but not call.

make anotherMakefile - is a separate call, in which you unable to see
& change any environment vars of caller.

include directive, however works similar to C/C++ #include directive -
puts the contents of included file in-place.

If you had a chance to see how FreeBSD using makefiles in their ports
collection, they use
include directive extensively. This is quite different from 'make
anotherMakefile ' calls.

See
http://www.gnu.org/software/automake/manual/make/Include.html

> Cheers,
>  - Andreas
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list