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.
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.
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]
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 # Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
27 include ..
/Makefile.lib
30 $(BUILD64
)SUBDIRS
+= $(MACH64
)
36 # Headers who get installed into $(ROOT)/usr/include/wanboot
37 LOCHDRS
= key_util.h \
40 LOCSRCS
= $(LOCHDRS
:%=$(HDRDIR
)/%)
42 # Must define targets for thise headers being installed into
43 # a non-default location.
44 WBKUHDRDIR
= $(ROOT
)/usr
/include/wanboot
45 WBKUHDRS
= $(LOCHDRS
:%=$(WBKUHDRDIR
)/%)
47 # Must override CHECKHDRS so that it does not check the
48 # RPC generated header.
49 CHECKHDRS
= $(HDRDIR
)/key_util.
check
51 # Must rpcgen XDR source.
52 RPCFILES
= common
/key_xdr.c common
/key_xdr.h
54 POFILE
= libwanbootutil.po
55 MSGFILES
= common
/key_util.c
56 XGETFLAGS
= -a
-x libwanbootutil.xcl
59 clean := TARGET
= clean
60 clobber := TARGET
= clobber
61 install := TARGET
= install
65 .PARALLEL
: $(ROOTHDRS
)
67 all clean clobber install: $(RPCFILES
) $(SUBDIRS
)
71 install_h
: $(ROOTHDRDIR
) $(WBKUHDRDIR
) .WAIT
$(ROOTHDRS
) $(WBKUHDRS
)
75 $(POFILE
): pofile_MSGFILES
77 _msg
: $(MSGDOMAINPOFILE
)
80 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
84 # No rules for this in Makefile.lib.
85 $(WBKUHDRDIR
)/%: $(HDRDIR
)/%
90 # No rules for this in Makefile.lib.
91 common
/key_xdr.c
: common
/key_xdr.x
92 cd common
; $(RPCGEN
) -cC
-o key_xdr.c key_xdr.x
; cd ..
94 common
/key_xdr.h
: common
/key_xdr.x
95 cd common
; $(RPCGEN
) -h
-o key_xdr.h key_xdr.x
; cd ..
97 CLOBBERFILES
+= common
/key_xdr.c common
/key_xdr.h
99 include $(SRC
)/Makefile.msg.targ
100 include $(SRC
)/lib
/Makefile.targ