Filename problems using Java compiler

Henry J. Cobb hcobb@telegenisys.com
Sun Feb 28 23:02:00 GMT 1999


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




More information about the Cygwin mailing list