[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems getting dependencies compiled before executable....
From: |
cs |
Subject: |
Problems getting dependencies compiled before executable.... |
Date: |
Tue, 3 Jun 2003 21:16:47 -0700 (MST) |
I have multiple executables built from my source tree.
Some files in 1 directory are needed by many executables
so I made a library to link everwhere needed.
This one directory now must build this library and ALSO
the executable in that directory. It was a real struggle
to get library built FIRST as well as executable in same
directory. I don't know if I did it
the easiest way.
Autotools book mentions putting SUBDIRS at the TOP
of Makefile.am with a "." (i.e. current directory) as
one of the subdirs. Apparently you can get current
directory worked on before subdirs this way.
I would have preferred that build system would see
myprogram_DEPENDENCIES = libmylibrary.a
and automatically known to build library FIRST.
Instead I always got messages about 'make' not finding
rule to build this target even though I have
noninst_LIBRARIES = libmylibrary.a in same Makefile.am.
Any help would be greatly appreciated.
Sincerely,
Chris
- Problems getting dependencies compiled before executable....,
cs <=