Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
5253N/A#
5253N/A# CDDL HEADER START
5253N/A#
5253N/A# The contents of this file are subject to the terms of the
5253N/A# Common Development and Distribution License, Version 1.0 only
5253N/A# (the "License"). You may not use this file except in compliance
5253N/A# with the License.
5253N/A#
5253N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5253N/A# or http://www.opensolaris.org/os/licensing.
5253N/A# See the License for the specific language governing permissions
5253N/A# and limitations under the License.
5253N/A#
5253N/A# When distributing Covered Code, include this CDDL HEADER in each
5253N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5253N/A# If applicable, add the following below this CDDL HEADER, with the
5253N/A# fields enclosed by brackets "[]" replaced with your own identifying
5253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5253N/A#
5253N/A# CDDL HEADER END
5253N/A#
5253N/A#
5305N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5253N/A# Use is subject to license terms.
5253N/A#
5254N/A# ident "%Z%%M% %I% %E% SMI"
5254N/A#
5254N/A
5253N/APROG = cw
5253N/A
5253N/Ainclude ../Makefile.tools
5253N/A
5253N/A# Bootstrap problem -- we have to build cw before we can use it
5253N/Ai386_CC= $(SPRO_VROOT)/bin/cc
5253N/Asparc_CC= $(SPRO_VROOT)/bin/cc
5253N/A$(__GNUC)i386_CC= $(GNU_ROOT)/bin/gcc
5253N/A$(__GNUC)sparc_CC= $(GNU_ROOT)/bin/gcc
5253N/A
5253N/ACFLAGS += $(CCVERBOSE)
5253N/A
5253N/A# Override CFLAGS when building with gcc. This is needed only for bootstrap
5253N/A# of cw.
5305N/A$(__GNUC)CFLAGS= -O -D__sun -Wall -Wno-unknown-pragmas -Werror \
5253N/A -std=gnu89 -nodefaultlibs
5253N/A
5253N/A$(__GNUC)LDLIBS += -lc
5253N/A$(__GNUC)LDFLAGS= $(STRIPFLAG) $(NES_MAPFILE:%=-Wl,-M%)
5253N/A
5253N/ACPPFLAGS += -DDEFAULT_CC_DIR='"$(SPRO_VROOT)/bin"'
5256N/ACPPFLAGS += -DDEFAULT_GCC_DIR='"$(GNU_ROOT)/bin"'
5256N/ACPPFLAGS += -DDEFAULT_CPLUSPLUS_DIR='"$(SPRO_VROOT)/bin"'
5256N/ACPPFLAGS += -DDEFAULT_GPLUSPLUS_DIR='"$(GNU_ROOT)/bin"'
5256N/A
5256N/A.KEEP_STATE:
5256N/A
5256N/Aall: $(PROG)
5256N/A
5253N/Ainstall: all .WAIT $(ROOTONBLDMACHPROG)
5253N/A
5253N/Alint: lint_PROG
5253N/A
5253N/Aclean:
5253N/A
5253N/Ainclude ../Makefile.targ
5253N/A