$(wildcard *.c) usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: tosa@xxxxxxxxxxxxxxxxxxx
NMR Ctr, Mass. General Hospital Building 149, 13th Street
Charlestown, MA 02129
USA




_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux