xref: /titanic_41/usr/src/lib/libpicl/Makefile (revision 6dfee4834394825da35b977ca71cdc965bc7b6a4)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# lib/libpicl/Makefile
29#
30
31include	$(SRC)/lib/Makefile.lib
32
33SUBDIRS = $(MACH)
34$(BUILD64)SUBDIRS += $(MACH64)
35
36# conditional assignments
37all :=      	TARGET= all
38install :=      TARGET= install
39clean :=        TARGET= clean
40clobber :=      TARGET= clobber
41lint :=         TARGET= lint
42_msg :=         TARGET= _msg
43
44# definitions for install_h target
45HDRS=           picl.h
46ROOTHDRDIR=     $(ROOT)/usr/include
47ROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
48CHECKHDRS=      $(HDRS:%.h=%.check)
49
50.KEEP_STATE:
51
52all install clean clobber: spec .WAIT $(SUBDIRS)
53
54lint _msg:	$(SUBDIRS)
55
56# install rule for install_h target
57
58$(ROOTHDRDIR)/%: %
59	$(INS.file)
60
61install_h: $(ROOTHDRDIR) $(ROOTHDRS)
62
63$(ROOTHDRDIR):
64	$(INS.dir)
65
66check: $(CHECKHDRS)
67
68$(SUBDIRS) spec: FRC
69	@cd $@; pwd; $(MAKE) $(TARGET)
70
71FRC:
72
73