xref: /titanic_50/usr/src/lib/libunistat/Makefile (revision 3270659f55e0928d6edec3d26217cc29398a8149)
1fcf3ce44SJohn Forte# CDDL HEADER START
2fcf3ce44SJohn Forte#
3fcf3ce44SJohn Forte# The contents of this file are subject to the terms of the
4fcf3ce44SJohn Forte# Common Development and Distribution License (the "License").
5fcf3ce44SJohn Forte# You may not use this file except in compliance with the License.
6fcf3ce44SJohn Forte#
7fcf3ce44SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8fcf3ce44SJohn Forte# or http://www.opensolaris.org/os/licensing.
9fcf3ce44SJohn Forte# See the License for the specific language governing permissions
10fcf3ce44SJohn Forte# and limitations under the License.
11fcf3ce44SJohn Forte#
12fcf3ce44SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
13fcf3ce44SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14fcf3ce44SJohn Forte# If applicable, add the following below this CDDL HEADER, with the
15fcf3ce44SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
16fcf3ce44SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
17fcf3ce44SJohn Forte#
18fcf3ce44SJohn Forte# CDDL HEADER END
19fcf3ce44SJohn Forte#
20fcf3ce44SJohn Forte#
21*3270659fSSrikanth, Ramana# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22fcf3ce44SJohn Forte# Use is subject to license terms.
23fcf3ce44SJohn Forte#
24fcf3ce44SJohn Forte# lib/libunistat/Makefile
25fcf3ce44SJohn Forte
26fcf3ce44SJohn Forteinclude		../Makefile.lib
27fcf3ce44SJohn Forte
28fcf3ce44SJohn ForteUTSBASE= ../../uts
29fcf3ce44SJohn Forte
30fcf3ce44SJohn ForteSUBDIRS=	$(MACH)
31fcf3ce44SJohn Forte
32fcf3ce44SJohn Forteall :=		TARGET= all
33fcf3ce44SJohn Forteclean :=	TARGET= clean
34fcf3ce44SJohn Forteclobber :=	TARGET= clobber
35fcf3ce44SJohn Fortedelete :=	TARGET= delete
36fcf3ce44SJohn Forteinstall :=	TARGET= install
37fcf3ce44SJohn Fortelint :=		TARGET= lint
38fcf3ce44SJohn Fortelintinter :=		TARGET= lintinter
39fcf3ce44SJohn Forte_msg :=		TARGET= _msg
40fcf3ce44SJohn Fortepackage :=	TARGET= package
41fcf3ce44SJohn Forte
42fcf3ce44SJohn ForteLIBRARY= 	libunistat.a
43fcf3ce44SJohn Forte
44fcf3ce44SJohn ForteHDRS=		spcs_dtrinkets.h \
45fcf3ce44SJohn Forte		spcs_etrinkets.h \
46fcf3ce44SJohn Forte		spcs_errors.h \
47fcf3ce44SJohn Forte		spcs_etext.h
48fcf3ce44SJohn ForteHDRDIR=		common
49fcf3ce44SJohn Forte
50fcf3ce44SJohn ForteROOTHDRDIR=	$(ROOT)/usr/include/sys/unistat
51fcf3ce44SJohn ForteROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
52fcf3ce44SJohn Forte
53fcf3ce44SJohn Forte.KEEP_STATE:
54fcf3ce44SJohn Forte
55fcf3ce44SJohn Forteall clean clobber delete lint package lintinter: $(SUBDIRS)
56fcf3ce44SJohn Forte
57fcf3ce44SJohn Forteinstall: $(SUBDIRS)
58fcf3ce44SJohn Forteinstall_h: $(ROOTHDRDIR) $(ROOTHDRS)
59fcf3ce44SJohn Forte
60fcf3ce44SJohn Fortecheck:
61fcf3ce44SJohn Forte
62fcf3ce44SJohn Forte# install rule for install_h target
63fcf3ce44SJohn Forte$(ROOTHDRDIR):
64fcf3ce44SJohn Forte	$(INS.dir)
65fcf3ce44SJohn Forte
66fcf3ce44SJohn Forte$(ROOTHDRDIR)/spcs_errors.h: $(MACH)/spcs_errors.h
67fcf3ce44SJohn Forte	$(INS.file) $(MACH)/spcs_errors.h
68fcf3ce44SJohn Forte
69fcf3ce44SJohn Forte$(MACH)/spcs_errors.h:	FRC
70*3270659fSSrikanth, Ramana	@ cd $(MACH); pwd; $(MAKE) spcs_errors.h
71fcf3ce44SJohn Forte
72fcf3ce44SJohn Forte$(ROOTHDRDIR)/spcs_s_u.h: common/spcs_s_u.h
73fcf3ce44SJohn Forte	$(INS.file) common/spcs_s_u.h
74fcf3ce44SJohn Forte
75fcf3ce44SJohn Forte$(ROOTHDRDIR)/spcs_etext.h: $(MACH)/spcs_etext.h
76fcf3ce44SJohn Forte	$(INS.file) $(MACH)/spcs_etext.h
77fcf3ce44SJohn Forte
78fcf3ce44SJohn Forte$(MACH)/spcs_etext.h:	FRC
79*3270659fSSrikanth, Ramana	@ cd $(MACH); pwd; $(MAKE) spcs_etext.h
80fcf3ce44SJohn Forte
81fcf3ce44SJohn Forte$(ROOTHDRDIR)/spcs_dtrinkets.h: $(MACH)/spcs_dtrinkets.h
82fcf3ce44SJohn Forte	$(INS.file) $(MACH)/spcs_dtrinkets.h
83fcf3ce44SJohn Forte
84fcf3ce44SJohn Forte$(MACH)/spcs_dtrinkets.h:	FRC
85*3270659fSSrikanth, Ramana	@ cd $(MACH); pwd; $(MAKE) spcs_dtrinkets.h
86fcf3ce44SJohn Forte
87fcf3ce44SJohn Forte$(ROOTHDRDIR)/spcs_etrinkets.h: $(MACH)/spcs_etrinkets.h
88fcf3ce44SJohn Forte	$(INS.file) $(MACH)/spcs_etrinkets.h
89fcf3ce44SJohn Forte
90fcf3ce44SJohn Forte$(MACH)/spcs_etrinkets.h:	FRC
91*3270659fSSrikanth, Ramana	@ cd $(MACH); pwd; $(MAKE) spcs_etrinkets.h
92fcf3ce44SJohn Forte
93fcf3ce44SJohn Forte$(MACH) $(MACH64):	FRC
94fcf3ce44SJohn Forte	@cd $@; pwd; $(MAKE) $(TARGET)
95fcf3ce44SJohn Forte
96fcf3ce44SJohn ForteFRC:
97