usr/src/Makefile.env
author David Powell <david.e.powell@oracle.com>
Thu, 11 Aug 2011 15:41:42 -0700
changeset 764 ebb25c1dac73
parent 758 06c57694c78d
child 797 a33daeba9b4c
permissions -rw-r--r--
18812 Support building with alternate java implementations
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
717
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
    33
DIRMODE = 755
588
0b7566d15369 17238 ship a jconsole wrapper for rad
David Powell <david.e.powell@oracle.com>
parents: 587
diff changeset
    34
FILEMODE = 0444
0b7566d15369 17238 ship a jconsole wrapper for rad
David Powell <david.e.powell@oracle.com>
parents: 587
diff changeset
    35
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    36
# Installation directories
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    37
MFS_DIR           = /lib/svc/manifest
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    38
VP_DIR            = /usr/share/vpanels
754
d0a995fd0c9c 15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents: 748
diff changeset
    39
RAD_JAVA_DIR      = /usr/lib/rad/java
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    40
VP_LOCALE         = $(VP_DIR)/locale
591
7c5752b99fd6 12473 panels should probably be run in a sandbox
Stephen Talley <stephen.talley@oracle.com>
parents: 588
diff changeset
    41
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    42
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
    43
PROTO_AUTOSTART   = $(ROOT)/usr/share/gnome/autostart
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    44
PROTO_BIN         = $(ROOT)/usr/bin
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    45
PROTO_DOC         = $(ROOT)/usr/share/lib/java/javadoc
758
06c57694c78d 18722 - Add tests for authentication and PAM conversation processing.
Shadrack Kilemba <Shadrack.Kilemba@Oracle.COM>
parents: 754
diff changeset
    46
PROTO_ETC_UATTR.D = $(ROOT)/etc/user_attr.d
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    47
PROTO_ETC_VPANELS = $(ROOT)/etc/vpanels
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    48
PROTO_INCLUDE     = $(ROOT)/usr/include
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    49
PROTO_LIB         = $(ROOT)/usr/lib
754
d0a995fd0c9c 15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents: 748
diff changeset
    50
PROTO_RAD         = $(PROTO_LIB)/rad
d0a995fd0c9c 15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents: 748
diff changeset
    51
PROTO_RAD_JAVA    = $(PROTO_RAD)/java
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    52
PROTO_MAN         = $(ROOT)/usr/share/man
573
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
    53
PROTO_MDB         = $(ROOT)/usr/lib/mdb/proc
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    54
PROTO_MFS_NETWORK = $(ROOT)$(MFS_DIR)/network
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    55
PROTO_MFS_SYSTEM  = $(ROOT)$(MFS_DIR)/system
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    56
PROTO_MTD         = $(ROOT)/lib/svc/method
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    57
PROTO_PYTHON      = $(ROOT)/usr/lib/python2.6/vendor-packages
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    58
PROTO_SCHEMA      = $(ROOT)/etc/gconf/schemas
667
00b8c739a174 17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents: 591
diff changeset
    59
PROTO_VP_DIR      = $(ROOT)$(VP_DIR)
731
2a0812d9ed6d 18557 vp doesn't find localized messages for core vp jars
Stephen Talley <stephen.talley@oracle.com>
parents: 717
diff changeset
    60
PROTO_VP_LOCALE   = $(ROOT)$(VP_LOCALE)
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    61
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    62
# Files generated during build removed during "make clean/clobber"
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    63
CLEAN_FILES =
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    64
CLOBBER_FILES = $(CLEAN_FILES)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    65
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    66
# Remove the CDDL from a target file
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    67
RMCDDL = $(PERL) -ni -e '\
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    68
	if (!$$cddl) {\
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    69
		print unless ($$cddl = /CDDL HEADER START/);\
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    70
	} elsif (/CDDL HEADER END/) {\
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    71
		$$cddl = 0;\
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    72
	}' $@
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    73
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    74
# Install macros
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    75
INS.dir = $(INS) -s -d -m $(DIRMODE) $@
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    76
INS.file = \
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    77
	$(INS) -s -d -m $(DIRMODE) $(@D); \
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    78
	$(RM) -- $@; \
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    79
	$(INS) -s -m $(FILEMODE) -f $(@D) $<
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    80
INS.pyfile = $(INS.file); $(RMCDDL); $(TOUCH) -r $< $@
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    81
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    82
# Tools and dependencies used at build time
395
dceab4d00ec5 13386 various build issues
David Powell <David.Powell@sun.com>
parents: 391
diff changeset
    83
