# ######################################################################## # Macro definitions for Java compilations # # Edit the next 3 definitions. After that, "make" or "make java" will # build the program. # # As you define new classes, add them to the following list. # It may not be absolutely necessary, but it will help guarantee that # necessary recompilation gets done. # CLASSES= IntArray.class Quicksort.class SortAlgorithm.class TestSort.class Sortable.class # # Define special compilation flags for Java compilation. These may change when # we're done testing and debugging. JOPTIONS=-g -nowarn # # What is the name of the class containing the main() function? JTARGET=TestSort # # Because locations/versions of Java compilers may vary, you # may need to alter these to reflect the system on which you are working/ # Sigue al frente....... JAVAPATH=~/j2sdk1.4.1/bin CLASSPATH=. # The following is "boilerplate" to set up the standard compilation # commands: # .SUFFIXES: .SUFFIXES: .class .java .java.class: export CLASSPATH; CLASSPATH=$(CLASSPATH); $(JAVAPATH)/javac $(JOPTIONS) $*.java # # Targets: # all: $(CLASSES) java: $(CLASSES) javarun: $(CLASSES) export CLASSPATH; CLASSPATH=$(CLASSPATH); $(JAVAPATH)/java $(JTARGET) clean: -rm -f $(CLASSES)