This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Filename problems using Java compiler



I already posted my fix to getting Java to compile a while back.

# Makefile
JAVA_CLASSES = Foo.class FooBar.class

all: $(JAVA_CLASSES)

# Each class file depends on its java file
%.class: %.java
	$(JAVA_COMPILER) $(JAVA_CSWITCH) $<
	@cp -v $(@:.class=)*.class $(INSTALL_DIR)

#Note that INSTALL_DIR is on the local classpath

#Note that javac is getting passed the proper name casing

# Additonal dependencies for each target
FooBar.class: Foo.class

# Braindead eNp-Ty make.exe workarounds when cases differ
Foo.class: Foo.java
FooBar.class: FooBar.java



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com