[erlang-patches] Producing dependencies Makefile for Erlang using erlc(1)

Jean-Sébastien Pédron jean-sebastien.pedron@REDACTED
Wed Oct 29 16:51:08 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29.10.2008 16:30, Oscar Hellström wrote:
> How does this deal with header files included with -include_lib(). 
> For our build purposes we use a small shellscript to generate
> dependencies, which also takes -include_lib directives into
> consideration.

"-include_lib" directives are expanded before the new options are
treateed so it's supported.

If we take the following module:
    -module(mod3).
    -include_lib("xmerl/include/xmerl.hrl").
    ...

The command "erlc -M mod3.erl" will output:
    mod3.beam: mod3.erl \
      /usr/local/lib/erlang/lib/xmerl-1.1.10/include/xmerl.hrl

> I must say that I really welcome this though :)

Thanks!

> Now we just support for pkg-config to be able to compile drivers
> without pain as well.

Yes, it would be great to have this :)

- --
Jean-Sébastien Pédron
http://www.dumbbell.fr/

PGP Key: http://www.dumbbell.fr/pgp/pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkIhmwACgkQa+xGJsFYOlPvcQCfXK5XPNowRVxFocpjDeC1z3H0
Ae8AoKxxboK9brW2cohGJ9AxtZLySF4y
=aaBI
-----END PGP SIGNATURE-----



More information about the erlang-patches mailing list