xref: /illumos-gate/usr/src/lib/libsaveargs/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
1702941cdSRichard Lowe#
2702941cdSRichard Lowe# CDDL HEADER START
3702941cdSRichard Lowe#
4702941cdSRichard Lowe# The contents of this file are subject to the terms of the
5702941cdSRichard Lowe# Common Development and Distribution License (the "License").
6702941cdSRichard Lowe# You may not use this file except in compliance with the License.
7702941cdSRichard Lowe#
8702941cdSRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9702941cdSRichard Lowe# or http://www.opensolaris.org/os/licensing.
10702941cdSRichard Lowe# See the License for the specific language governing permissions
11702941cdSRichard Lowe# and limitations under the License.
12702941cdSRichard Lowe#
13702941cdSRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each
14702941cdSRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15702941cdSRichard Lowe# If applicable, add the following below this CDDL HEADER, with the
16702941cdSRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
17702941cdSRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
18702941cdSRichard Lowe#
19702941cdSRichard Lowe# CDDL HEADER END
20702941cdSRichard Lowe#
21702941cdSRichard Lowe#
22702941cdSRichard Lowe# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23702941cdSRichard Lowe# Use is subject to license terms.
24702941cdSRichard Lowe#
25702941cdSRichard Lowe#
26702941cdSRichard Lowe
27702941cdSRichard Loweinclude ../Makefile.lib
28702941cdSRichard Lowe
29702941cdSRichard Lowe$(BUILD64)SUBDIRS += $(MACH64)
30702941cdSRichard Lowe
31702941cdSRichard Loweall :=		TARGET= all
32702941cdSRichard Loweclean :=	TARGET= clean
33702941cdSRichard Loweclobber :=	TARGET= clobber
34702941cdSRichard Lowedelete :=	TARGET= delete
35702941cdSRichard Loweinstall :=	TARGET= install
36702941cdSRichard Lowe_msg :=		TARGET= _msg
37702941cdSRichard Lowepackage :=	TARGET= package
38702941cdSRichard Lowe
39702941cdSRichard LoweLIBRARY=	libsaveargs.a
40702941cdSRichard Lowe
41702941cdSRichard Lowe# definitions for install_h target
42702941cdSRichard LoweHDRS=		saveargs.h
43702941cdSRichard LoweROOTHDRDIR=	$(ROOT)/usr/include
44702941cdSRichard LoweROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
45702941cdSRichard LoweCHECKHDRS=	$(HDRS:%.h=common/%.check)
46702941cdSRichard Lowe
47702941cdSRichard Lowe$(ROOTHDRS) :=  FILEMODE= 644
48702941cdSRichard Lowe
49702941cdSRichard Lowe# install rule for install_h target
50702941cdSRichard Lowe$(ROOTHDRDIR)/%: common/%
51702941cdSRichard Lowe	$(INS.file)
52702941cdSRichard Lowe
53702941cdSRichard Lowe.KEEP_STATE:
54702941cdSRichard Lowe
55*241c90a0SRichard Loweall clean clobber delete install package: $(SUBDIRS)
56702941cdSRichard Lowe
57702941cdSRichard Loweinstall_h: $(ROOTHDRS)
58702941cdSRichard Lowe
59702941cdSRichard Lowecheck: $(CHECKHDRS)
60702941cdSRichard Lowe
61702941cdSRichard Lowe$(SUBDIRS):	FRC
62702941cdSRichard Lowe	@cd $@; pwd; $(MAKE) $(TARGET)
63702941cdSRichard Lowe
64702941cdSRichard LoweFRC:
65