702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# CDDL HEADER START
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# The contents of this file are subject to the terms of the
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# Common Development and Distribution License (the "License").
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# You may not use this file except in compliance with the License.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# or http://www.opensolaris.org/os/licensing.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# See the License for the specific language governing permissions
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# and limitations under the License.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# CDDL HEADER END
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# Use is subject to license terms.
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe#
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweinclude ../Makefile.lib
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe$(BUILD64)SUBDIRS += $(MACH64)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweall := TARGET= all
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweclean := TARGET= clean
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweclobber := TARGET= clobber
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowedelete := TARGET= delete
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweinstall := TARGET= install
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowelint := TARGET= lint
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe_msg := TARGET= _msg
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowepackage := TARGET= package
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard LoweLIBRARY= libsaveargs.a
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# definitions for install_h target
702941cd97e30d600c2c1275823bc58231b2c361Richard LoweHDRS= saveargs.h
702941cd97e30d600c2c1275823bc58231b2c361Richard LoweROOTHDRDIR= $(ROOT)/usr/include
702941cd97e30d600c2c1275823bc58231b2c361Richard LoweROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
702941cd97e30d600c2c1275823bc58231b2c361Richard LoweCHECKHDRS= $(HDRS:%.h=common/%.check)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe$(ROOTHDRS) := FILEMODE= 644
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe# install rule for install_h target
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe$(ROOTHDRDIR)/%: common/%
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe $(INS.file)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe.KEEP_STATE:
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweall clean clobber delete install lint package: $(SUBDIRS)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Loweinstall_h: $(ROOTHDRS)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowecheck: $(CHECKHDRS)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe$(SUBDIRS): FRC
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe @cd $@; pwd; $(MAKE) $(TARGET)
702941cd97e30d600c2c1275823bc58231b2c361Richard Lowe
702941cd97e30d600c2c1275823bc58231b2c361Richard LoweFRC: