usr/src/Makefile.env
author David Powell <david.e.powell@oracle.com>
Wed, 01 Jun 2011 19:14:07 -0700
changeset 714 5f40c4b913c9
parent 711 1ffc0db7d2e5
child 717 7f7fc966a88f
permissions -rw-r--r--
18468 Move rad daemon into leaf directory
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     1
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     2
# CDDL HEADER START
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     3
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     7
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    11
# and limitations under the License.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    12
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    18
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    19
# CDDL HEADER END
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    20
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    21
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    22
#
667
00b8c739a174 17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents: 591
diff changeset
    23
# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    24
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    25
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    26
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    27
# Common macros
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    28
#
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    29
584
7f254aa77f46 17152 group permissions of mdb modules need work
David Powell <david.e.powell@oracle.com>
parents: 573
diff changeset
    30
PRE_POUND =	pre\#
7f254aa77f46 17152 group permissions of mdb modules need work
David Powell <david.e.powell@oracle.com>
parents: 573
diff changeset
    31
POUND_SIGN =	$(PRE_POUND:pre\%=%)
7f254aa77f46 17152 group permissions of mdb modules need work
David Powell <david.e.powell@oracle.com>
parents: 573
diff changeset
    32
588
0b7566d15369 17238 ship a jconsole wrapper for rad
David Powell <david.e.powell@oracle.com>
parents: 587
diff changeset
    33
FILEMODE = 0444
0b7566d15369 17238 ship a jconsole wrapper for rad
David Powell <david.e.powell@oracle.com>
parents: 587
diff changeset
    34
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    35
# Installation directories
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    36
DOC_DIR = /usr/share/lib/java/javadoc
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    37
JAR_DIR = /usr/share/lib/java
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    38
LIB_DIR = /usr/lib
511
e744fd1b1182 15418 VP delivered SMF manifests should be relocated to /lib/svc/manifest
Stephen Talley <stephen.talley@oracle.com>
parents: 508
diff changeset
    39
MFS_DIR = /lib/svc/manifest
591
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    40
VP_DIR  = /usr/share/vpanels
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    41
PROTO_BIN         = $(ROOT)/usr/bin
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    42
591
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    43
JAVA_POLICY     = $(VP_DIR)/java.policy
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    44
VP_BIN_JAR      = $(VP_DIR)/vpanels-client.jar
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    45
VP_BIN          = $(PROTO_BIN)/vp
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    46
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    47
PROTO_DOC         = $(ROOT)/$(DOC_DIR)
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
    48
PROTO_ETC	  = $(ROOT)/etc
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    49
PROTO_ETC_CACAO   = $(ROOT)/etc/cacao/instances/default/modules
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    50
PROTO_ETC_VPANELS = $(ROOT)/etc/vpanels
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    51
PROTO_JAR         = $(ROOT)/$(JAR_DIR)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    52
PROTO_LIB         = $(ROOT)/$(LIB_DIR)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    53
PROTO_MFS_SYSTEM  = $(ROOT)$(MFS_DIR)/system
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    54
PROTO_MFS_NETWORK = $(ROOT)$(MFS_DIR)/network
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    55
PROTO_SHR         = $(ROOT)/lib/svc/share
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    56
PROTO_MTD         = $(ROOT)/lib/svc/method
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    57
PROTO_SRC         = $(ROOT)/usr/share/lib/java/src
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    58
PROTO_APPS        = $(ROOT)/usr/share/applications
420
61c026fe9076 13371 sysmon: system tray monitor should be started on login
Stephen Talley <stephen.talley@sun.com>
parents: 395
diff changeset
    59
PROTO_AUTOSTART   = $(ROOT)/usr/share/gnome/autostart
310
643b4561e982 9415 should deliver a gnome schema for svc: URIs
David Powell <David.Powell@sun.com>
parents: 0
diff changeset
    60
PROTO_SCHEMA      = $(ROOT)/etc/gconf/schemas
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
    61
PROTO_PYTHON      = $(ROOT)/usr/lib/python2.6/vendor-packages
573
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
    62
