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 
  26 include         ../Makefile.lib
  27 
  28 SUBDIRS =       $(MACH)
  29 
  30 all :=          TARGET= all
  31 clean :=        TARGET= clean
  32 clobber :=      TARGET= clobber
  33 delete :=       TARGET= delete
  34 install :=      TARGET= install
  35 _msg :=         TARGET= _msg
  36 package :=      TARGET= package
  37 
  38 LIBRARY=        libntfs.a
  39 TEXT_DOMAIN=    SUNW_OST_OSLIB
  40 XGETFLAGS=      -a
  41 POFILE=         $(LIBRARY:.a=.po)
  42 POFILES=        generic.po
  43 
  44 SED=    sed
  45 GREP=   grep
  46 
  47 .KEEP_STATE:
  48 
  49 all clean delete install package: $(SUBDIRS)
  50 clobber: $(SUBDIRS)
  51         $(RM) $(CLOBBERFILES)
  52 
  53 all install: THIRDPARTYLICENSE
  54 
  55 CLOBBERFILES += THIRDPARTYLICENSE
  56 
  57 THIRDPARTYLICENSE: $(SRC)/common/GPLDISCLAIMER COPYING
  58         $(RM) $@
  59         $(CAT) $(SRC)/common/GPLDISCLAIMER COPYING > $@
  60 
  61 # definitions for install_h target
  62 HDRS=           ../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 \
  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
  92 ROOTHDRDIR=     $(ROOT)/usr/include
  93 ROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
  94 CHECKHDRS=      $(HDRS:%.h=%.check)
  95 
  96 # install rule for install_h target
  97 $(ROOTHDRDIR)/%: %
  98         $(INS.file)
  99 
 100 install_h: $(ROOTHDRS)
 101 
 102 check: $(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 
 124 FRC: