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
-1
votes
2 answers

How to handle library's function files (not header files) in autotools?

So recently I've been trying out autotools to build a C++ Library. Originally I was just working on pure custom classes, which is quite easy to just #include and then compile with g++. But when I want to write some custom functions for the library,…
Andrew.Wolphoe
  • 420
  • 5
  • 18
-1
votes
1 answer

autotools: Makefile.am: link if file exists

my Makefile.am creates the executable main: "symplerTest" i want to link the files "geometry/source/*.o". Currently im linking it like this: symplerTest_LDFLAGS = \ ... geometry/source/*.o That works. But now in a next step, i want to link…
mudi_lou
  • 13
  • 3
-1
votes
1 answer

No rule to make .o file

I want to use .la library in my code. .la library generated from some source code. I want to use automake and autoconf tools to generate makefile and compile it. my configure.ac : AC_INIT([Tutorial Program], 1.0) AC_CONFIG_AUX_DIR(.) …
mhheydarchi
  • 79
  • 1
  • 5
-1
votes
1 answer

make: *** No rule to make target `main.c', needed by `main.o'

I'm just getting started with GNU Build tools and I've been trying to reproduce the hello world example (Creating-amhello) with a C++ source instead of a C source. However, I get the error indicated in the title. Below are the modified tutorial…
user3515814
  • 957
  • 2
  • 8
  • 13
-1
votes
1 answer

Standalone, minimal configure script for portable code

I've run into an issue with portability of code that I've written that I wish to distribute, it isn't. The Makefiles that I send along require a lot of editing before users can compile and optimize the code for their systems, which is something I'd…
Dave Williams
  • 376
  • 1
  • 3
  • 13
-1
votes
1 answer

How do you use automake 1.14.1

I'm trying to use the autoconf toolset to distribute my GPL'd API. I've got the basic distribution working but can't figure out how to do the rest. 1: How do I get a test executable to compile when the user wants to test the distribution. I don't…
lostbits
  • 928
  • 1
  • 9
  • 23
-1
votes
1 answer

multiple definition of main

I’m trying to create ./configure + make set for building C codes in following structure by using autotools. drive.c uses function in mylib.c [mylib] +mylib.c +mylib.h [src] +drive.c More details are here. [mylib.c] #include #include…
user1345414
  • 3,745
  • 9
  • 36
  • 56
-1
votes
1 answer

`configure.ac` file giving errors

I am creating a toy example for learning autotools . I created the following files . configure.ac AC_INIT([hello], [0.01]) # safety check -list a source file that wouldn't be in other directories : …
abkds
  • 1,764
  • 7
  • 27
  • 43
-1
votes
1 answer

Is it possible create 2 binaries with different compilers with automake?

I need to build two binaries and each one need to be compiled with different toolchains. Is it possible with automake?
Lord_Rafa
  • 33
  • 7
-1
votes
1 answer

Building Gstreamer Code?

I wanted to know why autoconf and automake (auto tools) are used to Build the Gstreamer(and odes like gstramer). These I suppose are used to generate the Makefiles which then can be used by simply running make command. What are makefile.am and…
Raulp
  • 7,758
  • 20
  • 93
  • 155
-2
votes
1 answer

how to integrate libwnck-3.0 in autotools makefile.am

All the libs and dependencies are correct installed on my linux box. i can compile my test program with libwnck-3.0 in a simple make file: LDFLAGS = -lX11 `pkg-config --cflags --libs gtkmm-3.0 libwnck-3.0 ` CPPFLAGS = -g -Wall -Wno-reorder…
yoo
  • 11
  • 1
-2
votes
1 answer

What is the best way to build C/C++ program in open source community?

We have a very old and big project which is mainly written by C (and a small piece of C++), and it can be built in both Linux and Windows. Currently, we write all the Makefiles in this project manually which I think is not good. Now we want to make…
Eric
  • 688
  • 1
  • 6
  • 17
1 2 3
72
73