Makefile revision 6a3e8e8695d5c7d1d18c6800d676990d7f61a2a4
0N/A#
2109N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A#
0N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A
0N/APROG = cw
0N/A
0N/AMAN1FILES= cw.1
0N/A
0N/Ainclude ../Makefile.tools
0N/A
0N/A# Bootstrap problem -- we have to build cw before we can use it
0N/Ai386_CC= $(SPRO_VROOT)/bin/cc
0N/Asparc_CC= $(SPRO_VROOT)/bin/cc
0N/A$(__GNUC)i386_CC= $(GCC_ROOT)/bin/gcc
0N/A$(__GNUC)sparc_CC= $(GCC_ROOT)/bin/gcc
0N/A
0N/ACFLAGS += $(CCVERBOSE)
0N/A
0N/A# Override CFLAGS. This is needed only for bootstrap of cw.
0N/A$(__GNUC)CFLAGS= -O -D__sun -Wall -Wno-unknown-pragmas -Werror \
0N/A -std=gnu89 -nodefaultlibs
0N/A$(__SUNC)CFLAGS= -xspace -Xa -xildoff -errtags=yes -errwarn=%all \
0N/A -xc99=%none -W0,-xglobalstatic -v
0N/A
2109N/A
0N/A$(__GNUC)LDLIBS += -lc
0N/A$(__GNUC)LDFLAGS= $(MAPFILE.NES:%=-Wl,-M%)
0N/A
0N/ACPPFLAGS += -DDEFAULT_CC_DIR='"$(SPRO_VROOT)/bin"'
0N/ACPPFLAGS += -DDEFAULT_GCC_DIR='"$(GCC_ROOT)/bin"'
0N/ACPPFLAGS += -DDEFAULT_CPLUSPLUS_DIR='"$(SPRO_VROOT)/bin"'
0N/ACPPFLAGS += -DDEFAULT_GPLUSPLUS_DIR='"$(GCC_ROOT)/bin"'
0N/A
0N/A$(ROOTONBLDMAN1FILES) := FILEMODE= 644
0N/A
0N/A.KEEP_STATE:
0N/A
0N/Aall: $(PROG) $(MAN1FILES)
0N/A
0N/Ainstall: all .WAIT $(ROOTONBLDMACHPROG) $(ROOTONBLDMAN1FILES)
0N/A
0N/Alint: lint_PROG
0N/A
0N/Aclean:
0N/A
0N/Ainclude ../Makefile.targ
0N/A