I have the following problem and could not find anything in archives using keyword "wildcard".

When I have Makefile.am to have the following:

   lib_LIBRARIES= libutils.a
   libutils_a_SOURCES = $(wildcard *.c)

the resulting Makefile.in (or Makefile) does the following:

   libutils_a_SOURCES = $(wildcard *.c)
   am_libutils_a_OBJECTS =
   libutils_a_OBJECTS = $(am_libutils_a_OBJECTS)

with no .c.o: section included.   This Makefile does not build the library.
Is there any way to make the wild card work?

What I did to work around this, to do

   am_libutils_a_OBJECTS=$(libutils_a_SOURCES:%.c=%.o)

and added the .c.o section.   I wish that there is a better way.

My relevant software versions are: automake (GNU automake) 1.6.3, autoconf (GNU Autoconf) 2.57.

Thank you in advance for your answer.

Tosa

Yasunari Tosa, Ph.D. Email: [EMAIL PROTECTED]
NMR Ctr, Mass. General Hospital Building 149, 13th Street
Charlestown, MA 02129
USA




_______________________________________________
Autoconf mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to