[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 25 Feb 2002 10:48:01 -0600
On Mon, 25 Feb 2002, Tom Tromey wrote:
> >>>>> "Samuel" == Samuel Meder <address@hidden> writes:
> Samuel> I've been working a bit at converting openssl to use auto
> Samuel> tools for the build process and since I want to avoid touching
> Samuel> source code as much as possible I had to find a way to set up
> Samuel> links between header files in the source directories and
> Samuel> $(top_srcdir)/include/openssl before building anything.
> For links one ordinarily uses AC_LINK_FILES in configure.
I knew I could do it using configure, I just liked the solution where
I just have to maintain one list of headers to be installed and linked
better. What I ended up doing was to include a link target like this
@$(PERL) $(top_srcdir)/util/mklink.pl \
for i in $(SUBDIRS); do \
(cd $$i; $(MAKE) links ); \
in all Makefiles (through a include statement). That way the link will
automatically be generated if someone adds a new header.