In legion build config, updated path to GNU tools and updated deprecated Sun CC flag...
[OpenSPARC-T2-SAM] / obp / default.mk
CommitLineData
920dae64
AT
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
53SPRO_HOME = $(SUN_STUDIO)
54SPRO_PATH = ${SPRO_HOME}/bin
55
56CC5 = ${SPRO_PATH}/cc
57CC4 = /usr/bin
58
59CCS5 = /usr/ccs/bin
60CCS4 = /usr/bin
61
62CCSHOME:sh = /bin/uname -r | /bin/awk -F. '{ if ( $1 == 4 ) \
63 {printf "${CCS4}"} else {printf "${CCS5}"} }'
64
65CCHOME:sh = /bin/uname -r | /bin/awk -F. '{ if ( $1 == 4 ) \
66 {printf "${CC4}"} else {printf "${CC5}"} }'
67
68OSVERS:sh = /bin/uname -r | /bin/awk -F. '{ if ( $1 == 4 ) \
69 {printf "BSD"} else {printf "SYS5"} }'
70
71HOSTARCH:sh = /bin/uname -m
72
73USRUCB-BSD = /usr/ucb
74USRUCB-SYS5 = /usr/bin
75
76CCSLIB-BSD = /usr/lib
77CCSLIB-SYS5 = /usr/ccs/lib
78CCSLIB = ${CCSLIB-${OSVERS}}
79
80CC = ${SPRO_PATH}/cc
81
82PERL = /pkg/gnu/bin/perl5.6.0
83
84AS = ${CCSHOME}/as
85AR = ${CCSHOME}/ar
86LD = ${CCSHOME}/ld
87SIZE = ${CCSHOME}/size
88# MAKE = dmake -m parallel
89MAKE = ${CCSHOME}/make
90NM = ${CCSHOME}/nm -n
91STRIP = ${CCSHOME}/strip
92MCS = ${CCSHOME}/mcs
93
94ADB = /bin/adb
95AWK = /usr/bin/nawk
96CAT = /bin/cat
97CD = cd
98CHMOD = /bin/chmod
99CMP = /bin/cmp -l
100COMM = /bin/comm
101COMPRESS = ${USRUCB-${OSVERS}}/compress
102CP = cp -p
103CPP = ${CCSLIB}/cpp -undef -D${CPU} -Dsun
104DATE = /bin/date
105DD = /bin/dd
106ECHO = /bin/echo
107EXPR = /bin/expr
108EGREP = /bin/egrep
109GREP = /bin/grep
110HEAD = /bin/head
111LN = /bin/ln -s
112MV = /bin/mv -f
113PRS = /usr/sccs/prs
114RANLIB = /bin/ranlib
115RM = /bin/rm -f
116
117SCCS-BSD = /usr/ucb/sccs
118SCCS-SYS5 = ${CCSHOME}/sccs
119SCCS = ${SCCS-${OSVERS}}
120WHAT = ${CCSHOME}/what
121
122SED = /bin/sed
123SHAR = /usr/local/bin/shar
124SORT = /bin/sort
125TAIL = /usr/ucb/tail
126TAR = /bin/tar
127TOUCH = /bin/touch
128UNCOMPRESS = ${USRUCB-${OSVERS}}/uncompress
129UNIQ = /bin/uniq
130
131TOOLS = ${ROOT}/bin
132TOOLDIR = ${ROOT}/tools
133ROMBO = ${TOOLS}/rombo
134MAKEOBJ = ${TOOLS}/makeobj
135FROMVFONT = ${TOOLS}/fromvfon
136BIN2OBJ = ${TOOLS}/bin2obj
137ELF2BIN = ${TOOLS}/elf2bin
138MAKEPROM = ${TOOLS}/makeprom
139DIDEPEND = ${TOOLS}/didepend
140
141MAKEARRAY = ${ROOT}/obp/pkg/tokenizr/sparc/makearray
142
143KERNELFLAGS = -xO2 -DSYS5 -DUNIX -DSCCS -DDLOPEN -DDEF_DICT="(512*1024L)"
144