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 (the "License").
6# You may not use this file except in compliance with the License.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24#
25
26include		../Makefile.lib
27
28SUBDIRS =	$(MACH)
29
30all :=          TARGET= all
31clean :=        TARGET= clean
32clobber :=      TARGET= clobber
33delete :=       TARGET= delete
34install :=      TARGET= install
35_msg :=		TARGET= _msg
36package :=      TARGET= package
37
38LIBRARY= 	libntfs.a
39TEXT_DOMAIN=	SUNW_OST_OSLIB
40XGETFLAGS=	-a
41POFILE=		$(LIBRARY:.a=.po)
42POFILES=	generic.po
43
44SED=	sed
45GREP=	grep
46
47.KEEP_STATE:
48
49all clean clobber delete install package: $(SUBDIRS)
50
51all install: THIRDPARTYLICENSE
52
53CLOBBERFILES += THIRDPARTYLICENSE
54
55THIRDPARTYLICENSE: $(SRC)/common/GPLDISCLAIMER COPYING
56	$(RM) $@
57	$(CAT) $(SRC)/common/GPLDISCLAIMER COPYING > $@
58
59# definitions for install_h target
60HDRS=		../common/include/ntfs/attrib.h \
61		../common/include/ntfs/attrlist.h \
62		../common/include/ntfs/bitmap.h \
63		../common/include/ntfs/bootsect.h \
64		../common/include/ntfs/collate.h \
65		../common/include/ntfs/compat.h \
66		../common/include/ntfs/compress.h \
67		../common/include/ntfs/crypto.h \
68		../common/include/ntfs/debug.h \
69		../common/include/ntfs/device.h \
70		../common/include/ntfs/device_io.h \
71		../common/include/ntfs/dir.h \
72		../common/include/ntfs/endians.h \
73		../common/include/ntfs/gnome-vfs-method.h \
74		../common/include/ntfs/gnome-vfs-module.h \
75		../common/include/ntfs/index.h \
76		../common/include/ntfs/inode.h \
77		../common/include/ntfs/layout.h \
78		../common/include/ntfs/lcnalloc.h \
79		../common/include/ntfs/list.h \
80		../common/include/ntfs/logfile.h \
81		../common/include/ntfs/logging.h \
82		../common/include/ntfs/mft.h \
83		../common/include/ntfs/mst.h \
84		../common/include/ntfs/ntfstime.h \
85		../common/include/ntfs/runlist.h \
86		../common/include/ntfs/security.h \
87		../common/include/ntfs/support.h \
88		../common/include/ntfs/types.h \
89		../common/include/ntfs/unistr.h \
90		../common/include/ntfs/version.h \
91		../common/include/ntfs/volume.h
92ROOTHDRDIR=     $(ROOT)/usr/include
93ROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
94CHECKHDRS=      $(HDRS:%.h=%.check)
95
96# install rule for install_h target
97$(ROOTHDRDIR)/%: %
98	$(INS.file)
99
100install_h: $(ROOTHDRS)
101
102check: $(CHECKHDRS)
103
104$(SUBDIRS):      FRC
105	@cd $@; pwd; $(MAKE) $(TARGET)
106
107_msg:	$(MSGDOMAIN) $(POFILE)
108	$(RM) $(MSGDOMAIN)/$(POFILE)
109	$(CP) $(POFILE) $(MSGDOMAIN)
110
111$(POFILE):	$(POFILES)
112	$(RM) $@
113	$(CAT) $(POFILES) > $@
114
115$(POFILES):
116	$(RM) messages.po
117	$(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
118	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
119	$(RM) messages.po
120
121$(MSGDOMAIN):
122	$(INS.dir)
123
124FRC:
125