Hi there, I have a problem with renamed objects and other languages, like ZeroCs slice language and QTs user interface metalanguage.
So when I try to compile a file from another language with the suffix .x, the following snippet works fine, --- snip ---- SUFFIXES = .x .x.cc: %.cc %.h: %.x :> $*.cc :> $*.h bin_PROGRAMS = aaa aaa_SOURCES = main.cc foo.x --- snip ---- as soon long I don't add: --- snip ---- aaa_CXXFLAGS = -I. --- snip ---- the automatic renaming of the objectfiles breaks my compilation, because in the Makefile there is this rule created: --- snip ---- aaa-foo.o: foo.x if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(aaa_CXXFLAGS) $(CXXFLAGS) -MT aaa-foo.o -MD -MP -MF "$(DEPDIR)/aaa-foo.Tpo" -c -o aaa-foo.o `test -f 'foo.x' || echo '$(srcdir)/'`foo.x; \ then mv -f "$(DEPDIR)/aaa-foo.Tpo" "$(DEPDIR)/aaa-foo.Po"; else rm -f "$(DEPDIR)/aaa-foo.Tpo"; exit 1; fi --- snip ---- Which feeds g++ with foo.x. Is there a way to tell automake to create a rule for foo.cc instead? aaa-foo.o: foo.cc ...... Cheers, Florian