| 1 |
# Makebase |
| 2 |
#*************************************************************************** |
| 3 |
# |
| 4 |
# Java Project Makefile base environment |
| 5 |
# |
| 6 |
# (C) 1999 Jacob Dreyer - Geotechnical Software Services |
| 7 |
# [email protected] - http://geosoft.no |
| 8 |
# |
| 9 |
# Modifications Copyright (C) 2001-2007 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 |
# Directories. |
| 31 |
# |
| 32 |
# This section describes the directory structure of the development area. |
| 33 |
# The convention is to use a common root directory for development which |
| 34 |
# includes sub directories for source, classes and documentation. |
| 35 |
# |
| 36 |
#*************************************************************************** |
| 37 |
|
| 38 |
# Set the JAVA_HOME environment variable to point to the root of the |
| 39 |
# JDK installation. |
| 40 |
|
| 41 |
# Set the JAVA_DEV_ROOT environment variable to point to the root of the |
| 42 |
# Java development tree, that is, the directory that contains the src, |
| 43 |
# classes, and doc directories. |
| 44 |
|
| 45 |
# Set PATH_SEP to a semicolon for Windows and a colon for Unix. |
| 46 |
|
| 47 |
THE_ROOT = $(subst \,/,$(JAVA_DEV_ROOT)) |
| 48 |
|
| 49 |
SOURCE_DIR = $(THE_ROOT)/src |
| 50 |
CLASS_DIR = $(THE_ROOT)/classes |
| 51 |
DOC_DIR = $(THE_ROOT)/doc |
| 52 |
BIN_DIR = $(THE_ROOT)/bin |
| 53 |
TOOLS_DIR = $(THE_ROOT)/tools |
| 54 |
GLR_DIR = $(THE_ROOT)/glr |
| 55 |
DATA_DIR = $(THE_ROOT)/data |
| 56 |
FONDA_DIR = $(THE_ROOT)/fonda |
| 57 |
|
| 58 |
JAR_TMP = $(THE_ROOT)/jar.tmp |
| 59 |
DIST_TMP = $(THE_ROOT)/xtc |
| 60 |
|
| 61 |
#*************************************************************************** |
| 62 |
# |
| 63 |
# Tools. |
| 64 |
# |
| 65 |
# This section list the tools required to build the java classes and |
| 66 |
# packages. |
| 67 |
# |
| 68 |
#*************************************************************************** |
| 69 |
|
| 70 |
CP = cp |
| 71 |
RM = rm -f |
| 72 |
MKDIR = mkdir |
| 73 |
CPDIR = cp -R |
| 74 |
RMDIR = rm -rf |
| 75 |
FIND = find |
| 76 |
JAR = jar |
| 77 |
ZIP = zip |
| 78 |
JAVA = java -ea |
| 79 |
JAVAC = javac |
| 80 |
JAVAH = javah |
| 81 |
JAVANCSS = $(JAVA) -jar $(BIN_DIR)/javancss.jar |
| 82 |
JUNIT = $(JAVA) junit.textui.TestRunner |
| 83 |
RATS = $(JAVA) xtc.parser.Rats -in $(SOURCE_DIR) |
| 84 |
TYPICAL = $(JAVA) xtc.typical.Typical |
| 85 |
FACTORY = $(JAVA) xtc.lang.FactoryFactory |
| 86 |
|
| 87 |
ifeq ($(JAVAC),jikes) |
| 88 |
JAVAC_OPTIONS = -d $(CLASS_DIR) -sourcepath $(SOURCE_DIR) \ |
| 89 |
-classpath $(CLASS_DIR)$(PATH_SEP)$(JAVA_RUNTIME) |
| 90 |
else |
| •91 |
JAVAC_OPTIONS = --release 8 -d $(CLASS_DIR) -sourcepath $(SOURCE_DIR) |
| 92 |
endif |
| 93 |
|
| 94 |
JAVAH_OPTIONS = |