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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 LIBRARY=        libntfs.a
  27 VERS=           .10
  28 
  29 #
  30 # All relative to SRCDIR
  31 #
  32 
  33 LIBNTFSDIR=     libntfs
  34 
  35 OBJECTS=        $(LIBNTFSDIR)/attrib.o \
  36                 $(LIBNTFSDIR)/attrlist.o \
  37                 $(LIBNTFSDIR)/bitmap.o \
  38                 $(LIBNTFSDIR)/bootsect.o \
  39                 $(LIBNTFSDIR)/collate.o \
  40                 $(LIBNTFSDIR)/compat.o \
  41                 $(LIBNTFSDIR)/compress.o \
  42                 $(LIBNTFSDIR)/crypto.o \
  43                 $(LIBNTFSDIR)/debug.o \
  44                 $(LIBNTFSDIR)/device.o \
  45                 $(LIBNTFSDIR)/device_io.o \
  46                 $(LIBNTFSDIR)/dir.o \
  47                 $(LIBNTFSDIR)/index.o \
  48                 $(LIBNTFSDIR)/inode.o \
  49                 $(LIBNTFSDIR)/lcnalloc.o \
  50                 $(LIBNTFSDIR)/logfile.o \
  51                 $(LIBNTFSDIR)/logging.o \
  52                 $(LIBNTFSDIR)/mft.o \
  53                 $(LIBNTFSDIR)/misc.o \
  54                 $(LIBNTFSDIR)/mst.o \
  55                 $(LIBNTFSDIR)/runlist.o \
  56                 $(LIBNTFSDIR)/security.o \
  57                 $(LIBNTFSDIR)/unistr.o \
  58                 $(LIBNTFSDIR)/version.o \
  59                 $(LIBNTFSDIR)/volume.o
  60 
  61 # include library definitions
  62 include         ../../Makefile.lib
  63 
  64 SRCDIR =        ../common
  65 
  66 C99MODE=        $(C99_ENABLE)
  67 CERRWARN +=     -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
  68 CERRWARN +=     -erroff=E_STRUCT_DERIVED_FROM_FLEX_MBR
  69 CERRWARN +=     -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
  70 CERRWARN +=     -erroff=E_LOOP_NOT_ENTERED_AT_TOP
  71 
  72 LIBS =          $(DYNLIB)
  73 
  74 CFLAGS +=       $(CCVERBOSE)
  75 CPPFLAGS +=     -DHAVE_CONFIG_H \
  76                 -DLTVERSION_LIBNTFS=\"10:0:0\" \
  77                 -I$(SRCDIR)/include/ntfs
  78 DYNFLAGS +=     $(ZINTERPOSE)
  79 LDLIBS +=       -lc
  80 
  81 .KEEP_STATE:
  82 
  83 #
  84 # This open source is exempted from lint
  85 #
  86 lint:
  87 
  88 # include library targets
  89 include         ../../Makefile.targ