3 # The contents of this file are subject to the terms of the
4 # Common Development and Distribution License (the "License").
5 # You may not use this file except in compliance with the License.
7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 # or http://www.opensolaris.org/os/licensing.
9 # See the License for the specific language governing permissions
10 # and limitations under the License.
12 # When distributing Covered Code, include this CDDL HEADER in each
13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 # If applicable, add the following below this CDDL HEADER, with the
15 # fields enclosed by brackets "[]" replaced with your own identifying
16 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # lib/libunistat/Makefile
26 include ..
/Makefile.lib
33 clean := TARGET
= clean
34 clobber := TARGET
= clobber
35 delete
:= TARGET
= delete
36 install := TARGET
= install
38 lintinter
:= TARGET
= lintinter
40 package
:= TARGET
= package
44 HDRS
= spcs_dtrinkets.h \
50 ROOTHDRDIR
= $(ROOT
)/usr
/include/sys
/unistat
51 ROOTHDRS
= $(HDRS
:%=$(ROOTHDRDIR
)/%)
55 all clean clobber delete lint package lintinter
: $(SUBDIRS
)
58 install_h
: $(ROOTHDRDIR
) $(ROOTHDRS
)
62 # install rule for install_h target
66 $(ROOTHDRDIR
)/spcs_errors.h
: $(MACH
)/spcs_errors.h
67 $(INS.file
) $(MACH
)/spcs_errors.h
69 $(MACH
)/spcs_errors.h
: FRC
70 @ cd
$(MACH
); pwd
; $(MAKE
) spcs_errors.h
72 $(ROOTHDRDIR
)/spcs_s_u.h
: common
/spcs_s_u.h
73 $(INS.file
) common
/spcs_s_u.h
75 $(ROOTHDRDIR
)/spcs_etext.h
: $(MACH
)/spcs_etext.h
76 $(INS.file
) $(MACH
)/spcs_etext.h
78 $(MACH
)/spcs_etext.h
: FRC
79 @ cd
$(MACH
); pwd
; $(MAKE
) spcs_etext.h
81 $(ROOTHDRDIR
)/spcs_dtrinkets.h
: $(MACH
)/spcs_dtrinkets.h
82 $(INS.file
) $(MACH
)/spcs_dtrinkets.h
84 $(MACH
)/spcs_dtrinkets.h
: FRC
85 @ cd
$(MACH
); pwd
; $(MAKE
) spcs_dtrinkets.h
87 $(ROOTHDRDIR
)/spcs_etrinkets.h
: $(MACH
)/spcs_etrinkets.h
88 $(INS.file
) $(MACH
)/spcs_etrinkets.h
90 $(MACH
)/spcs_etrinkets.h
: FRC
91 @ cd
$(MACH
); pwd
; $(MAKE
) spcs_etrinkets.h
93 $(MACH
) $(MACH64
): FRC
94 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)