blob: 67cdafcfff8d84adcd96af5729875aa1072772f6 [file] [log] [blame]
Mark Logan7e7bd3d2009-05-19 18:34:13 -07001#
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#
Mark J. Nelson152cdc22010-08-03 16:44:54 -060021
Mark Logan7e7bd3d2009-05-19 18:34:13 -070022#
Mark J. Nelson152cdc22010-08-03 16:44:54 -060023# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
Mark Logan7e7bd3d2009-05-19 18:34:13 -070024#
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
Gordon Rossb6805bf2013-08-23 18:31:03 -040049all clean delete install package: $(SUBDIRS)
50clobber: $(SUBDIRS)
51 $(RM) $(CLOBBERFILES)
Mark Logan7e7bd3d2009-05-19 18:34:13 -070052
Mark J. Nelson152cdc22010-08-03 16:44:54 -060053all install: THIRDPARTYLICENSE
54
55CLOBBERFILES += THIRDPARTYLICENSE
56
57THIRDPARTYLICENSE: $(SRC)/common/GPLDISCLAIMER COPYING
58 $(RM) $@
59 $(CAT) $(SRC)/common/GPLDISCLAIMER COPYING > $@
60
Mark Logan7e7bd3d2009-05-19 18:34:13 -070061# definitions for install_h target
62HDRS= ../common/include/ntfs/attrib.h \
63 ../common/include/ntfs/attrlist.h \
64 ../common/include/ntfs/bitmap.h \
65 ../common/include/ntfs/bootsect.h \
66 ../common/include/ntfs/collate.h \
67 ../common/include/ntfs/compat.h \
68 ../common/include/ntfs/compress.h \
69 ../common/include/ntfs/crypto.h \
70 ../common/include/ntfs/debug.h \
71 ../common/include/ntfs/device.h \
72 ../common/include/ntfs/device_io.h \
73 ../common/include/ntfs/dir.h \
74 ../common/include/ntfs/endians.h \
Mark Logan7e7bd3d2009-05-19 18:34:13 -070075 ../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: