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 5b9bd317cSab196087# Common Development and Distribution License (the "License"). 6b9bd317cSab196087# 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# 217c478bd9Sstevel@tonic-gate# 22ba7866cdSAli Bahrami# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gatePROG= ar 267c478bd9Sstevel@tonic-gateXPG4PROG= ar 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 29ba7866cdSAli Bahramiinclude $(SRC)/cmd/sgs/Makefile.com 307c478bd9Sstevel@tonic-gate 31ba7866cdSAli BahramiCOMOBJ= main.o file.o cmd.o 327c478bd9Sstevel@tonic-gate 33ba7866cdSAli BahramiBLTOBJ = msg.o 347c478bd9Sstevel@tonic-gate 35ba7866cdSAli BahramiOBJS= $(BLTOBJ:%=objs/%) $(COMOBJ:%=objs/%) 36ba7866cdSAli BahramiXPG4OBJS= $(BLTOBJ:%=objs.xpg4/%) $(COMOBJ:%=objs.xpg4/%) 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateLLDFLAGS = '-R$$ORIGIN/../../lib' 39ba7866cdSAli BahramiLLDFLAGS64 = '-R$$ORIGIN/../../../lib/$(MACH64)' 40ba7866cdSAli BahramiCPPFLAGS= -I. -I../../include $(CPPFLAGS.master) -I$(ELFCAP) 41d6555420Smike_sCFLAGS += $(CCVERBOSE) 42d6555420Smike_sC99MODE= $(C99_ENABLE) 43d6555420Smike_s 44*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 45ba7866cdSAli BahramiLDLIBS += -lelf $(CONVLIBDIR) $(CONV_LIB) -lsendfile 46ba7866cdSAli BahramiLINTFLAGS= -x 47ba7866cdSAli BahramiLINTFLAGS64= -x 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate$(XPG4) := CPPFLAGS += -DXPG4 507c478bd9Sstevel@tonic-gate 51ba7866cdSAli BahramiBLTDEFS = msg.h 52ba7866cdSAli BahramiBLTDATA = msg.c 53ba7866cdSAli BahramiBLTMESG = $(SGSMSGDIR)/ar 547c478bd9Sstevel@tonic-gate 55ba7866cdSAli BahramiBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 567c478bd9Sstevel@tonic-gate 57ba7866cdSAli BahramiSGSMSGCOM = ../common/ar.msg 58ba7866cdSAli BahramiSGSMSGTARG = $(SGSMSGCOM) 59ba7866cdSAli BahramiSGSMSGALL = $(SGSMSGCOM) 607c478bd9Sstevel@tonic-gate 61ba7866cdSAli BahramiSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n ar_msg 627c478bd9Sstevel@tonic-gate 63ba7866cdSAli BahramiSRCS= $(COMOBJ:%.o=../common/%.c) $(BLTDATA:%.o=$(SGSTOOLS)/common/%.c) 64ba7866cdSAli BahramiLINTSRCS= $(SRCS) ../common/lintsup.c 65ba7866cdSAli Bahrami 66ba7866cdSAli BahramiCLEANFILES += $(LINTOUTS) $(BLTFILES) 67