| 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 | # This section describes the current package. |
| 32 | # |
| 33 | # o PACKAGE - The complete package name. |
| 34 | # o PACKAGE_LOC - Same as PACKAGE but with "/"s instead of "."s. |
| 35 | # o SOURCE - List of the source files. Remember extension. |
| 36 | # o JNI_SOURCE - Files from SOURCE that are to be built with the JAVAH |
| 37 | # compiler. |
| 38 | # o JAR_EXTRAS - None-class files and directories that are to be bundled |
| 39 | # into the jar archive. |
| 40 | # |
| 41 | #*************************************************************************** |
| 42 | |
| 43 | PACKAGE = xtc.lang.c |
| 44 | PACKAGE_LOC = xtc/lang/c |
| 45 | |
| 46 | SOURCE = \ |
| 47 | CTypes.java \ |
| 48 | CSupport.java \ |
| 49 | CAnalyzer.java |
| 50 | |
| 51 | JNI_SOURCE = |
| 52 | |
| 53 | JAR_EXTRAS = |
| 54 | |
| 55 | |
| 56 | |
| 57 | #*************************************************************************** |
| 58 | # |
| 59 | # Include common part of makefile |
| 60 | # |
| 61 | #*************************************************************************** |
| 62 | |
| 63 | ifdef JAVA_DEV_ROOT |
| 64 | include $(JAVA_DEV_ROOT)/Makerules |
| 65 | |
| 66 | JAVAC_OPTIONS = -Xlint:unchecked -d $(CLASS_DIR) -sourcepath $(SOURCE_DIR) |
| 67 | |
| 68 | analyzers : |
| 69 | $(TYPICAL) -Otype -Ofold-let -Oswitch -node translation_unit C.tpcl |
| 70 | $(JAVAC) $(JAVAC_OPTIONS) CTypes.java |
| 71 | $(JAVAC) $(JAVAC_OPTIONS) CSupport.java |
| 72 | $(JAVAC) $(JAVAC_OPTIONS) CAnalyzer.java |
| 73 | |
| 74 | .PHONY : check |
| 75 | |
| 76 | endif |