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
4
votes
1 answer

(automake, libtool) build fails in automake when using same source file name in different directory

OS: Ubuntu 14.14 automake version: automake (GNU automake) 1.14.1 I build source codes to make a shared library by using automake. But I got a error that automake may can't handle source codes which are same name and different directory. Can't I…
김지욱
  • 71
  • 6
4
votes
3 answers

autotools: compiling with code from another directory

I have the following structure: +Makefile.am +-common | +-common.c | +-common.h | +-module1 | +module1.c | +Makefile.am | +-module2 | +module2.c | +Makefile.am where each moduleX is actually made of many C and header files, and therefore deserve…
user1159290
  • 951
  • 9
  • 27
4
votes
1 answer

How to deal with source code file auto-generated in the build process

I'm trying to build a third party library which uses auto-generated source code files. In normal case, this kind of files is generated by gnu build tools. My question is How can I tell the Android NDK build tools to generate and build this kind…
Walidix
  • 1,247
  • 5
  • 17
  • 27
4
votes
3 answers

Automake - difficulty with installing version 'automake-1.14.1'

I have problem with installing automake 1.14.1 on Rapbian (2014-09-09-wheezy-raspbian) distro. I wrote sh ./configure and then I wrote make then terminal wrote me that: $ make CDPATH="${ZSH_VERSION+.}:" && cd . &&…
Peter Kačur
  • 131
  • 1
  • 8
4
votes
0 answers

automake with PHONY targets

I am creating a package that uses Makefiles to build and installs various files on the system. Two of the targets requires including the Python and Java headers, so I resorted to using automake to create a configure script. I followed the directions…
prinsen
  • 748
  • 6
  • 16
4
votes
1 answer

Can I install a systemd file during distcheck using $dc_install_base?

I have the following Autotools code for installing a systemd service file, which must be installed outside of $prefix to a directory given by a pkg-config variable: (I know this is not proper, but I can't change the way systemd…
ptomato
  • 56,175
  • 13
  • 112
  • 165
4
votes
1 answer

automake: how set path to linker script?

I've just set up a cross-helloworld automake project (for stm32f4-discovery). There I have a custom discovery.ld scrpt. I put a line in my Makefile.amAM_LDFLAGS = -T discovery.ld. The problem starts when I run confgure from a different folder (e.g.…
krokoziabla
  • 695
  • 1
  • 6
  • 21
4
votes
2 answers

Build m4, autoconf, automake, libtool on unix

I'm trying to setup PHP, apache environment on HP-UX server. While install i'm using usual commands of "./configur, make, make install". Here when I'm trying to install PCRE I got an error like follows. CDPATH="${ZSH_VERSION+.}:" && cd . &&…
sugunan
  • 4,408
  • 6
  • 41
  • 66
4
votes
1 answer

Non recursive (non-recursive) Automake

I am trying to convert a project to use non-recursive automake. Based on a search on SO I could see that the topic has been covered to some extend. But there are not really any questions on how to convert a recursive automake project to a non…
lanoxx
  • 12,249
  • 13
  • 87
  • 142
4
votes
1 answer

Automake Combine two static libraries into one

I am trying to include symbols from a pre-built static library into a static library that I am building. The static library that I am building is then used inside of an executable. The problem I am having is that I am getting undefined symbols in my…
Matthew Hoggan
  • 7,402
  • 16
  • 75
  • 140
4
votes
2 answers

automake: Add dependency to _PROGRAMS target

so I currently have this weird problem with autotools. I have a target A that I list in bin_PROGRAMS (it's my primary target). I've split up my application into a main file with just the main function (target A) and everything else which gets built…
baedert
  • 73
  • 1
  • 6
4
votes
1 answer

What is the best way to set compilation flags for individual source files using GCC and autotools?

I need to disable optimization flag for a individual file using autotools. What is the best way to do it?
zoli2k
  • 3,388
  • 4
  • 26
  • 36
4
votes
1 answer

xcode external build system - Shell Script Invocation Error

I am building my makefile project in xcode5 which works perfectly well for the most part. It is a autoconf project with many subdirectories - no big deal. I do have an issue with the Issue Navigator however. When I have a bug in one of the files…
stackmate
  • 908
  • 9
  • 17
4
votes
1 answer

How would one setup autotools to build a project for separate architectures, concurrently, on multiple systems?

I've got a C++ project which uses automake and autoconf. I'm new to both of these. My home directory is network mounted -- the same on every server we have -- and I want to compile and run the project (and its executable) concurrently on separate…
Translunar
  • 3,739
  • 33
  • 55
4
votes
4 answers

How to configure autotools/gcc to print warnings and errors with the absolute path?

I'm compiling an autotools C based project and I'm getting some warnings and errors. They are displayed like this: foo.c:123: warning: some message I would like them to be displayed like this: /full/path/to/foo.c:123: warning: some message I know…
ivarec
  • 2,542
  • 2
  • 34
  • 57