Hi all,
I am looking for a way to include extra rules in every Makefile.in that
automake generates. Currently you can add new rules which are implicitly
copied but there is no way to add rules for all files in a project (at
least one I can see).
For example, say I want to add rule to build assembler output, I want to
have:
%.s: %.c
$(CC) -S $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
included everywhere so I can just do a "make file.s" if I want to look at
the assembler output for some reason.
Firstly, is there an easy way to do this. If not, what is the best way to
add it? I thought I could just hack something up so that if there is a file
called amlocal.mk in the build directory it is implicitly included (ala
aclocal.m4 in automake).
Any thoughts?
--
Dean Povey, | e-m: [EMAIL PROTECTED] | JCSI: Java Crypto Toolkit
Research Scientist | ph: +61 7 3864 5120 | security.dstc.edu.au/
Security Unit, DSTC | fax: +61 7 3864 1282 | Oscar - C++ PKI Toolkit:
Brisbane, Australia | www: security.dstc.edu.au/ | oscar.dstc.qut.edu.au/