xref: /titanic_50/usr/src/lib/libslp/Makefile (revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305)
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 (c) 1999, by Sun Microsystems, Inc.
26# All rights reserved.
27#
28include $(SRC)/Makefile.master
29
30SLP_COMPONENTS= javalib etc
31SUBDIRS= spec .WAIT  $(SLP_COMPONENTS) $(MACH) $(BUILD64) $(MACH64)
32
33# include library definitions
34include ../Makefile.lib
35
36HDRS=clib/slp.h clib/slp-internal.h clib/slp_net_utils.h clib/slp_ami.h
37ROOTHDRDIR=     $(ROOT)/usr/include
38ROOTHDRS=       $(ROOTHDRDIR)/slp.h
39
40CHECKHDRS= $(HDRS:%.h=%.check)
41
42MSGFILE=libslp.po
43
44# install rule for install_h target
45$(ROOTHDRDIR)/%: clib/%
46	$(INS.file)
47
48#install rule
49$(ROOTDIRS)/%: %
50	$(INS.file)
51
52all :=		TARGET= all
53clean :=	TARGET= clean
54clobber :=	TARGET= clobber
55install :=	TARGET= install
56lint :=		TARGET= lint
57_msg :=		TARGET= _msg
58
59.PARALLEL: $(SUBDIRS)
60
61all lint install: install_h .WAIT $(SUBDIRS)
62
63clean clobber: $(SUBDIRS)
64
65_msg:	$(SLP_COMPONENTS) $(MSGDOMAIN)
66	$(RM) $(MSGDOMAIN)/$(MSGFILE)
67	cp clib/$(MSGFILE) $(MSGDOMAIN)
68
69# include library targets
70include ../Makefile.targ
71
72install_h:	$(ROOTHDRS)
73
74check: $(CHECKHDRS)
75
76$(MACH) $(MACH64) spec $(SLP_COMPONENTS):	FRC
77	@cd $@; pwd; $(MAKE) $(TARGET)
78
79FRC:
80