xref: /titanic_41/usr/src/lib/libfru/Makefile (revision 450396635f70344c58b6b1e4db38cf17ff34445c)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright (c) 2000-2001 by Sun Microsystems, Inc.
24# All rights reserved.
25#
26# lib/libfru/Makefile
27#
28#pragma ident	"%Z%%M%	%I%	%E% SMI"
29#
30
31include	$(SRC)/lib/Makefile.lib
32
33SUBDIRS = libfrureg $(MACH)
34$(BUILD64)SUBDIRS += $(MACH64)
35SUBDIRS += .WAIT libfrupicl libfrupicltree
36
37# conditional assignments
38all :=      	TARGET= all
39install :=      TARGET= install
40clean :=        TARGET= clean
41clobber :=      TARGET= clobber
42lint :=         TARGET= lint
43_msg :=         TARGET= _msg
44
45POFILE=		libfru.po
46
47.KEEP_STATE:
48
49all install clean clobber lint: $(SUBDIRS)
50
51_msg:	$(MSGDOMAIN) $(POFILE)
52	$(RM) $(MSGDOMAIN)/$(POFILE)
53	$(CP) $(POFILE) $(MSGDOMAIN)
54
55$(POFILE):
56	$(RM) $@ messages.po
57	$(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
58	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
59	$(RM) messages.po
60
61$(MSGDOMAIN):
62	$(INS.dir)
63
64clobber:  po_clean
65
66po_clean:
67	$(RM) $(POFILE)
68
69check: $(CHECKHDRS)
70
71$(SUBDIRS): FRC
72	@cd $@; pwd; $(MAKE) $(TARGET)
73
74FRC:
75