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