The task is to create configure.ac and Makefile.am files in ./ and ./src directories.
Source codes are placed into ./src/.
Choose name of the project and the program that will be created.
The main() function is implemented in main.c, it uses function implemented in mod1.c with header file mod1.h.
-
./ should contain configure.ac and Makefile.am
-
./src/ should contain Makefile.am
-
the content of ./Makefile.am should be:
SUBDIRS=src
-
the content of configure.ac can be prepared by autoscan(1) (but it should be manually edited)
-
to generate Makefiles, automake should by initialized using:
AM_INIT_AUTOMAKE([foreign])
where 'foreign' means that standard files such as NEWS, README, ChangeLog etc. will not be necessary.