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# 22*ba7866cdSAli 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 29*ba7866cdSAli Bahramiinclude $(SRC)/cmd/sgs/Makefile.com 307c478bd9Sstevel@tonic-gate 31*ba7866cdSAli BahramiCOMOBJ= main.o file.o cmd.o 327c478bd9Sstevel@tonic-gate 33*ba7866cdSAli BahramiBLTOBJ = msg.o 347c478bd9Sstevel@tonic-gate 35*ba7866cdSAli BahramiOBJS= $(BLTOBJ:%=objs/%) $(COMOBJ:%=objs/%) 36*ba7866cdSAli BahramiXPG4OBJS= $(BLTOBJ:%=objs.xpg4/%) $(COMOBJ:%=objs.xpg4/%) 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateLLDFLAGS = '-R$$ORIGIN/../../lib' 39*ba7866cdSAli BahramiLLDFLAGS64 = '-R$$ORIGIN/../../../lib/$(MACH64)' 40*ba7866cdSAli BahramiCPPFLAGS= -I. -I../../include $(CPPFLAGS.master) -I$(ELFCAP) 41d6555420Smike_sCFLAGS += $(CCVERBOSE) 42d6555420Smike_sC99MODE= $(C99_ENABLE) 43d6555420Smike_s 44*ba7866cdSAli BahramiLDLIBS += -lelf $(CONVLIBDIR) $(CONV_LIB) -lsendfile 45*ba7866cdSAli BahramiLINTFLAGS= -x 46*ba7866cdSAli BahramiLINTFLAGS64= -x 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate$(XPG4) := CPPFLAGS += -DXPG4 497c478bd9Sstevel@tonic-gate 50*ba7866cdSAli BahramiBLTDEFS = msg.h 51*ba7866cdSAli BahramiBLTDATA = msg.c 52*ba7866cdSAli BahramiBLTMESG = $(SGSMSGDIR)/ar 537c478bd9Sstevel@tonic-gate 54*ba7866cdSAli BahramiBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 557c478bd9Sstevel@tonic-gate 56*ba7866cdSAli BahramiSGSMSGCOM = ../common/ar.msg 57*ba7866cdSAli BahramiSGSMSGTARG = $(SGSMSGCOM) 58*ba7866cdSAli BahramiSGSMSGALL = $(SGSMSGCOM) 597c478bd9Sstevel@tonic-gate 60*ba7866cdSAli BahramiSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n ar_msg 617c478bd9Sstevel@tonic-gate 62*ba7866cdSAli BahramiSRCS= $(COMOBJ:%.o=../common/%.c) $(BLTDATA:%.o=$(SGSTOOLS)/common/%.c) 63*ba7866cdSAli BahramiLINTSRCS= $(SRCS) ../common/lintsup.c 64*ba7866cdSAli Bahrami 65*ba7866cdSAli BahramiCLEANFILES += $(LINTOUTS) $(BLTFILES) 66