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
3 answers

automake configure ignoring option --with-libxml2=yes

I am trying to compile, libgphoto2 with libxml2 support followint the guidelines here. Everything is ok until I try to run ./configure: ./configure --prefix=/tmp/gphoto2/local --with-libxml2=yes That appears to me as a correct syntax, however I…
viridis
  • 177
  • 10
0
votes
2 answers

Unable to get automake to build .proto files into .pb.cc files with google protocol buffers

I've been trying to get automake to automagically determine how to build .pb.cc and .pb.hh files from a google protocol buffers .proto description, but have had no luck. I've tried using this post on SO, but it still doesn't work. Here's an excerpt…
stix
  • 1,140
  • 13
  • 36
0
votes
1 answer

Makefile.in Files Not Generated with Automake 1.12.2

I recently upgraded my OS and upgraded my autotools versions with it. Now, one branch of my project will no longer build because automake no longer is using the Makefile.am files to generate the Makefile.in files. It is strange to me: automake…
dbeer
  • 6,963
  • 3
  • 31
  • 47
0
votes
2 answers

automake-ing in bison which works fine with handwritten makefile

Friends, I am trying to create Makefile via gnu-autotools for a flex+bison+C code (toy code, you ma say). The Handwritten Makefile works fine CC=gcc #-g -Wall FLEX=flex BISON=bison LIBS=lfl PROG=parse ${PROG}:bib.y scan.l main.c ${BISON} -d…
BaRud
  • 3,055
  • 7
  • 41
  • 89
0
votes
1 answer

compile zmq on sh4 CPU and occurs referenced by DSO error

I found if I add -shared, It will solve the make problem, but, I don't know where to modify the Makefile. I've tried LDFLAGS,CXXFLAGS in Makefile https://gist.github.com/anonymous/5453234 , it can not work. [dlin@h perf]$ make V=1 /bin/sh ../libtool…
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96
0
votes
1 answer

AM_CONDITIONAL testing size of type

I would like to define PLATFORM64 if SIZEOF_VOIDP equals 8, the configure snippet below don't work but shows what I would like to achieve. Is there a way of doing this in my configure script? # Get size of void* AC_CHECK_SIZEOF(void*) # Determine…
user152949
0
votes
2 answers

How to run scripts from within eclipse

I have a project that doesn't use autotools, but has a Makefile which I run to build the code. This make file is run from within in a shell script. I have imported the project in eclipse, but I can't seem to run the shell script (Something like Ctrl…
Bharath
  • 75
  • 8
0
votes
2 answers

Quick help in rebuilding an automake project

I got the source code of a project (which I can't reach the author any more), that uses automake. I'm not familiar with system and all I want to do is rebuild the project. I have the following files in the…
Benjamin K.
  • 1,085
  • 3
  • 15
  • 24
0
votes
3 answers

GNU make use file as target in SUFFIXES

Makefile is using .SUFFIXES: .ext1 .ext1: echo bla bla I have a configuration file path/to/abc.ext1 so make path/to/abc works fine. I want make path/to/abc.ext1 to work as well. It would be great if I can reuse existing .ext1 target.
user648129
0
votes
1 answer

Automake not including object files in built static library

I currently have a largish project including multiple applications and am trying to build a static library along with one of my applications for inclusion in several of the other applications. I followed the tutorial provided at…
babb517
  • 15
  • 2
0
votes
1 answer

Why does the automake program seem to have strange lookup precedence on osx?

I have my own program called automake which I originally wrote on an Ubuntu machine and recently wanted to get working on my machine running OSX Lion. I've compiled it up, copied it into my /Users/andrew/bin directory which is one of the first…
voltrevo
  • 9,870
  • 3
  • 28
  • 33
0
votes
1 answer

Cannot build microhttpd project. Makefile generation problems using cygwin

I'm trying to use microhttpd libraries in order to generate html sites from c++ code. I'm using netbeans on windows and compiling with cygwin. I have downloaded microhttpd latest version from ftp://ftp.gnu.org/gnu/libmicrohttpd/, and have been able…
toni
  • 713
  • 3
  • 7
  • 17
0
votes
1 answer

Adding GLib to an existing application with gnu toolchain (configure, Makefile, etc.)

I've added code to an existing large application and need to make GLib a requirement, as my code relies on it. For development, I just manually edited the Makefile to add -lglib-2.0 To the LIBS= variable and -I/usr/include/glib-2.0…
JJC
  • 9,547
  • 8
  • 48
  • 53
0
votes
1 answer

Defining additional make targets using gnu autotools

I am beginning to learn autotools in order to first understand and later extend an existing project's build system. Currently the project builds a program as it's output. The build system is quite complex consisting of several subdirectories and…
crobar
  • 2,810
  • 4
  • 28
  • 46
0
votes
2 answers

libtool deleted by 'make distclean'

I've copied libtool into my program's source tree to distribute it with the program. But when I run 'make distclean' libtool is deleted with the rest of the rest of the generated files. How do I stop that from happening? I tried putting EXTRA_DIST…
Steve K
  • 2,124
  • 16
  • 19