ISA:sh = uname -p
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
    84
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
    85
CP = /usr/bin/cp
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
    86
EGREP = /usr/bin/egrep
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    87
FIND = /usr/bin/find
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    88
GREP = /usr/bin/grep
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
    89
GTAR = /usr/sfw/bin/gtar
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    90
HEAD = /usr/bin/head
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    91
INS = /usr/sbin/install
711
1ffc0db7d2e5 18444 lint libraries and lintlibraries
David Powell <david.e.powell@oracle.com>
parents: 672
diff changeset
    92
LN = /usr/bin/ln
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    93
LS = /usr/bin/ls
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
    94
MKDIR = /usr/bin/mkdir
748
abe2cd8b419a 18737 remove cddl from binary product
Stephen Talley <stephen.talley@oracle.com>
parents: 731
diff changeset
    95
PERL = /usr/bin/perl
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
    96
PKG = /usr/bin/pkg
672
8be004f8402d 17970 Missing dependencies on java and ntp
David Powell <david.e.powell@oracle.com>
parents: 667
diff changeset
    97
PKGMERGE = /usr/bin/pkgmerge
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
    98
PKGMOGRIFY = /usr/bin/pkgmogrify
672
8be004f8402d 17970 Missing dependencies on java and ntp
David Powell <david.e.powell@oracle.com>
parents: 667
diff changeset
    99
PKGREPO = /usr/bin/pkgrepo
508
b04790d194b9 16014 convert svr4 packages to IPS
Stephen Talley <stephen.talley@oracle.com>
parents: 420
diff changeset
   100
PKGSEND = /usr/bin/pkgsend
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
   101
PWDCMD = /usr/bin/pwd
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   102
SED = /usr/bin/sed
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   103
SORT = /usr/bin/sort
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   104
TAR = /usr/bin/tar
322
838d56f9f958 9926 idmap: initial integration
Stephen Talley <stephen.talley@sun.com>
parents: 310
diff changeset
   105
WGET = /usr/bin/wget
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   106
XARGS = /usr/bin/xargs
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   107
PYTHON = /usr/bin/python
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   108
TOUCH = /usr/bin/touch
395
dceab4d00ec5 13386 various build issues
David Powell <David.Powell@sun.com>
parents: 391
diff changeset
   109
CTFMERGE = /opt/onbld/bin/$(ISA)/ctfmerge
dceab4d00ec5 13386 various build issues
David Powell <David.Powell@sun.com>
parents: 391
diff changeset
   110
CTFCONVERT = /opt/onbld/bin/$(ISA)/ctfconvert
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   111
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   112
# Set here explicitly to avoid compiling with newer class version
764
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   113
JDK_HOME = /usr
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   114
JAVA_HOME = /usr
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   115
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   116
JAVAC = $(JDK_HOME)/bin/javac
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   117
JAR = $(JDK_HOME)/bin/jar
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   118
JAVADOC = $(JDK_HOME)/bin/javadoc
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   119
JAVAH = $(JDK_HOME)/bin/javah
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   120
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   121
JAVA = $(JAVA_HOME)/bin/java
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   122
587
7093024d532b 17210 Begin a developer guide
David Powell <david.e.powell@oracle.com>
parents: 585
diff changeset
   123
# 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
   124
ADRLOC=$(SRC)/java/adr/adr.jar
764
ebb25c1dac73 18812 Support building with alternate java implementations
David Powell <david.e.powell@oracle.com>
parents: 758
diff changeset
   125
