17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 55aefb655Srie# Common Development and Distribution License (the "License"). 65aefb655Srie# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 215aefb655Srie 227c478bd9Sstevel@tonic-gate# 2357ef7aa9SRod Evans# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatePROG= mcs 287c478bd9Sstevel@tonic-gateSTRIPFILE= strip 297c478bd9Sstevel@tonic-gate 3067298654SdamicoROOTLINKS= $(VAR_SGSBIN)/$(STRIPFILE) 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 337c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.com 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate# avoid bootstrap problems 367c478bd9Sstevel@tonic-gateMCS = /usr/ccs/bin/mcs 377c478bd9Sstevel@tonic-gate 3857ef7aa9SRod EvansCOMOBJS = main.o file.o utils.o global.o \ 397c478bd9Sstevel@tonic-gate message.o 4057ef7aa9SRod EvansTOOLSOBJS = alist.o 4157ef7aa9SRod Evans 4257ef7aa9SRod EvansOBJS = $(COMOBJS) $(TOOLSOBJS) 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateLLDFLAGS = '-R$$ORIGIN/../../lib' 457c478bd9Sstevel@tonic-gateLLDFLAGS64 = '-R$$ORIGIN/../../../lib/$(MACH64)' 467c478bd9Sstevel@tonic-gateLDFLAGS += $(VERSREF) $(LLDFLAGS) 475aefb655SrieLDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf 487c478bd9Sstevel@tonic-gate 495aefb655SrieLINTFLAGS += -x 505aefb655SrieLINTFLAGS64 += -x 517c478bd9Sstevel@tonic-gate 52*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 53*7014882cSRichard Lowe 5457ef7aa9SRod EvansSRCS = $(COMOBJS:%.o=../common/%.c) \ 5557ef7aa9SRod Evans $(TOOLSOBJS:%.o=$(SGSTOOLS)/common/%.c) 5657ef7aa9SRod EvansLINTSRCS = $(SRCS) ../common/lintsup.c 577c478bd9Sstevel@tonic-gate 585aefb655SrieCLEANFILES += $(OBJS) $(LINTOUTS) 59