xref: /onnv-gate/usr/src/lib/libslp/Makefile (revision 2522:79989c8fe091)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*2522Sraf# Common Development and Distribution License (the "License").
6*2522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*2522Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*2522Sraf# Use is subject to license terms.
240Sstevel@tonic-gate#
25*2522Sraf# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
27*2522Sraf
280Sstevel@tonic-gateinclude $(SRC)/Makefile.master
290Sstevel@tonic-gate
300Sstevel@tonic-gateSLP_COMPONENTS= javalib etc
31*2522SrafSUBDIRS =	$(SLP_COMPONENTS) $(MACH)
32*2522Sraf$(BUILD64)SUBDIRS += $(MACH64)
330Sstevel@tonic-gate
340Sstevel@tonic-gate# include library definitions
350Sstevel@tonic-gateinclude ../Makefile.lib
360Sstevel@tonic-gate
370Sstevel@tonic-gateHDRS=clib/slp.h clib/slp-internal.h clib/slp_net_utils.h clib/slp_ami.h
380Sstevel@tonic-gateROOTHDRDIR=     $(ROOT)/usr/include
390Sstevel@tonic-gateROOTHDRS=       $(ROOTHDRDIR)/slp.h
400Sstevel@tonic-gate
410Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check)
420Sstevel@tonic-gate
430Sstevel@tonic-gateMSGFILE=libslp.po
440Sstevel@tonic-gate
450Sstevel@tonic-gate# install rule for install_h target
460Sstevel@tonic-gate$(ROOTHDRDIR)/%: clib/%
470Sstevel@tonic-gate	$(INS.file)
480Sstevel@tonic-gate
490Sstevel@tonic-gate#install rule
500Sstevel@tonic-gate$(ROOTDIRS)/%: %
510Sstevel@tonic-gate	$(INS.file)
520Sstevel@tonic-gate
530Sstevel@tonic-gateall :=		TARGET= all
540Sstevel@tonic-gateclean :=	TARGET= clean
550Sstevel@tonic-gateclobber :=	TARGET= clobber
560Sstevel@tonic-gateinstall :=	TARGET= install
570Sstevel@tonic-gatelint :=		TARGET= lint
580Sstevel@tonic-gate_msg :=		TARGET= _msg
590Sstevel@tonic-gate
600Sstevel@tonic-gate.PARALLEL: $(SUBDIRS)
610Sstevel@tonic-gate
620Sstevel@tonic-gateall lint install: install_h .WAIT $(SUBDIRS)
630Sstevel@tonic-gate
640Sstevel@tonic-gateclean clobber: $(SUBDIRS)
650Sstevel@tonic-gate
660Sstevel@tonic-gate_msg:	$(SLP_COMPONENTS) $(MSGDOMAIN)
670Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(MSGFILE)
680Sstevel@tonic-gate	cp clib/$(MSGFILE) $(MSGDOMAIN)
690Sstevel@tonic-gate
700Sstevel@tonic-gate# include library targets
710Sstevel@tonic-gateinclude ../Makefile.targ
720Sstevel@tonic-gate
730Sstevel@tonic-gateinstall_h:	$(ROOTHDRS)
740Sstevel@tonic-gate
750Sstevel@tonic-gatecheck: $(CHECKHDRS)
760Sstevel@tonic-gate
77*2522Sraf$(SUBDIRS):	FRC
780Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
790Sstevel@tonic-gate
800Sstevel@tonic-gateFRC:
81