10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*2522Sraf# Common Development and Distribution License (the "License"). 6*2522Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*2522Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 25*2522Sraf# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 27*2522Sraf 280Sstevel@tonic-gateinclude ../Makefile.lib 290Sstevel@tonic-gate 300Sstevel@tonic-gateLIBRARY= libgss.a 310Sstevel@tonic-gate 320Sstevel@tonic-gate# defines the duplicate sources we share with gsscred 330Sstevel@tonic-gateGSSCRED_DIR = $(SRC)/cmd/gss/gsscred 340Sstevel@tonic-gateDUPLICATE_SRC = gsscred_utils.c gsscred_file.c # gen_oids.c 350Sstevel@tonic-gateCLEAN_SRC = $(DUPLICATE_SRC) gen_oids.c 360Sstevel@tonic-gate 370Sstevel@tonic-gateSUBDIRS = $(MACH) 380Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64) 390Sstevel@tonic-gate 400Sstevel@tonic-gateROOTDIRS= $(ROOT)/usr/include 410Sstevel@tonic-gateGSSMECH_DIR= $(ROOT)/usr/lib/gss 420Sstevel@tonic-gate 430Sstevel@tonic-gateall := TARGET= all 440Sstevel@tonic-gateclean := TARGET= clean 450Sstevel@tonic-gateclobber := TARGET= clobber 460Sstevel@tonic-gateinstall := TARGET= install 470Sstevel@tonic-gatelint := TARGET= lint 480Sstevel@tonic-gate 490Sstevel@tonic-gatePOFILE = $(LIBRARY:.a=.po) 500Sstevel@tonic-gateXGETFLAGS+= -a 510Sstevel@tonic-gateMSGFILES = `$(GREP) -l gettext *.[ch]` 520Sstevel@tonic-gate 530Sstevel@tonic-gate.KEEP_STATE: 540Sstevel@tonic-gate 55*2522Srafall clean clobber lint: $(SUBDIRS) 560Sstevel@tonic-gate 570Sstevel@tonic-gateinstall: $(GSSMECH_DIR) all .WAIT $(SUBDIRS) 580Sstevel@tonic-gate 590Sstevel@tonic-gatecheck install_h: 600Sstevel@tonic-gate 610Sstevel@tonic-gate_msg: $(MSGDOMAINPOFILE) 620Sstevel@tonic-gate 630Sstevel@tonic-gate$(POFILE): pofile_MSGFILES 640Sstevel@tonic-gate 650Sstevel@tonic-gate$(GSSMECH_DIR): 660Sstevel@tonic-gate $(INS.dir) 670Sstevel@tonic-gate 68*2522Sraf$(SUBDIRS): FRC 690Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 700Sstevel@tonic-gate 710Sstevel@tonic-gateFRC: 720Sstevel@tonic-gate 730Sstevel@tonic-gate# include library targets 740Sstevel@tonic-gateinclude ../Makefile.targ 750Sstevel@tonic-gate 760Sstevel@tonic-gate# EXPORT DELETE START 770Sstevel@tonic-gate# Special target to clean up the source tree for export distribution 780Sstevel@tonic-gate# Warning: This target changes the source tree 790Sstevel@tonic-gate 800Sstevel@tonic-gateEXPORT_SRC: 810Sstevel@tonic-gate $(RM) Makefile+ g_seal.c+ g_unseal.c+ 820Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 830Sstevel@tonic-gate < g_seal.c > g_seal.c+ 840Sstevel@tonic-gate $(MV) g_seal.c+ g_seal.c 850Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 860Sstevel@tonic-gate < g_unseal.c > g_unseal.c+ 870Sstevel@tonic-gate $(MV) g_unseal.c+ g_unseal.c 880Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 890Sstevel@tonic-gate < Makefile > Makefile+ 900Sstevel@tonic-gate $(MV) Makefile+ Makefile 910Sstevel@tonic-gate $(CHMOD) 444 Makefile g_seal.c g_unseal.c 920Sstevel@tonic-gate 930Sstevel@tonic-gate# EXPORT DELETE END 940Sstevel@tonic-gate 950Sstevel@tonic-gate 960Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ 97