Questions tagged [automake]

Automake is a tool provided by GNU for the purpose of automating the generation of portable, configurable Makefiles.

Automake is a tool for automatically generating Makefile.ins from files called Makefile.am. Each Makefile.am is basically a series of make variable definitions, with rules being thrown in occasionally. The generated Makefile.ins are compliant with the GNU Makefile standards.

The GNU Makefile Standards Document (see Makefile Conventions) is long, complicated, and subject to change. The goal of Automake is to remove the burden of Makefile maintenance from the back of the individual GNU maintainer (and put it on the back of the Automake maintainers).

The typical Automake input file is simply a series of variable definitions. Each such file is processed to create a Makefile.in. There should generally be one Makefile.am per directory of a project.

Automake does constrain a project in certain ways; for instance, it assumes that the project uses Autoconf (see Introduction), and enforces certain restrictions on the configure.ac contents.

For more details, take a look into automake manual

1092 questions
0
votes
1 answer

Generating variable name source files when building with autotools

This question builds upon How to generate a source file when building using autotools I want to do something like : input.txt generator ./generator input.txt # produces The earlier question answers…
0
votes
2 answers

Automake pattern expansion

I'd like to include many files in one Makefile.am file in the xxx_SOURCES = ... part. Is there any way to use a typical shell expansions there? What I'm looking for is a working equivalent for: xxx_SOURCES = xxx.c…
viraptor
  • 33,322
  • 10
  • 107
  • 191
0
votes
1 answer

How to deal with multiple versions of Automake in configure.ac

I would like to selectively omit certain flags in my call to AM_INIT_AUTOMAKE in my configure.ac depending on the Automake version. Is there a way to do that? The specific problem I'm dealing with is that Automake 1.12 introduced some…
mgalgs
  • 15,671
  • 11
  • 61
  • 74
0
votes
1 answer

Custom .m4 macro not working with configure.ac

I'm trying to update an arcane scientific F77 program to the modern world by making it easier to install w/ a .configure script. However, this has proved to be more difficult than advertised. The program I'm dragging kicking and screaming into the…
soylentdeen
  • 101
  • 7
0
votes
1 answer

"Linking" to different versions of automake/autoconf tools

I am currently working on a machine to which I do not have sudo privileges. I am trying to build a library which requires Autoconf and Automake versions higher than the currently installed versions. I successfully installed autoconf in my home…
Alex Brooks
  • 1,151
  • 1
  • 10
  • 39
0
votes
1 answer

How to I install xscope (X11) on osx?

I want to debug my xlib based c++11 program using xscope on OSX 10.8.4. Not the designer tool, but the one talked about in this link. http://jklp.org/public/profession/papers/xscope/paper.htm Is this possible? How do I go about getting xscope…
Chad Skeeters
  • 1,468
  • 16
  • 19
0
votes
1 answer

openwrt config, autotools and library

I am using for the first time autotools & Cie and I am lost. I generate about one hundred dynamic libraries in my openwrt environment in differents packages. Later in a binary, I use dlopen + dlsym to use my library. This allow me to use a kind of…
ArthurLambert
  • 749
  • 1
  • 7
  • 30
0
votes
1 answer

autotools extending .PHONY

I'd like to add targets to the .PHONY targets list. However, when I redefine .PHONY in Makefile.am it overrides the previous one in the autogenerated Makefile. I just want to extend it. Is there an elegant way to do this?
Omer Dagan
  • 14,868
  • 16
  • 44
  • 60
0
votes
0 answers

Automake under linux, executable missing the .out extension.

I'm using autotools (autoconfig and automake) under Linux, but my executables are missing the .out extension. What am I forgetting to do?
gjcamann
  • 621
  • 4
  • 14
0
votes
1 answer

Makefile Automatic Dependencies Issues With Protocol Buffer Files

I'm having trouble establishing automatic dependency in my Makefile. The goal is to create a C++ library from a number of Protocol Buffer files, some of which might be in read-only directories. To get around the write permission, I want to…
nads
  • 378
  • 3
  • 13
0
votes
1 answer

Adding miscellaneous files to autotools

I have a data files of precalculated data, which should be included in my project under test subdirectory, so that test unit can read them and compare calculated results with what they're supposed to be. Doing make dist there are not included in the…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
0
votes
1 answer

How to link two .c files in this advanced makefile?

I wanna use some functions which are defined in libvmi/driver/xen.c file, in process-list.c file,but I don't know where in Makefile I should link this two ".c" files. I know how to do this in a simple Makefile but I couldn't find something like that…
Peggy
  • 639
  • 9
  • 28
0
votes
3 answers

I cannot build bison on cygwin using bootstrap

I believe that I have all the necessary tools and sources, including the latest sources of bison from its git repository. When I run ./bootstrap I get the following error: lib/local.mk:19: error: lib_libbison_a_SOURCES must be set with '=' before…
Efi Fogel
  • 730
  • 5
  • 11
0
votes
1 answer

automake and pkg-config conditional building

I want to include two sample programs A and B into the existing library packages. program A depends on libfoo library, and program B depends on libbar library. libfoo and libbar are provided as pkg-config aware. And I want that configure will…
cinsk
  • 1,576
  • 2
  • 12
  • 14
0
votes
2 answers

Automake: Remove configure script checks with make dist

I'm wondering if there is a way to remove dependency checks from a configure script when make dist is run. The purpose is that the version of the package in the repository uses emacs to execute lisp files and generate .c files, whereas those…
Brad
  • 5,845
  • 7
  • 30
  • 29