xref: /titanic_41/usr/src/lib/libtnfctl/Makefile (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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#pragma ident	"%Z%%M%	%I%	%E% SMI"
24#
25#
26# Copyright (c) 1989,1995-1999 by Sun Microsystems, Inc.
27# All rights reserved.
28#
29# lib/libtnfctl/Makefile
30#
31
32include	../Makefile.lib
33
34SUBDIRS = spec .WAIT $(MACH) $(BUILD64) $(MACH64)
35
36# conditional assignments
37all	:= 	TARGET = all
38install	:=	TARGET = install
39clean	:=	TARGET = clean
40clobber	:=	TARGET = clobber
41lint	:=	TARGET = lint
42_msg :=         TARGET= _msg
43
44LIBRARY= 	libtnfctl.a
45TEXT_DOMAIN=	SUNW_OST_OSLIB
46XGETFLAGS=	-a
47MSGDIRS=
48POFILE=		$(LIBRARY:.a=.po)
49POFILES=	generic.po
50
51SED=	sed
52GREP=	grep
53CP=	cp
54
55#definitions for install_h target
56HDRS=		tnfctl.h
57ROOTHDRDIR=	$(ROOT)/usr/include/tnf
58ROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
59CHECKHDRS=	$(HDRS:%.h=%.check)
60$(ROOTHDRS) := 	FILEMODE = 0644
61CHECKHDRS =	$(HDRS:%.h=%.check)
62
63.KEEP_STATE:
64
65all install clean clobber lint:  $(SUBDIRS)
66
67install_h: $(ROOTHDRDIR) $(ROOTHDRS)
68
69check: $(CHECKHDRS)
70
71$(ROOTLIBDIR) $(ROOTHDRDIR):
72	$(INS.dir)
73
74$(ROOTHDRDIR)/% : %
75	$(INS.file)
76
77$(MACH) $(MACH64) spec:	FRC
78	@cd $@; pwd; $(MAKE) $(TARGET)
79
80_msg:	$(MSGDOMAIN) $(POFILE)
81	$(RM) $(MSGDOMAIN)/$(POFILE)
82	$(CP) $(POFILE) $(MSGDOMAIN)
83
84$(POFILE):	.WAIT $(POFILES)
85	$(RM) $@
86	$(CAT) $(POFILES) > $@
87
88generic.po:
89	$(RM) messages.po
90	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]* `
91	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
92	$(RM) messages.po
93
94FRC:
95
96include ../Makefile.targ
97