ADRGEN=$(JAVA) -classpath $(ADRLOC) org.opensolaris.os.adr.adrgen.ADRGen
587
7093024d532b 17210 Begin a developer guide
David Powell <david.e.powell@oracle.com>
parents: 585
diff changeset
   126
717
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   127
# Lint
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   128
LINTFLAGS = -s -errtags=yes -errsecurity=core -errwarn=%all
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   129
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   130
# Mapfiles
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   131
MAPFILES_i386 = /usr/lib/ld/map.noexdata
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   132
MAPFILES_sparc =
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   133
MAPFILES = $(MAPFILES_$(ISA)) /usr/lib/ld/map.pagealign
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   134
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   135
MAPOPTS = $(MAPFILES:%=-M%)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   136
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   137
# Libraries
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   138
LIBNAME = $(LIBRARY:lib%.a=%)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   139
DYNLIB = $(LIBRARY:.a=.so$(VERS))
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   140
SOLIB = $(LIBRARY:.a=.so)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   141
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   142
LLINK = 32
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   143
LINTLIB = llib-l$(LIBNAME).ln
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   144
LINTSRC = $(LINTLIB:%.ln=%)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   145
LINTOUT = lint.out
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   146
LINTSRCS = $(SRCS)
573
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   147
717
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   148
LIBDIR64_i386=amd64
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   149
LIBDIR64_sparc=sparcv9
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   150
LIBDIR64=$(LIBDIR64_$(ISA))
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   151
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   152
ROOTHDRDIR	= $(PROTO_INCLUDE)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   153
ROOTHDRS	= $(HDRS:%=$(ROOTHDRDIR)/%)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   154
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   155
ROOTLIBBASE	= $(PROTO_LIB)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   156
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   157
ROOTLINTDIR	= $(ROOTLIBBASE)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   158
ROOTLINT	= $(LINTSRC:%=$(ROOTLINTDIR)/%)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   159
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   160
ROOTLIBDIR32	= $(ROOTLIBBASE)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   161
ROOTLIBDIR64	= $(ROOTLIBBASE)/$(LIBDIR64)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   162
ROOTLIBDIR	= $(ROOTLIBDIR$(LLINK))
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   163
ROOTLIBS	= $(LIBS:%=$(ROOTLIBDIR)/%)
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   164
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   165
ROOTLIBLINK32	= $(ROOTLIBBASE)/32
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   166
ROOTLIBLINK64	= $(ROOTLIBBASE)/64
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   167
ROOTLIBTGT32	= .
7f7fc966a88f 18481 More rigorous module build
David Powell <david.e.powell@oracle.com>
parents: 714
diff changeset
   168
ROOTLIBTGT64	= $(LIBDIR64)
573
f0add9469f92 17058 support removing objects
David Powell <david.e.powell@oracle.com>
parents: 540
diff changeset
   169
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   170
# Default to all subdirectories with a Makefile
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   171
SUBDIRS_CMD = $(LS) -1 */Makefile 2>/dev/null | $(SED) 's@/Makefile$$@@'
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   172
SUBDIRS = $(SUBDIRS_CMD:sh)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   173
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   174
# Use CLASS_PATH instead of CLASS_PATH to avoid picking up environment
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   175
CLASS_PATH_ARRAY = $(DEPENDENCY_JARS)
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   176
CLASS_PATH_CMD = echo "$(CLASS_PATH_ARRAY)" | $(SED) 's/[ 	][ 	]*/:/g'
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
   177
CLASS_PATH = $(CLASS_PATH_CMD:sh)
391
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   178
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   179
.SUFFIXES: .py .pyc
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   180
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   181
.py.pyc:
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   182
	$(RM) $@
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   183
	$(PYTHON) -mpy_compile $<
71abce159a62 13357 rad
David Powell <David.Powell@sun.com>
parents: 322
diff changeset
   184
	@[ $(<)c = $@ ] || $(MV) $(<)c $@