xref: /illumos-gate/usr/src/lib/libbe/Makefile (revision f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2)
1*f169c0eaSGlenn Lagasse#
2*f169c0eaSGlenn Lagasse# CDDL HEADER START
3*f169c0eaSGlenn Lagasse#
4*f169c0eaSGlenn Lagasse# The contents of this file are subject to the terms of the
5*f169c0eaSGlenn Lagasse# Common Development and Distribution License (the "License").
6*f169c0eaSGlenn Lagasse# You may not use this file except in compliance with the License.
7*f169c0eaSGlenn Lagasse#
8*f169c0eaSGlenn Lagasse# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*f169c0eaSGlenn Lagasse# or http://www.opensolaris.org/os/licensing.
10*f169c0eaSGlenn Lagasse# See the License for the specific language governing permissions
11*f169c0eaSGlenn Lagasse# and limitations under the License.
12*f169c0eaSGlenn Lagasse#
13*f169c0eaSGlenn Lagasse# When distributing Covered Code, include this CDDL HEADER in each
14*f169c0eaSGlenn Lagasse# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*f169c0eaSGlenn Lagasse# If applicable, add the following below this CDDL HEADER, with the
16*f169c0eaSGlenn Lagasse# fields enclosed by brackets "[]" replaced with your own identifying
17*f169c0eaSGlenn Lagasse# information: Portions Copyright [yyyy] [name of copyright owner]
18*f169c0eaSGlenn Lagasse#
19*f169c0eaSGlenn Lagasse# CDDL HEADER END
20*f169c0eaSGlenn Lagasse#
21*f169c0eaSGlenn Lagasse
22*f169c0eaSGlenn Lagasse#
23*f169c0eaSGlenn Lagasse# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*f169c0eaSGlenn Lagasse#
25*f169c0eaSGlenn Lagasse
26*f169c0eaSGlenn Lagasseinclude		../Makefile.lib
27*f169c0eaSGlenn Lagasse
28*f169c0eaSGlenn LagasseHDRS=		libbe.h \
29*f169c0eaSGlenn Lagasse		libbe_priv.h
30*f169c0eaSGlenn Lagasse
31*f169c0eaSGlenn LagasseHDRDIR=		common
32*f169c0eaSGlenn Lagasse
33*f169c0eaSGlenn LagasseSUBDIRS=	$(MACH)
34*f169c0eaSGlenn LagasseTESTDIR= 	tbeadm
35*f169c0eaSGlenn Lagasse
36*f169c0eaSGlenn Lagasseall :=		TARGET= all
37*f169c0eaSGlenn Lagasseclean :=	TARGET= clean
38*f169c0eaSGlenn Lagasseclobber :=	TARGET= clobber
39*f169c0eaSGlenn Lagasseinstall :=	TARGET= install
40*f169c0eaSGlenn Lagasselint :=		TARGET= lint
41*f169c0eaSGlenn Lagassetest := 	TARGET= test
42*f169c0eaSGlenn Lagasse
43*f169c0eaSGlenn LagassePOFILE =	libbe.po
44*f169c0eaSGlenn LagasseMSGFILES =	`$(GREP) -l gettext $(HDRDIR)/*.[ch]`
45*f169c0eaSGlenn Lagasse
46*f169c0eaSGlenn Lagasse.KEEP_STATE:
47*f169c0eaSGlenn Lagasse
48*f169c0eaSGlenn Lagasseall install lint: install_h $(SUBDIRS)
49*f169c0eaSGlenn Lagasse
50*f169c0eaSGlenn Lagasseclean clobber: $(SUBDIRS) $(TESTDIR)
51*f169c0eaSGlenn Lagasse
52*f169c0eaSGlenn Lagasse$(POFILE): 	pofile_MSGFILES
53*f169c0eaSGlenn Lagasse
54*f169c0eaSGlenn Lagasseinstall_h: 	$(ROOTHDRS)
55*f169c0eaSGlenn Lagasse
56*f169c0eaSGlenn Lagassecheck: 		$(CHECKHDRS)
57*f169c0eaSGlenn Lagasse
58*f169c0eaSGlenn Lagasse_msg: $(MSGDOMAINPOFILE)
59*f169c0eaSGlenn Lagasse
60*f169c0eaSGlenn Lagassetest:
61*f169c0eaSGlenn Lagasse	cd tbeadm; pwd; $(MAKE) install
62*f169c0eaSGlenn Lagasse
63*f169c0eaSGlenn Lagasse$(TESTDIR): FRC
64*f169c0eaSGlenn Lagasse	@cd $@; pwd; $(MAKE) $(TARGET)
65*f169c0eaSGlenn Lagasse
66*f169c0eaSGlenn Lagasse$(SUBDIRS): FRC
67*f169c0eaSGlenn Lagasse	@cd $@; pwd; $(MAKE) $(TARGET)
68*f169c0eaSGlenn Lagasse
69*f169c0eaSGlenn LagasseFRC:
70*f169c0eaSGlenn Lagasse
71*f169c0eaSGlenn Lagasseinclude $(SRC)/Makefile.msg.targ
72*f169c0eaSGlenn Lagasseinclude $(SRC)/lib/Makefile.targ
73