gcj inner class syntax sugar.

Paul D. Smith psmith@gnu.org
Wed Mar 2 21:52:00 GMT 2005


%% Steve Pribyl <steve@netfuel.com> writes:

  sp> But that is not really the problem at had.

Sorry, but I don't see the problem... just the makefile.


  sp> %.o:%.class
  sp>      $(GCJ) -c -o '$@' $(GCJFLAGS) '$<'

  sp> %_g.o:%.class
  sp>      $(GCJ) -c -o '$@' $(GCJFLAGS) '$<'

Note you really want these to appear in the opposite order.  By having
them in this order the second one will never be used.  Although I guess
since they're identical in terms of flags, really they're completely
redundant.  You should just remove the %_g.o one and call it good.

  sp> GCJ_BOOT_JAVA_PARTS=$(shell find ../com -name "*.class")
  sp> GCJ_BOOT_PARTS=$(GCJ_BOOT_JAVA_PARTS:.class=.o)

As Boris pointed out you need to use simple variables (:=) here instead
of recursive variables.  That will very likely solve your problem
completely.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



More information about the Java mailing list