xref: /onnv-gate/usr/src/lib/libwanbootutil/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.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
26*2522Sraf#
270Sstevel@tonic-gate
280Sstevel@tonic-gateinclude ../Makefile.lib
290Sstevel@tonic-gate
300Sstevel@tonic-gateSUBDIRS	=	$(MACH)
310Sstevel@tonic-gate
320Sstevel@tonic-gate# Library header.
330Sstevel@tonic-gateHDRS =		wanbootutil.h
340Sstevel@tonic-gateHDRDIR =	common
350Sstevel@tonic-gate
360Sstevel@tonic-gate# Headers who get installed into $(ROOT)/usr/include/wanboot
370Sstevel@tonic-gateLOCHDRS =	key_util.h \
380Sstevel@tonic-gate		key_xdr.h \
390Sstevel@tonic-gate		wbio.h
400Sstevel@tonic-gateLOCSRCS =	$(LOCHDRS:%=$(HDRDIR)/%)
410Sstevel@tonic-gate
420Sstevel@tonic-gate# Must define targets for thise headers being installed into
430Sstevel@tonic-gate# a non-default location.
440Sstevel@tonic-gateWBKUHDRDIR =	$(ROOT)/usr/include/wanboot
450Sstevel@tonic-gateWBKUHDRS =	$(LOCHDRS:%=$(WBKUHDRDIR)/%)
460Sstevel@tonic-gate
470Sstevel@tonic-gate# Must override CHECKHDRS so that it does not check the
480Sstevel@tonic-gate# RPC generated header.
490Sstevel@tonic-gateCHECKHDRS =	$(HDRDIR)/key_util.check
500Sstevel@tonic-gate
510Sstevel@tonic-gate# Must rpcgen XDR source.
520Sstevel@tonic-gateRPCFILES =	common/key_xdr.c common/key_xdr.h
530Sstevel@tonic-gate
540Sstevel@tonic-gatePOFILE =	libwanbootutil.po
550Sstevel@tonic-gateMSGFILES =	common/key_util.c
560Sstevel@tonic-gateXGETFLAGS =	-a -x libwanbootutil.xcl
570Sstevel@tonic-gate
580Sstevel@tonic-gateall := 		TARGET = all
590Sstevel@tonic-gateclean :=	TARGET = clean
600Sstevel@tonic-gateclobber :=	TARGET = clobber
610Sstevel@tonic-gateinstall	:=	TARGET = install
620Sstevel@tonic-gatelint :=		TARGET = lint
630Sstevel@tonic-gate
640Sstevel@tonic-gate.KEEP_STATE:
650Sstevel@tonic-gate.PARALLEL:      $(ROOTHDRS)
660Sstevel@tonic-gate
67*2522Srafall clean clobber install: $(RPCFILES) $(SUBDIRS)
680Sstevel@tonic-gate
690Sstevel@tonic-gatelint:		$(SUBDIRS)
700Sstevel@tonic-gate
710Sstevel@tonic-gateinstall_h:	$(ROOTHDRDIR) $(WBKUHDRDIR) .WAIT $(ROOTHDRS) $(WBKUHDRS)
720Sstevel@tonic-gate
730Sstevel@tonic-gatecheck:		$(CHECKHDRS)
740Sstevel@tonic-gate
750Sstevel@tonic-gate$(POFILE):	pofile_MSGFILES
760Sstevel@tonic-gate
770Sstevel@tonic-gate_msg:		$(MSGDOMAINPOFILE)
780Sstevel@tonic-gate
79*2522Sraf$(SUBDIRS): FRC
800Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
810Sstevel@tonic-gate
820Sstevel@tonic-gateFRC:
830Sstevel@tonic-gate
840Sstevel@tonic-gate# No rules for this in Makefile.lib.
850Sstevel@tonic-gate$(WBKUHDRDIR)/%: $(HDRDIR)/%
860Sstevel@tonic-gate	$(INS.file)
870Sstevel@tonic-gate$(WBKUHDRDIR):
880Sstevel@tonic-gate	$(INS.dir)
890Sstevel@tonic-gate
900Sstevel@tonic-gate# No rules for this in Makefile.lib.
910Sstevel@tonic-gatecommon/key_xdr.c:	common/key_xdr.x
920Sstevel@tonic-gate		cd common; $(RPCGEN) -cC -o key_xdr.c key_xdr.x; cd ..
930Sstevel@tonic-gate
940Sstevel@tonic-gatecommon/key_xdr.h:	common/key_xdr.x
950Sstevel@tonic-gate		cd common; $(RPCGEN) -h -o key_xdr.h key_xdr.x; cd ..
960Sstevel@tonic-gate
970Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ
980Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
990Sstevel@tonic-gate
100