automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: support for a program that compile files (like yacc or lex support)


From: Ralf Wildenhues
Subject: Re: support for a program that compile files (like yacc or lex support)
Date: Sun, 19 Dec 2010 11:47:31 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Vincent,

* Vincent Torri wrote on Sat, Dec 18, 2010 at 08:52:59PM CET:
> I saw in the automake doc a support for yacc and lex. I looked in
> automake/am/ and saw 2 files, lex.am and yacc.am, which seem to
> allow that support.
> 
> We have a program that tranforms .edc files into .edj files, and we
> would like to add similar support for that program.

One input file, one output file?

cat >edc-rules.am <<EOF
EDCC = edcc
.edc.edj:
        $(EDCC) $(EDCFLAGS) -o $@ $<
EOF


include edc-rules.am from each Makefile.am you want the rules in.

If you want to be able to choose the compiler at configure time,
you can remove the EDCC setting above and use in configure.ac
  AC_CHECK_PROGS([EDCC], [edcc])

(or AC_CHECK_TOOLS, if cross-compilers get prefixed names).

If that doesn't answer your question, please clarify what you want.

Thanks,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]