#### # This Makefile can be used to make a scanner (Yylex.class) # and to make a program that tests the scanner (simpleEx.class). # # make clean removes all generated files. # # Note: to run JLex, you need to make sure it's in your classpath # Taking into account the change needed to use jikes, modify the # CLASSPATH environment variable in your .cshrc.local file so that # it now looks like: # setenv CLASSPATH ".:/s/java/jre/lib/rt.jar:/p/course/cs536-hasti/public/JAVA" # # Don't forget to type: # source ~/.cshrc # after changing .cshrc.local ### ### # Here are the rules. ### simpleEx.class: simpleEx.java Yylex.class jikes -g simpleEx.java Yylex.class: example.jlex.java jikes -g example.jlex.java example.jlex.java: example.jlex java JLex.Main example.jlex ### # clean up ### clean: rm -f *~ *.class example.jlex.java