PROTO_MDB         = $(ROOT)/usr/lib/mdb/proc
585
21a47246efe3 14967 rad needs a man page
David Powell <david.e.powell@oracle.com>
parents: 584
diff changeset
    63
PROTO_MAN         = $(ROOT)/usr/share/man
591
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    64
PROTO_JAVA_POLICY = $(ROOT)/$(JAVA_POLICY)
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    65
PROTO_VP_BIN      = $(PROTO_BIN)/vp
667
00b8c739a174 17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents: 591
diff changeset
    66
PROTO_VP_DIR      = $(ROOT)$(VP_DIR)
714
5f40c4b913c9 18468 Move rad daemon into leaf directory
David Powell <david.e.powell@oracle.com>
parents: 711
diff changeset
    67
PROTO_INCLUDE     = $(ROOT)/usr/include
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    68
714
5f40c4b913c9 18468 Move rad daemon into leaf directory
David Powell <david.e.powell@oracle.com>
parents: 711
diff changeset
    69
ROOTHDRDIR        = $(PROTO_INCLUDE)
5f40c4b913c9 18468 Move rad daemon into leaf directory
David Powell <david.e.powell@oracle.com>
parents: 711
diff changeset
    70
ROOTHDRS          = $(HDRS:%=$(ROOTHDRDIR)/%)
540
2a0d274b1469 16571 move all content module interfaces into rad_modapi.h
David Powell <david.e.powell@oracle.com>
parents: 511
diff changeset
    71
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    72
TOOLS_DIR = $(SRC)/tools
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    73
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    74
# Files generated during build removed during "make clean/clobber"
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    75
CLEAN_FILES =
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    76
CLOBBER_FILES = $(CLEAN_FILES)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    77
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    78
# Install macros
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    79
DIRMODE = 755
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    80
INS.dir = $(INS) -s -d -m $(DIRMODE) $@
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    81
INS.file = $(INS) -s -d -m $(DIRMODE) $(@D); \
711
1ffc0db7d2e5 18444 lint libraries and lintlibraries
David Powell <david.e.powell@oracle.com>
parents: 672
diff changeset
    82
	$(RM) -- $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
    83
INS.pyfile = $(INS.file); $(TOUCH) -r $< $@
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    84
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    85
# Tools and dependencies used at build time
395
dceab4d00ec5 13386 various build issues
David Powell <David.Powell@sun.com>
parents: 391
diff changeset
    86
ISA:sh = uname -p
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
    87
CHMOD = /usr/bin/chmod
310
643b4561e982 9415 should deliver a gnome schema for svc: URIs
David Powell <David.Powell@sun.com>
parents: 0
diff changeset
    88
CP = /usr/bin/cp
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
    89
EGREP = /usr/bin/egrep
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    90
FIND = /usr/bin/find
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    91
GREP = /usr/bin/grep
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
    92
GTAR = /usr/sfw/bin/gtar
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    93
HEAD = /usr/bin/head
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    94
INS = /usr/sbin/install
711
1ffc0db7d2e5 18444 lint libraries and lintlibraries
David Powell <david.e.powell@oracle.com>
parents: 672
diff changeset
    95
LN = /usr/bin/ln
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    96
LS = /usr/bin/ls
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
    97
MKDIR = /usr/bin/mkdir
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
    98
PKG = /usr/bin/pkg
672
8be004f8402d 17970 Missing dependencies on java and ntp
David Powell <david.e.powell@oracle.com>
parents: 667
diff changeset
    99
PKGMERGE = /usr/bin/pkgmerge
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
   100
PKGMOGRIFY = /usr/bin/pkgmogrify
672
8be004f8402d 17970 Missing dependencies on java and ntp
David Powell <david.e.powell@oracle.com>
parents: 667
diff changeset
   101
PKGREPO = /usr/bin/pkgrepo
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
   102
PKGSEND = /usr/bin/pkgsend
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
   103
PWDCMD = /usr/bin/pwd
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   104
SED = /usr/bin/sed
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   105
SORT = /usr/bin/sort
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   106
TAR = /usr/bin/tar
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
   107
