Autotools shared library test
Go to file
Ruben Laguna 9e4435791e Fix the glib-2.0 DEPS
There is no product_LIBS is product_LDADD
2015-02-06 17:51:56 +01:00
src Change to non-recursive makefiles 2015-01-28 23:15:42 +01:00
tests Fix the glib-2.0 DEPS 2015-02-06 17:51:56 +01:00
.gitignore Example 'make check' 2015-02-06 17:10:11 +01:00
AUTHORS Initial commit 2015-01-26 21:17:24 +01:00
autogen.sh Use the --make options with autoreconf 2015-01-31 20:43:25 +01:00
ChangeLog Initial commit 2015-01-26 21:17:24 +01:00
configure.ac Fix the glib-2.0 DEPS 2015-02-06 17:51:56 +01:00
COPYING Initial commit 2015-01-26 21:17:24 +01:00
Makefile.am Fix the glib-2.0 DEPS 2015-02-06 17:51:56 +01:00
NEWS Initial commit 2015-01-26 21:17:24 +01:00
README Add reference material 2015-01-28 22:51:33 +01:00

# autotools-template
Template for an autotools (autoconf, automake) project


Edit configure.ac to change the FULL-PACKAGE-NAME, VERSION and 
BUG-REPORT-ADDRESS fields to match your project.

Edit src/Makefile.am to configure the "products" or executables. 
bin_PROGRAMS = executable1 executable2
executable1_SOURCES = sourcefile1.c sourcefile2.c
executable1_CFLAGS = 
executable2_SOURCES = sourcefile3.c sourcefile4.c
executable2_CFLAGS = 



./autogen.sh will generate ./configure and the Makefile.in files
from the configure.ac, Makefile.am and src/Makefile.am files

./configure will generate config.h and Makefile and src/Makefile


Run: 
./autogen.sh && ./configure && make

to test the whole setup. 

You need to run ./autogen.sh && ./configure after modifying *.ac or *.am files

Reference material
==================

Autotools: A Practitioner's Guide to GNU Autoconf, Automake, and Libtool by John Calcote
Autotools Mythbuster https://autotools.io/index.html