0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License (the "License").
|
|
6 |
# You may not use this file except in compliance with the License.
|
|
7 |
#
|
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
# or http://www.opensolaris.org/os/licensing.
|
|
10 |
# See the License for the specific language governing permissions
|
|
11 |
# and limitations under the License.
|
|
12 |
#
|
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18 |
#
|
|
19 |
# CDDL HEADER END
|
|
20 |
#
|
|
21 |
|
|
22 |
#
|
|
23 |
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
# ident "@(#)Makefile.env 1.14 08/04/08 SMI"
|
|
27 |
#
|
|
28 |
|
|
29 |
#
|
|
30 |
# Common macros
|
|
31 |
#
|
|
32 |
|
|
33 |
SERVICE_HEAD = application/management
|
|
34 |
SERVICE_BASE = vpanels
|
|
35 |
SERVICE = $(SERVICE_HEAD)/$(SERVICE_BASE)
|
|
36 |
|
|
37 |
# Installation directories
|
|
38 |
DOC_DIR = /usr/share/lib/java/javadoc
|
|
39 |
JAR_DIR = /usr/share/lib/java
|
|
40 |
LIB_DIR = /usr/lib
|
|
41 |
MFS_DIR = /var/svc/manifest
|
|
42 |
|
|
43 |
PROTO_BIN = $(ROOT)/usr/bin
|
|
44 |
PROTO_DOC = $(ROOT)/$(DOC_DIR)
|
|
45 |
PROTO_ETC_CACAO = $(ROOT)/etc/cacao/instances/default/modules
|
|
46 |
PROTO_ETC_VPANELS = $(ROOT)/etc/vpanels
|
|
47 |
PROTO_JAR = $(ROOT)/$(JAR_DIR)
|
|
48 |
PROTO_LIB = $(ROOT)/$(LIB_DIR)
|
|
49 |
PROTO_MFS_SYSTEM = $(ROOT)$(MFS_DIR)/system
|
|
50 |
PROTO_MFS_NETWORK = $(ROOT)$(MFS_DIR)/network
|
|
51 |
PROTO_MFS_APPSMAN = $(ROOT)$(MFS_DIR)/application/management
|
|
52 |
PROTO_MFS_VP = $(ROOT)$(MFS_DIR)/$(SERVICE_HEAD)
|
|
53 |
PROTO_SHR = $(ROOT)/lib/svc/share
|
|
54 |
PROTO_MTD = $(ROOT)/lib/svc/method
|
|
55 |
PROTO_MTD_VP = $(ROOT)/lib/svc/method/vp_methods
|
|
56 |
PROTO_SRC = $(ROOT)/usr/share/lib/java/src
|
|
57 |
PROTO_APPS = $(ROOT)/usr/share/applications
|
|
58 |
|
|
59 |
TOOLS_DIR = $(SRC)/tools
|
|
60 |
|
|
61 |
# Files generated during build removed during "make clean/clobber"
|
|
62 |
CLEAN_FILES =
|
|
63 |
CLOBBER_FILES = $(CLEAN_FILES)
|
|
64 |
|
|
65 |
# Install macros
|
|
66 |
DIRMODE = 755
|
|
67 |
INS.dir = $(INS) -s -d -m $(DIRMODE) $@
|
|
68 |
INS.file = $(INS) -s -d -m $(DIRMODE) $(@D); \
|
|
69 |
$(RM) -- $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(@F)
|
|
70 |
|
|
71 |
# Tools and dependencies used at build time
|
|
72 |
FIND = /usr/bin/find
|
|
73 |
GREP = /usr/bin/grep
|
|
74 |
EGREP = /usr/bin/egrep
|
|
75 |
HEAD = /usr/bin/head
|
|
76 |
INS = /usr/sbin/install
|
|
77 |
LS = /usr/bin/ls
|
|
78 |
SED = /usr/bin/sed
|
|
79 |
SORT = /usr/bin/sort
|
|
80 |
GTAR = /usr/sfw/bin/gtar
|
|
81 |
TAR = /usr/bin/tar
|
|
82 |
XARGS = /usr/bin/xargs
|
|
83 |
PWDCMD = /usr/bin/pwd
|
|
84 |
|
|
85 |
# Set here explicitly to avoid compiling with newer class version
|
|
86 |
JAVAC = /usr/bin/javac
|
|
87 |
JAR = /usr/bin/jar
|
|
88 |
JAVADOC = /usr/bin/javadoc
|
|
89 |
JAVAH = /usr/bin/javah
|
|
90 |
|
|
91 |
# Default to all subdirectories with a Makefile
|
|
92 |
SUBDIRS_CMD = $(LS) -1 */Makefile 2>/dev/null | $(SED) 's@/Makefile$$@@'
|
|
93 |
SUBDIRS = $(SUBDIRS_CMD:sh)
|
|
94 |
|
|
95 |
# Use CLASS_PATH instead of CLASS_PATH to avoid picking up environment
|
|
96 |
CLASS_PATH_ARRAY = $(DEPENDENCY_JARS)
|
|
97 |
CLASS_PATH_CMD = echo "$(CLASS_PATH_ARRAY)" | $(SED) 's/[ ][ ]*/:/g'
|
|
98 |
CLASS_PATH = $(CLASS_PATH_CMD:sh)
|