i am using automake to generate Makefile, but there are three
questions.
1. i create several directories such as src, lib, data, etc. the
binary file under src/ need linking static library in lib/, how could
i add the dependency which make sure lib/ dir is compiled before src/
dir?
2.the two dir src/ and lib/ would be compiled seperately, but
linking stage of src/ dir requires dynamic link params(-lpthread, -lm,
etc) for lib/ dir. how to make the tools add the required dynamic link
params for src/ compilation automatically?
3. the dir data/ contains the data files needed by final release,
and it must be placed in the same dir of binary files. for example,
bin/data directory. how to wrtie Makefile.am?
the files i want to modified are
configure.in and Makefile.am.Any
help would be appreciated.