1 ########################################################################### 2 # reserved comment block 3 # DO NOT REMOVE OR ALTER! 4 ########################################################################### 5 ########################################################################## 6 # Copyright 2001-2004 The Apache Software Foundation. 7 # 8 # Licensed under the Apache License, Version 2.0 (the "License"); 9 # you may not use this file except in compliance with the License. 10 # You may obtain a copy of the License at 11 # 12 # http://www.apache.org/licenses/LICENSE-2.0 13 # 14 # Unless required by applicable law or agreed to in writing, software 15 # distributed under the License is distributed on an "AS IS" BASIS, 16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 # See the License for the specific language governing permissions and 18 # limitations under the License. 19 ########################################################################## 20 # 21 # $Id: Makefile.inc,v 1.2 2004/02/17 16:32:49 minchau Exp $ 22 # 23 #################################################################### 24 # # 25 # Makefile.inc for XSLT compiler # 26 # # 27 #################################################################### 28 29 #################################################################### 30 # Useful macros # 31 #################################################################### 32 33 JAVAC = javac 34 #JAVAC_FLAGS = -g -d $(XSLT)/src/classes 35 JAVAC_FLAGS = -sourcepath $(XSLT)/src 36 JAVACC = javacc 37 JAVACC_FLAGS = -static=FALSE 38 JAVACUP = javacup 39 JAVACUP_FLAGS = 40 JAVALEX = jlex 41 JAVALEX_FLAGS = 42 43 #################################################################### 44 # Explicit rules # 45 #################################################################### 46 47 .SUFFIXES: .java .class .jj .lex .cup 48 49 .java.class: 50 $(JAVAC) $(JAVAC_FLAGS) $< 51 52 .jj.java: 53 $(JAVACC) $(JAVACC_FLAGS) $< 54 55 .cup.java: 56 $(JAVACUP) $(JAVACUP_FLAGS) $< 57 58 .lex.java: 59 $(JAVALEX) $(JAVALEX_FLAGS) $< 60