test-autotools-shared/README

30 lines
788 B
Plaintext
Raw Normal View History

2015-01-26 21:17:24 +01:00
# autotools-template
Template for an autotools (autoconf, automake) project
2015-01-26 21:27:39 +01:00
2015-01-28 22:47:35 +01:00
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 =
2015-01-26 21:27:39 +01:00
./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
2015-01-28 22:47:35 +01:00
Run:
./autogen.sh && ./configure && make
to test the whole setup.
You need to run ./autogen.sh && ./configure after modifying *.ac or *.am files