| 1 | # Makefile 2 |
| 2 | #*************************************************************************** |
| 3 | # |
| 4 | # Java development root directory. |
| 5 | # |
| 6 | # (C) 1999 Jacob Dreyer - Geotechnical Software Services |
| 7 | # [email protected] - http://geosoft.no |
| 8 | # |
| 9 | # Modifications Copyright (C) 2001, 2004 Robert Grimm |
| 10 | # [email protected] |
| 11 | # |
| 12 | # This program is free software; you can redistribute it and/or |
| 13 | # modify it under the terms of the GNU General Public License |
| 14 | # as published by the Free Software Foundation; either version 2 |
| 15 | # of the License, or (at your option) any later version. |
| 16 | # |
| 17 | # This program is distributed in the hope that it will be useful, |
| 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | # GNU General Public License for more details. |
| 21 | # |
| 22 | # You should have received a copy of the GNU General Public License |
| 23 | # along with this program; if not, write to the Free Software |
| 24 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | # |
| 26 | #*************************************************************************** |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | #*************************************************************************** |
| 32 | # |
| 33 | # This section describes the current package. |
| 34 | # |
| 35 | # o PACKAGE - The complete package name. |
| 36 | # o PACKAGE_LOC - Same as PACKAGE but with "/"s instead of "."s. |
| 37 | # o SOURCE - List of the source files. Remember extension. |
| 38 | # o JNI_SOURCE - Files from SOURCE that are to be built with the JAVAH |
| 39 | # compiler. |
| 40 | # o JAR_EXTRAS - None-class files and directories that are to be bundled |
| 41 | # into the jar archive. |
| 42 | # |
| 43 | #*************************************************************************** |
| 44 | |
| 45 | PACKAGE = xtc.lang.c4 |
| 46 | PACKAGE_LOC = xtc/lang/c4 |
| 47 | |
| 48 | SOURCE = \ |
| 49 | C4Parser.java \ |
| 50 | C4Reader.java \ |
| 51 | C4.java \ |
| 52 | AspectTransformer.java \ |
| 53 | AspectFunctionAnalyzer.java \ |
| 54 | C4Aspect.java \ |
| 55 | C4AspectManager.java \ |
| 56 | C4Printer.java \ |
| 57 | C4CFactory.java \ |
| 58 | C4ParserState.java \ |
| 59 | C4Driver.java |
| 60 | |
| 61 | CFACTORY = C4CFactory |
| 62 | |
| 63 | JNI_SOURCE = |
| 64 | |
| 65 | JAR_EXTRAS = |
| 66 | |
| 67 | |
| 68 | #*************************************************************************** |
| 69 | # |
| 70 | # Include common part of makefile |
| 71 | # |
| 72 | #*************************************************************************** |
| 73 | |
| 74 | ifdef JAVA_DEV_ROOT |
| 75 | include $(JAVA_DEV_ROOT)/Makerules |
| 76 | |
| 77 | parsers : |
| 78 | $(RATS) -option 'parser(xtc.lang.c4.C4Parser)' C4.rats |
| 79 | $(JAVAC) $(JAVAC_OPTIONS) C4Parser.java |
| 80 | |
| 81 | $(RATS) -option 'parser(xtc.lang.c4.C4Reader)' -option withParseTree -option verbose C4.rats |
| 82 | $(JAVAC) $(JAVAC_OPTIONS) C4Reader.java |
| 83 | |
| 84 | factories : |
| 85 | $(FACTORY) -C $(CFACTORY).ffc |
| 86 | $(JAVAC) $(JAVAC_OPTIONS) $(CFACTORY).java |
| 87 | |
| 88 | endif |