This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.2 PATCH: Fully support parallel gnat1/gnatbind builds


Rainer Orth wrote:
> One issue seriously confused me: the old .adb.o and .ads.o suffix rules
> from ada/Makefile.in didn't work for me any longer: running e.g. make
> ada/gnat1drv.o in gcc just gave `ada/gnat1drv.o is up to date'.  I needed
> to change them into GNU make pattern rules so they work as expected.  Since
> ada bootstraps require GNU make anyway, this shouldn't be a problem, but
> it's still ugly, and I don't really understand why our .c.o suffix rules
> work for C sources in subdirs while the .ads.o etc. rules don't (probably
> because GNU make has built-in pattern rules for %.o: %.c, but not for Ada?).

Are .adb and .ads defined in the Makefile's SUFFIXES variable?  .c and .o
are included by default.

See <http://www.gnu.org/manual/make-3.79.1/html_chapter/make_10.html>.

-- 
Jonathan Lennox
lennox@cs.columbia.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]