[Top][All Lists]

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

Automake and literate programming

From: Ralf Hemmecke
Subject: Automake and literate programming
Date: Mon, 31 Mar 2008 10:22:25 +0200
User-agent: Thunderbird (X11/20080213)


I would like to use Automake for the creation of a library. I am not so sure whether this is the right place to ask since I also wanted to consider LibTools, but I am not so far, yet.

All my source files are Noweb files ( Additionally, these files contain Aldor ( source code.

Now, the way to compile a library is as follows.

notangle >
aldor -fao
  # This generates the file
ar rv
aldor -fo -l mylib
  # This generates the file foo.o.
  # If needed, the compiler could produce a .c file from
  # an .ao file. 'aldor -fc -lmylib'
  # The .c file is intermediately really produced anyway and
  # compiled with a C compiler.
ar rv mylib.a foo.o
ranlib mylib.a

Of course, the library would contain foo1, foo2, etc.

As you can see, there are, in fact, two libraries, namely, (a library of machine independent object code) and mylib.a (machine dependent code). The two libraries have to be distributed.

Can I somehow use the standard primaries to tackle this case?

Further, documentation 'make dvi' should also take the .nw files as sources.

noweave >

(Yes, I want those triple extensions, since the foo* files are actually concatenated or rather included in a main .tex file.)

Until now I have the impression, that I have to do everything by hand, ie. that Automake doesn't give me much help in the build process. OK, I get all the standard targets and also VPATH compilation (which I really appreciate), but otherwise I am quite unsure if Automake could make my shorter.

It also seems that Libtool cannot help me at all. Any ideas?

Thank you in advance for any hints.

Ralf Hemmecke

reply via email to

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