| 1 | # ========== Copyright Header Begin ========================================== |
| 2 | # |
| 3 | # Hypervisor Software File: default.mk |
| 4 | # |
| 5 | # Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. |
| 6 | # |
| 7 | # - Do no alter or remove copyright notices |
| 8 | # |
| 9 | # - Redistribution and use of this software in source and binary forms, with |
| 10 | # or without modification, are permitted provided that the following |
| 11 | # conditions are met: |
| 12 | # |
| 13 | # - Redistribution of source code must retain the above copyright notice, |
| 14 | # this list of conditions and the following disclaimer. |
| 15 | # |
| 16 | # - Redistribution in binary form must reproduce the above copyright notice, |
| 17 | # this list of conditions and the following disclaimer in the |
| 18 | # documentation and/or other materials provided with the distribution. |
| 19 | # |
| 20 | # Neither the name of Sun Microsystems, Inc. or the names of contributors |
| 21 | # may be used to endorse or promote products derived from this software |
| 22 | # without specific prior written permission. |
| 23 | # |
| 24 | # This software is provided "AS IS," without a warranty of any kind. |
| 25 | # ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, |
| 26 | # INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
| 27 | # PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN |
| 28 | # MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR |
| 29 | # ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR |
| 30 | # DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN |
| 31 | # OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR |
| 32 | # FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE |
| 33 | # DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, |
| 34 | # ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF |
| 35 | # SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 36 | # |
| 37 | # You acknowledge that this software is not designed, licensed or |
| 38 | # intended for use in the design, construction, operation or maintenance of |
| 39 | # any nuclear facility. |
| 40 | # |
| 41 | # ========== Copyright Header End ============================================ |
| 42 | # id: @(#)default.mk 1.28 04/10/18 |
| 43 | # purpose: |
| 44 | # copyright: Copyright 2004 Sun Microsystems, Inc. All Rights Reserved |
| 45 | # copyright: Use is subject to license terms. |
| 46 | |
| 47 | .SILENT: |
| 48 | .PARALLEL: |
| 49 | |
| 50 | .SCCS_GET: |
| 51 | ?sccs $(SCCSFLAGS) get $(SCCSGETFLAGS) $@ -G$@ ; echo Getting $@ |
| 52 | |
| 53 | SPRO_HOME = $(SUN_STUDIO) |
| 54 | SPRO_PATH = ${SPRO_HOME}/bin |
| 55 | |
| 56 | CC5 = ${SPRO_PATH}/cc |
| 57 | CC4 = /usr/bin |
| 58 | |
| 59 | CCS5 = /usr/ccs/bin |
| 60 | CCS4 = /usr/bin |
| 61 | |
| 62 | CCSHOME:sh = /bin/uname -r | /bin/awk -F. '{ if ( $1 == 4 ) \ |
| 63 | {printf "${CCS4}"} else {printf "${CCS5}"} }' |
| 64 | |
| 65 | CCHOME:sh = /bin/uname -r | /bin/awk -F. '{ if ( $1 == 4 ) \ |
| 66 | {printf "${CC4}"} else {printf "${CC5}"} }' |
| 67 | |
| 68 | OSVERS:sh = /bin/uname -r | /bin/awk -F. '{ if ( $1 == 4 ) \ |
| 69 | {printf "BSD"} else {printf "SYS5"} }' |
| 70 | |
| 71 | HOSTARCH:sh = /bin/uname -m |
| 72 | |
| 73 | USRUCB-BSD = /usr/ucb |
| 74 | USRUCB-SYS5 = /usr/bin |
| 75 | |
| 76 | CCSLIB-BSD = /usr/lib |
| 77 | CCSLIB-SYS5 = /usr/ccs/lib |
| 78 | CCSLIB = ${CCSLIB-${OSVERS}} |
| 79 | |
| 80 | CC = ${SPRO_PATH}/cc |
| 81 | |
| 82 | PERL = /pkg/gnu/bin/perl5.6.0 |
| 83 | |
| 84 | AS = ${CCSHOME}/as |
| 85 | AR = ${CCSHOME}/ar |
| 86 | LD = ${CCSHOME}/ld |
| 87 | SIZE = ${CCSHOME}/size |
| 88 | # MAKE = dmake -m parallel |
| 89 | MAKE = ${CCSHOME}/make |
| 90 | NM = ${CCSHOME}/nm -n |
| 91 | STRIP = ${CCSHOME}/strip |
| 92 | MCS = ${CCSHOME}/mcs |
| 93 | |
| 94 | ADB = /bin/adb |
| 95 | AWK = /usr/bin/nawk |
| 96 | CAT = /bin/cat |
| 97 | CD = cd |
| 98 | CHMOD = /bin/chmod |
| 99 | CMP = /bin/cmp -l |
| 100 | COMM = /bin/comm |
| 101 | COMPRESS = ${USRUCB-${OSVERS}}/compress |
| 102 | CP = cp -p |
| 103 | CPP = ${CCSLIB}/cpp -undef -D${CPU} -Dsun |
| 104 | DATE = /bin/date |
| 105 | DD = /bin/dd |
| 106 | ECHO = /bin/echo |
| 107 | EXPR = /bin/expr |
| 108 | EGREP = /bin/egrep |
| 109 | GREP = /bin/grep |
| 110 | HEAD = /bin/head |
| 111 | LN = /bin/ln -s |
| 112 | MV = /bin/mv -f |
| 113 | PRS = /usr/sccs/prs |
| 114 | RANLIB = /bin/ranlib |
| 115 | RM = /bin/rm -f |
| 116 | |
| 117 | SCCS-BSD = /usr/ucb/sccs |
| 118 | SCCS-SYS5 = ${CCSHOME}/sccs |
| 119 | SCCS = ${SCCS-${OSVERS}} |
| 120 | WHAT = ${CCSHOME}/what |
| 121 | |
| 122 | SED = /bin/sed |
| 123 | SHAR = /usr/local/bin/shar |
| 124 | SORT = /bin/sort |
| 125 | TAIL = /usr/ucb/tail |
| 126 | TAR = /bin/tar |
| 127 | TOUCH = /bin/touch |
| 128 | UNCOMPRESS = ${USRUCB-${OSVERS}}/uncompress |
| 129 | UNIQ = /bin/uniq |
| 130 | |
| 131 | TOOLS = ${ROOT}/bin |
| 132 | TOOLDIR = ${ROOT}/tools |
| 133 | ROMBO = ${TOOLS}/rombo |
| 134 | MAKEOBJ = ${TOOLS}/makeobj |
| 135 | FROMVFONT = ${TOOLS}/fromvfon |
| 136 | BIN2OBJ = ${TOOLS}/bin2obj |
| 137 | ELF2BIN = ${TOOLS}/elf2bin |
| 138 | MAKEPROM = ${TOOLS}/makeprom |
| 139 | DIDEPEND = ${TOOLS}/didepend |
| 140 | |
| 141 | MAKEARRAY = ${ROOT}/obp/pkg/tokenizr/sparc/makearray |
| 142 | |
| 143 | KERNELFLAGS = -xO2 -DSYS5 -DUNIX -DSCCS -DDLOPEN -DDEF_DICT="(512*1024L)" |
| 144 | |