Makefile revision 96bc9d7a9978f45051fffdf4d2a2159a439ee583
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# CDDL HEADER START
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# The contents of this file are subject to the terms of the
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Common Development and Distribution License (the "License").
e6e8fc31be238a3370495a3e4fb69dbf41cfffb9vboxsync# You may not use this file except in compliance with the License.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# or http://www.opensolaris.org/os/licensing.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# See the License for the specific language governing permissions
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# and limitations under the License.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# When distributing Covered Code, include this CDDL HEADER in each
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# If applicable, add the following below this CDDL HEADER, with the
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# CDDL HEADER END
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Use is subject to license terms.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Makefile for system source
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# include global definitions
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncinclude Makefile.master
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# the Targetdirs file is the AT&T target.dirs file in a makefile format.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# it defines TARGETDIRS and ROOTDIRS.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncinclude Targetdirs
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncCOMMON_SUBDIRS= uts lib cmd ucblib ucbcmd
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# sparc needs to build both stand and psm, in that order
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# x86 needs to build psm and GRUB
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncsparc_SUBDIRS= stand psm
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsynci386_SUBDIRS= psm grub
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
e6e8fc31be238a3370495a3e4fb69dbf41cfffb9vboxsyncHDRSUBDIRS= uts head lib cmd ucbhead
e6e8fc31be238a3370495a3e4fb69dbf41cfffb9vboxsync
e6e8fc31be238a3370495a3e4fb69dbf41cfffb9vboxsync# UCB headers are bug-for-bug compatible and not checkable against the header
e6e8fc31be238a3370495a3e4fb69dbf41cfffb9vboxsync# standards.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncCHKHDRSUBDIRS= head uts lib
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Headers that can be built in parallel
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncPARALLEL_HEADERS = sysheaders userheaders libheaders ucbheaders cmdheaders
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Directories that can be built in parallel
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncPARALLEL_DIRS = uts lib
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# The check target also causes smf(5) service manifests to be validated.
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncCHKMFSTSUBDIRS= cmd
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncMSGSUBDIRS= cmd ucbcmd lib
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncDOMAINS= \
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync SUNW_OST_ADMIN \
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync SUNW_OST_NETRPC \
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync SUNW_OST_OSCMD \
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync SUNW_OST_OSLIB \
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync SUNW_OST_UCBCMD \
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync SUNW_OST_ZONEINFO
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncMSGDDIRS= $(DOMAINS:%=$(MSGROOT)/%)
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncMSGDIRS= $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncall all_xmod := TARGET= all
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncinstall install_xmod := TARGET= install
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncinstall_h := TARGET= install_h
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncclean := TARGET= clean
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncclobber := TARGET= clobber
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsynccheck := TARGET= check
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync_msg := TARGET= _msg
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync.KEEP_STATE:
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# Note: install only builds the all target for the pkgdefs
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# directory. We are not yet ready to have an install
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# build create 'packages' also. To build packages
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# cd pkgdefs and do a 'make install'
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync#
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncall: mapfiles closedbins sgs .WAIT $(SUBDIRS) pkg_all
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncinstall: mapfiles closedbins sgs .WAIT $(SUBDIRS) pkg_all .WAIT _msg
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync @cd pkgdefs/SUNW0on; pwd; $(MAKE) _msg
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync @rm -rf "$(ROOT)/catalog"
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncmapfiles: bldtools
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync @cd common/mapfiles; pwd; $(MAKE) install
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsyncclean clobber: $(SUBDIRS) head pkgdefs
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync_msg: _msgdirs rootdirs $(MSGSUBDIRS)
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync# for a complete build from scratch
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsynccrankturn: sgs uts pkg_all
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync @cd lib; pwd; $(MAKE) install
c1d279fc0865b91a40b30eda02ed14f6533fe1a4vboxsync @cd cmd; pwd; $(MAKE) all
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync @cd ucblib; pwd; $(MAKE) install
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync @cd ucbcmd; pwd; $(MAKE) all
5835c306f653aa74c80f79f84a32451fe0ba37c0vboxsync
pkg_all:
@cd pkgdefs; pwd; $(MAKE) all
#
# target for building a proto area for reference via the ROOT macro
#
protolibs: rootlibs ucblibs
# build all ucb libraries
#
ucblibs:
@cd ucblib; pwd; $(MAKE) install
# Base subset of rootproto, excluding ucb libraries
#
rootlibs: sgs
@cd lib; pwd; $(MAKE) install
closedbins: FRC $(ROOTDIRS)
@CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
if [ "$$CLOSED_IS_PRESENT" = no ]; then \
if [ ! -d "$$CLOSED_ROOT" ]; then \
$(ECHO) "Error: if closed sources are not present," \
"ON_CLOSED_BINS must point to closed binaries."; \
$(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
"present in $$ON_CLOSED_BINS."; \
exit 1; \
fi; \
$(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
(cd $$CLOSED_ROOT; tar cf - .) | \
(cd $(ROOT); tar xBpf -); \
fi
#
# Declare what parts can be build in parallel
# DUMMY at the end is used in case macro expansion produces an empty string to
# prevent everything going in parallel
#
.PARALLEL: $(PARALLEL_HEADERS) DUMMY
.PARALLEL: $(PARALLEL_DIRS) DUMMY
$(SUBDIRS) head ucbhead pkgdefs: FRC
@cd $@; pwd; $(MAKE) $(TARGET)
# librpcsvc has a dependency on headers installed by
# userheaders, hence the .WAIT before libheaders.
sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
libheaders ucbheaders cmdheaders
#
# Top-level setup target to setup the development environment that includes
# headers, tools and generated mapfiles. For open-only builds (i.e.: source
# trees w/o usr/closed), this also depends on the closedbins target (above)
# in order to properly seed the proto area. Note, although the tools are
# dependent on a number of constant mapfiles, the tools themselves are
# required to build the generated mapfiles.
#
setup: bldtools mapfiles
bldtools: closedbins sgs
@cd tools; pwd; $(MAKE) install
# /var/mail/:saved is a special case because of the colon in the name.
#
rootdirs: $(ROOTDIRS)
$(INS) -d -m 775 $(ROOT)/var/mail/:saved
$(CH)$(CHOWN) root $(ROOT)/var/mail/:saved
$(CH)$(CHGRP) mail $(ROOT)/var/mail/:saved
lint: FRC
$(MAKE) -f Makefile.lint
_msgdirs: $(MSGDIRS)
$(ROOTDIRS) $(MSGDIRS):
$(INS.dir)
userheaders: FRC
@cd head; pwd; $(MAKE) install_h
libheaders: FRC
@cd lib; pwd; $(MAKE) install_h
sysheaders: FRC
@cd uts; pwd; $(MAKE) install_h
ucbheaders: FRC
@cd ucbhead; pwd; $(MAKE) install_h
cmdheaders: FRC
@cd cmd/fm; pwd; $(MAKE) install_h
@cd cmd/mdb; pwd; $(MAKE) install_h
# each xmod target depends on a corresponding MACH-specific pseudotarget
# before doing common xmod work
#
all_xmod install_xmod: $$@_$(MACH)
@cd uts/common/sys; pwd; $(MAKE) svvs_h
all_xmod_sparc install_xmod_sparc: FRC
@cd uts/sparc; pwd; \
$(MAKE) TARGET=$(TARGET) svvs pm wsdrv
all_xmod_i386 install_xmod_i386: FRC
@cd uts/i86; pwd; $(MAKE) TARGET=$(TARGET) svvs
check: $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
#
# Cross-reference customization: skip all of the subdirectories that
# don't contain actual source code.
#
$(CLOSED_BUILD)XRDIRS += ../closed
XRPRUNE = pkgdefs prototypes xmod
XRINCDIRS = uts/common head ucbhead
$(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead
cscope.out tags: FRC
$(XREF) -f -x $@
FRC:
# EXPORT DELETE START
XMOD_DELETE_FILES:sh = cat xmod/xmod_files
EXPORT_SRC:
@cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \
$(MAKE) EXPORT_SRC
@cd cmd/cmd-inet/usr.sbin; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) EXPORT_SRC
@cd cmd/crypt; pwd; $(MAKE) EXPORT_SRC
@cd cmd/gss/gssd; pwd; $(MAKE) EXPORT_SRC
@cd cmd/krb5/kadmin; pwd; $(MAKE) EXPORT_SRC
@cd cmd/sendmail/src; pwd; $(MAKE) EXPORT_SRC
@cd cmd/xntpd; pwd; $(MAKE) EXPORT_SRC
@cd common/crypto/aes; pwd; $(MAKE) EXPORT_SRC
@cd common/crypto/arcfour; pwd; $(MAKE) EXPORT_SRC
@cd common/crypto/blowfish; pwd; $(MAKE) EXPORT_SRC
@cd common/crypto/des; pwd; $(MAKE) EXPORT_SRC
@cd common/crypto/rsa; pwd; $(MAKE) EXPORT_SRC
@cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) EXPORT_SRC
@cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) EXPORT_SRC
@cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) EXPORT_SRC
@cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) EXPORT_SRC
@cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) EXPORT_SRC
@cd lib/libcrypt; pwd; $(MAKE) EXPORT_SRC
@cd lib/libgss; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/lib/libike; pwd; $(MAKE) EXPORT_SRC
@cd lib/libnsl; pwd; $(MAKE) EXPORT_SRC
@cd lib/pkcs11/pkcs11_softtoken/common; pwd; $(MAKE) EXPORT_SRC
@cd lib/libsldap; pwd; $(MAKE) EXPORT_SRC
@cd lib/libsasl; pwd; $(MAKE) EXPORT_SRC
@cd lib/sasl_plugins; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/lib/smartcard; pwd; $(MAKE) EXPORT_SRC
@cd lib/pam_modules/krb5; pwd; $(MAKE) EXPORT_SRC
@cd lib/udapl; pwd; $(MAKE) EXPORT_SRC
@cd lib/libresolv2; pwd; $(MAKE) EXPORT_SRC
@cd psm/stand/boot; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/crypto/io; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/des; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/rpc; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/sys; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/gssapi/include; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/gssapi; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) EXPORT_SRC
@cd uts/common; pwd; $(MAKE) EXPORT_SRC
@cd uts/sparc; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/uts/sun4u/forthdebug; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/uts/sun4v/forthdebug; pwd; $(MAKE) EXPORT_SRC
@cd uts/intel; pwd; $(MAKE) EXPORT_SRC
@cd uts/sun4u; pwd; $(MAKE) EXPORT_SRC
@cd $(CLOSED)/uts/sun4v/io/ncp; pwd; $(MAKE) EXPORT_SRC
@cd pkgdefs; pwd; $(MAKE) EXPORT_SRC
$(RM) -r $(XMOD_DELETE_FILES)
$(RM) Targetdirs+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Targetdirs > Targetdirs+
$(MV) Targetdirs+ Targetdirs
$(CHMOD) 444 Targetdirs
$(RM) Makefile+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
$(RM) Makefile.master+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile.master > Makefile.master+
$(MV) Makefile.master+ Makefile.master
$(CHMOD) 444 Makefile.master
CRYPT_SRC:
@cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) CRYPT_SRC
@cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \
$(MAKE) CRYPT_SRC
@cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) CRYPT_SRC
@cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) CRYPT_SRC
@cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) CRYPT_SRC
@cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) CRYPT_SRC
@cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) CRYPT_SRC
@cd $(CLOSED)/lib/libike; pwd; $(MAKE) CRYPT_SRC
@cd lib/libnsl; pwd; $(MAKE) CRYPT_SRC
@cd lib/libsasl; pwd; $(MAKE) CRYPT_SRC
@cd lib/libresolv2; pwd; $(MAKE) CRYPT_SRC
@cd lib/sasl_plugins; pwd; $(MAKE) CRYPT_SRC
@cd lib/pam_modules/krb5; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi/include; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) CRYPT_SRC
$(RM) Makefile+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
$(RM) Makefile.master+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile.master > Makefile.master+
$(MV) Makefile.master+ Makefile.master
$(CHMOD) 444 Makefile.master
# EXPORT DELETE END
ONC_PLUS:
@cd cmd/login; pwd; $(MAKE) ONC_PLUS
@cd uts; pwd; $(MAKE) ONC_PLUS
#
# Targets for reporting compiler versions; nightly uses these.
#
cc-version:
@if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
$(ECHO) 32-bit compiler; \
$(ECHO) $($(MACH)_CC); \
$($(MACH)_CC) -_versions 2>&1 | \
$(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
else \
__COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
if [ -z "$$__COMPILER" ]; then \
$(ECHO) No 32-bit compiler found; \
exit 1; \
else \
$(ECHO) 32-bit compiler; \
$(ECHO) $($(MACH)_CC); \
$(ECHO) $$__COMPILER; \
$($(MACH)_CC) -V 2>&1 | head -1; \
fi; \
fi
cc64-version:
@if $($(MACH64)_CC) -_versions >/dev/null 2>/dev/null; then \
$(ECHO) 64-bit compiler; \
$(ECHO) $($(MACH64)_CC); \
$($(MACH64)_CC) -_versions 2>&1 | \
$(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
else \
__COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
if [ -z "$$__COMPILER" ]; then \
$(ECHO) No 64-bit compiler found; \
exit 1; \
else \
$(ECHO) 64-bit compiler; \
$(ECHO) $($(MACH64)_CC); \
$(ECHO) $$__COMPILER; \
$($(MACH64)_CC) -V 2>&1 | head -1; \
fi; \
fi
java-version:
@if [ -x "$(JAVAC)" ]; then \
$(ECHO) $(JAVAC); \
$(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \
else \
$(ECHO) No Java compiler found; \
exit 1; \
fi