xref: /illumos-gate/usr/src/lib/libslp/Makefile (revision 3fe80ca4a1f8a033d672a9a2e6e4babac651205a)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include $(SRC)/Makefile.master
27
28SLP_COMPONENTS= javalib etc
29SUBDIRS =	$(SLP_COMPONENTS) $(MACH)
30$(BUILD64)SUBDIRS += $(MACH64)
31
32# include library definitions
33include ../Makefile.lib
34
35HDRS=clib/slp.h clib/slp-internal.h clib/slp_net_utils.h clib/slp_ami.h
36ROOTHDRDIR=     $(ROOT)/usr/include
37ROOTHDRS=       $(ROOTHDRDIR)/slp.h
38
39CHECKHDRS= $(HDRS:%.h=%.check)
40
41MSGFILE=libslp.po
42
43# install rule for install_h target
44$(ROOTHDRDIR)/%: clib/%
45	$(INS.file)
46
47#install rule
48$(ROOTDIRS)/%: %
49	$(INS.file)
50
51all :=		TARGET= all
52clean :=	TARGET= clean
53clobber :=	TARGET= clobber
54install :=	TARGET= install
55_msg :=		TARGET= _msg
56
57.PARALLEL: $(SUBDIRS)
58
59all install: install_h .WAIT $(SUBDIRS)
60
61clean clobber: $(SUBDIRS)
62
63_msg:	$(SLP_COMPONENTS) $(MSGDOMAIN)
64	$(RM) $(MSGDOMAIN)/$(MSGFILE)
65	cp clib/$(MSGFILE) $(MSGDOMAIN)
66
67# include library targets
68include ../Makefile.targ
69
70install_h:	$(ROOTHDRS)
71
72check: $(CHECKHDRS)
73
74$(SUBDIRS):	FRC
75	@cd $@; pwd; $(MAKE) $(TARGET)
76
77FRC:
78
79include $(SRC)/Makefile.msg.targ
80