xref: /titanic_51/usr/src/lib/librsm/Makefile (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
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#pragma ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1998-2001 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# lib/librsm/Makefile
29#
30
31include ../Makefile.lib
32
33SUBDIRS = spec .WAIT $(MACH) $(BUILD64) $(MACH64)
34
35all:=           TARGET= all
36clean:=         TARGET= clean
37clobber:=       TARGET= clobber
38install:=       TARGET= install
39lint:=          TARGET= lint
40
41.KEEP_STATE:
42
43all clean clobber install lint: $(SUBDIRS)
44
45# definitions for install_h target
46HDRS=		rsmapi.h
47SYSHDRS=	rsmndi.h
48
49ROOTHDRDIR=	$(ROOT)/usr/include
50ROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
51ROOTSYSHDRDIR=	$(ROOT)/usr/include/sys/rsm
52ROOTSYSHDRS=	$(SYSHDRS:%=$(ROOTSYSHDRDIR)/%)
53
54# install rules for install_h target
55$(ROOTHDRDIR)/%:	inc/%
56	$(INS.file)
57$(ROOTSYSHDRDIR)/%:	inc/%
58	$(INS.file)
59
60CHECKHDRS=	$(HDRS:%.h=inc/%.check)
61CHECKSYSHDRS=	$(SYSHDRS:%.h=inc/%.check)
62
63install_h:	$(ROOTHDRS) $(ROOTSYSHDRS)
64
65check:	$(CHECKHDRS) $(CHECKSYSHDRS)
66
67spec $(MACH) $(MACH64):     FRC
68	@cd $@; pwd; $(MAKE) $(TARGET)
69
70FRC:
71
72
73