With the makefile I've supplied it's not necessary to create an entry for each file
you are compiling. The .java.class line handles compiling any .java file to a .class
file. All that it necessary then is to entry 'nmake Afile.class'.
Trevor
Trevor
"Larry M. Lemons" wrote:
> I have found that it is easier to just use javac *.java or
> javac MyClass.java instead of creating a makefile for each item I am
> working with...
<snip>
> On Thu, 20 May 1999, Trevor Stewart wrote:
>
> Use this in the Makefile:
>
> JAVAHOME = c:\java\jdk1.2
> JAVAC = $(JAVAHOME)\bin\javac.exe
> # Include you CLASSPATH below be sure
> # that '-classpath' starts the entry and that ';'
> # seperates each directory
> CLASSPATH = .;c:\java\jdk1.2\jre\lib\dt.jar;c:\java\JSDK2.0\lib\jsdk.jar
> JFLAGS = -g -deprecation
> .SUFFIXES: .java .class
>
> .java.class:
> $(JAVAC) $(JFLAGS) -classpath $(CLASSPATH) $*.java
>
> CLASSES = AClass.class \
> AnotherClass.class \
> YetAnotherClass.class
>
> ## Include custom targets below this line ##
>
> # The 'all' target below will compile all of the classes listed in the CLASSES
> var from above (nmake all)
> all:: $(CLASSES)
>
> # Another useful target
> clean::
> @del /s *.class
>
> ## End of Makefile
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html