8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libwanbootutil / Makefile
blob2899af66231cd71ce82b1918b550a79f9c20b6f1
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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
29 SUBDIRS = $(MACH)
30 $(BUILD64)SUBDIRS += $(MACH64)
32 # Library header.
33 HDRS = wanbootutil.h
34 HDRDIR = common
36 # Headers who get installed into $(ROOT)/usr/include/wanboot
37 LOCHDRS = key_util.h \
38 key_xdr.h \
39 wbio.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
58 all := TARGET = all
59 clean := TARGET = clean
60 clobber := TARGET = clobber
61 install := TARGET = install
62 lint := TARGET = lint
64 .KEEP_STATE:
65 .PARALLEL: $(ROOTHDRS)
67 all clean clobber install: $(RPCFILES) $(SUBDIRS)
69 lint: $(SUBDIRS)
71 install_h: $(ROOTHDRDIR) $(WBKUHDRDIR) .WAIT $(ROOTHDRS) $(WBKUHDRS)
73 check: $(CHECKHDRS)
75 $(POFILE): pofile_MSGFILES
77 _msg: $(MSGDOMAINPOFILE)
79 $(SUBDIRS): FRC
80 @cd $@; pwd; $(MAKE) $(TARGET)
82 FRC:
84 # No rules for this in Makefile.lib.
85 $(WBKUHDRDIR)/%: $(HDRDIR)/%
86 $(INS.file)
87 $(WBKUHDRDIR):
88 $(INS.dir)
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