--- Begin Message ---
Subject: |
Re: Support for new languages |
Date: |
Sun, 18 Aug 2002 04:26:47 +0200 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat 17 Aug 2002 19:25, you wrote:
> >>>>> "Rafael" == Rafael Jesus Alcantara Perez <address@hidden> writes:
>
> Rafael> Is there any way of adding support for new languages to
> Rafael> AUTOMAKE, without modifying the source of the main AUTOMAKE
> Rafael> script (usually /usr/bin/automake)?
>
> It depends.
>
> If the language is a simple C-like language then suffix rules may
> suffice.
>
> And of course you can always write support code in a .am file that you
> `include' wherever you need it. This works if the support you need is
> largely boilerplate rules without special processing.
>
> Otherwise, you need to hack automake. What language are you concerned
> about?
>
It is a precompiler of embedded SQL to C++ and Java
(http://uesqlc.dedalo-ing.com/), so the suffixes are .uesql.cc and
.uesql.java, so the result suffixes are .cc and .java.
This is a typical piece of text I have to include in every 'Makefile.am':
%.cc : %.uesql.cc $(UESQL_GENERATED_FILES)
$(UESQLC) $< --output=$@ \
--cdml-path=$(UESQL_CDML_PATH) \
--main-file \
--language=c++ \
--target=$(UESQL_TARGET) \
$(UESQLFLAGS)
By the way, not so long ago I send a request for enhancement in the Intel C++
for Linux, to add support to AUTOCONF/LIBTOOL. The request was moved to the
next version of the ICC, I hope that this will be the release 7.0.
Greets.
Rafael.
- --
+----------
| Rafael Jesus Alcantara Perez.
| Email: mailto:address@hidden
| Registered Linux User: #45989
| PGP: http://pgp.rediris.es:11371/pks/lookup?op=index&search=0x97A85043
+---------------------
"For every complex problem there is a solution that is concise, clear,
simple, and wrong."
(H. L. Mencken)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9Xv2pVE976peoUEMRArplAJ9CkdUZEfAGA9kHyg8/h//EzxRc9ACfQZen
qQHhKXNKdMqvUrlT0W+CbvU=
=v9hK
-----END PGP SIGNATURE-----
--- End Message ---