using target-specific variables?

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

 



Hi folks,

How can I use target-specific variables in Makefiles
generated by Automake?


My Makefile.am says something like

	lib_LIBRARIES = libmylib.a libmylib_gcc3.a

	libmylib_a_SOURCES      = foo.c bar.c
	libmylib_gcc3_a_SOURCES = $(libmylib_a_SOURCES)

	libmylib_gcc3.a: CC=gcc3


But Automake seems to assume that I would like to
define the build rule for libmylib_debug.a on my own.
At build time I get an error message saying

make: *** No rule to make target `libmylib_gcc3.a', needed by `all-am'.  Stop.

Reading the generated Makefile I found just the
build rule libmylib.a, so Make is right.

???


Regards

Harri


_______________________________________________
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