WGET = /usr/bin/wget
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   108
XARGS = /usr/bin/xargs
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   109
PYTHON = /usr/bin/python
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   110
TOUCH = /usr/bin/touch
395
dceab4d00ec5 13386 various build issues
David Powell <David.Powell@sun.com>
parents: 391
diff changeset
   111
CTFMERGE = /opt/onbld/bin/$(ISA)/ctfmerge
dceab4d00ec5 13386 various build issues
David Powell <David.Powell@sun.com>
parents: 391
diff changeset
   112
CTFCONVERT = /opt/onbld/bin/$(ISA)/ctfconvert
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   113
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   114
# Set here explicitly to avoid compiling with newer class version
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   115
JAVAC = /usr/bin/javac
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   116
JAR = /usr/bin/jar
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   117
JAVADOC = /usr/bin/javadoc
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   118
JAVAH = /usr/bin/javah
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   119
587
7093024d532b 17210 Begin a developer guide
David Powell <david.e.powell@oracle.com>
parents: 585
diff changeset
   120
# Consumers must depend on java (or java/adr)
7093024d532b 17210 Begin a developer guide
David Powell <david.e.powell@oracle.com>
parents: 585
diff changeset
   121
ADRLOC=$(SRC)/java/adr/adr.jar
7093024d532b 17210 Begin a developer guide
David Powell <david.e.powell@oracle.com>
parents: 585
diff changeset
   122
ADRGEN=java -classpath $(ADRLOC) org.opensolaris.os.adr.adrgen.ADRGen
7093024d532b 17210 Begin a developer guide
David Powell <david.e.powell@oracle.com>
parents: 585
diff changeset
   123
573
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   124
# Cribbed from ON
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   125
ALWAYS_LINT_DEFS +=     -erroff=E_PTRDIFF_OVERFLOW
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   126
ALWAYS_LINT_DEFS +=     -erroff=E_ASSIGN_NARROW_CONV
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   127
ALWAYS_LINT_DEFS +=     -erroff=E_SEC_CREAT_WITHOUT_EXCL
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   128
ALWAYS_LINT_DEFS +=     -erroff=E_SEC_FORBIDDEN_WARN_CREAT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   129
ALWAYS_LINT_DEFS +=     -erroff=E_ASSIGN_INT_TO_SMALL_INT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   130
ALWAYS_LINT_DEFS +=     -erroff=E_CAST_INT_CONST_TO_SMALL_INT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   131
ALWAYS_LINT_DEFS +=     -erroff=E_CAST_INT_TO_SMALL_INT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   132
ALWAYS_LINT_DEFS +=     -erroff=E_CAST_TO_PTR_FROM_INT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   133
ALWAYS_LINT_DEFS +=     -erroff=E_COMP_INT_WITH_LARGE_INT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   134
ALWAYS_LINT_DEFS +=     -erroff=E_INTEGRAL_CONST_EXP_EXPECTED
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   135
ALWAYS_LINT_DEFS +=     -erroff=E_PASS_INT_TO_SMALL_INT
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   136
ALWAYS_LINT_DEFS +=     -erroff=E_PTR_CONV_LOSES_BITS
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   137
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   138
# Needed for generated files
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   139
ALWAYS_LINT_DEFS +=     -erroff=E_NAME_DEF_NOT_USED2
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   140
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   141
# Default to all subdirectories with a Makefile
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   142
SUBDIRS_CMD = $(LS) -1 */Makefile 2>/dev/null | $(SED) 's@/Makefile$$@@'
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   143
SUBDIRS = $(SUBDIRS_CMD:sh)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   144
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   145
# Use CLASS_PATH instead of CLASS_PATH to avoid picking up environment
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   146
CLASS_PATH_ARRAY = $(DEPENDENCY_JARS)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   147
CLASS_PATH_CMD = echo "$(CLASS_PATH_ARRAY)" | $(SED) 's/[ 	][ 	]*/:/g'
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   148
CLASS_PATH = $(CLASS_PATH_CMD:sh)
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   149
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   150
.SUFFIXES: .py .pyc
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   151
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   152
.py.pyc:
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   153
	$(RM) $@
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   154
	$(PYTHON) -mpy_compile $<
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   155
	@[ $(<)c = $@ ] || $(MV) $(<)c $@