help-make
[Top][All Lists]
Advanced

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

gcj inner class syntax sugar.


From: Steve Pribyl
Subject: gcj inner class syntax sugar.
Date: Tue, 01 Mar 2005 17:15:50 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Hey Folks,

I am trying to build an application using GCJ.
GCJ creates file with "$" in the name. The causes all kinds of problems when trying to compile *.class files and then putting the resulting *.o in to a *.a.

Any suggestions on how to cope with this without rewriting all the automatic 
rules?

The most annoying example is this
../../kernel/com/netfuel/dir/dds/StorageProvider$1DomainStarter.class
should compile to
../../kernel/com/netfuel/dir/dds/StorageProvider$1DomainStarter.o
and then get archived.


Makefile snipits.

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

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


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

libboot.a: GCJFLAGS=$(GCJFLAGS) -I.. -I. -I../../kernel $(OPTIMIZE_FLAGS)
libboot.a: $(GCJ_BOOT_PARTS) libboot.a($(GCJ_BOOT_PARTS))
        if [ "$(RANLIB)" ] ; then $(RANLIB) $@; fi

Thanks
--
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]