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=        libparted.a
  27 VERS=           .8
  28 
  29 #
  30 # All relative to SRCDIR
  31 #
  32 
  33 PLIBDIR=        lib
  34 LIBPDIR=        libparted
  35 LIBPADIR=       libparted/arch
  36 LIBPCSDIR=      libparted/cs
  37 LIBAMIGAFS=     libparted/fs/amiga
  38 LIBEXT2FS=      libparted/fs/ext2
  39 LIBFATFS=       libparted/fs/fat
  40 LIBHFS=         libparted/fs/hfs
  41 LIBJFS=         libparted/fs/jfs
  42 LIBLINUXSWAP=   libparted/fs/linux_swap
  43 LIBNTFS=        libparted/fs/ntfs
  44 LIBREISERFS=    libparted/fs/reiserfs
  45 LIBSOLARISX86=  libparted/fs/solaris_x86
  46 LIBUFS=         libparted/fs/ufs
  47 LIBXFS=         libparted/fs/xfs
  48 LIBLABELS=      libparted/labels
  49 
  50 OBJECTS=        $(PLIBDIR)/basename.o           $(PLIBDIR)/quotearg.o \
  51                 $(PLIBDIR)/close-stream.o       $(PLIBDIR)/regex.o \
  52                 $(PLIBDIR)/closeout.o           $(PLIBDIR)/rpmatch.o \
  53                 $(PLIBDIR)/dirname.o            $(PLIBDIR)/safe-read.o \
  54                 $(PLIBDIR)/error.o              $(PLIBDIR)/safe-write.o \
  55                 $(PLIBDIR)/exitfail.o           $(PLIBDIR)/strcspn.o \
  56                 $(PLIBDIR)/full-write.o         $(PLIBDIR)/stripslash.o \
  57                 $(PLIBDIR)/getopt.o             $(PLIBDIR)/strndup.o \
  58                 $(PLIBDIR)/version-etc-fsf.o \
  59                 $(PLIBDIR)/localcharset.o       $(PLIBDIR)/version-etc.o \
  60                 $(PLIBDIR)/long-options.o       $(PLIBDIR)/xalloc-die.o \
  61                 $(PLIBDIR)/memcpy.o             $(PLIBDIR)/xmalloc.o \
  62                 $(PLIBDIR)/memmove.o            $(PLIBDIR)/xstrndup.o \
  63                 $(PLIBDIR)/memset.o \
  64                 $(LIBPDIR)/debug.o              $(LIBPDIR)/exception.o \
  65                 $(LIBPDIR)/device.o             $(LIBPDIR)/filesys.o \
  66                 $(LIBPDIR)/timer.o              $(LIBPDIR)/unit.o \
  67                 $(LIBPDIR)/disk.o               $(LIBPDIR)/libparted.o \
  68                 $(LIBPADIR)/solaris.o \
  69                 $(LIBPCSDIR)/constraint.o       $(LIBPCSDIR)/geom.o \
  70                 $(LIBPCSDIR)/natmath.o \
  71                 $(LIBAMIGAFS)/affs.o            $(LIBAMIGAFS)/amiga.o  \
  72                 $(LIBAMIGAFS)/apfs.o            $(LIBAMIGAFS)/asfs.o  \
  73                 $(LIBAMIGAFS)/interface.o \
  74                 $(LIBEXT2FS)/interface.o        $(LIBEXT2FS)/ext2.o \
  75                 $(LIBEXT2FS)/ext2_inode_relocator.o \
  76                 $(LIBEXT2FS)/parted_io.o        $(LIBEXT2FS)/ext2_meta.o \
  77                 $(LIBEXT2FS)/ext2_block_relocator.o \
  78                 $(LIBEXT2FS)/ext2_mkfs.o        $(LIBEXT2FS)/tune.o \
  79                 $(LIBEXT2FS)/ext2_buffer.o      $(LIBEXT2FS)/ext2_resize.o \
  80                 $(LIBFATFS)/table.o             $(LIBFATFS)/bootsector.o \
  81                 $(LIBFATFS)/clstdup.o           $(LIBFATFS)/count.o \
  82                 $(LIBFATFS)/fatio.o             $(LIBFATFS)/traverse.o \
  83                 $(LIBFATFS)/calc.o              $(LIBFATFS)/context.o \
  84                 $(LIBFATFS)/fat.o               $(LIBFATFS)/resize.o \
  85                 $(LIBHFS)/cache.o               $(LIBHFS)/probe.o \
  86                 $(LIBHFS)/advfs.o               $(LIBHFS)/hfs.o \
  87                 $(LIBHFS)/file.o                $(LIBHFS)/reloc.o \
  88                 $(LIBHFS)/advfs_plus.o          $(LIBHFS)/journal.o \
  89                 $(LIBHFS)/file_plus.o           $(LIBHFS)/reloc_plus.o \
  90                 $(LIBJFS)/jfs.o \
  91                 $(LIBLINUXSWAP)/linux_swap.o \
  92                 $(LIBNTFS)/ntfs.o \
  93                 $(LIBREISERFS)/geom_dal.o       $(LIBREISERFS)/reiserfs.o \
  94                 $(LIBSOLARISX86)/solaris_x86.o \
  95                 $(LIBUFS)/ufs.o \
  96                 $(LIBXFS)/xfs.o \
  97                 $(LIBLABELS)/dos.o              $(LIBLABELS)/efi_crc32.o \
  98                 $(LIBLABELS)/mac.o              $(LIBLABELS)/sun.o \
  99                 $(LIBLABELS)/aix.o              $(LIBLABELS)/dvh.o \
 100                 $(LIBLABELS)/gpt.o              $(LIBLABELS)/pc98.o \
 101                 $(LIBLABELS)/bsd.o              $(LIBLABELS)/loop.o \
 102                 $(LIBLABELS)/rdb.o \
 103 
 104 # include library definitions
 105 include         ../../Makefile.lib
 106 
 107 SRCDIR =        ../common
 108 
 109 C99MODE=        $(C99_ENABLE)
 110 CERRWARN +=     -erroff=E_EXTERN_INLINE_UNDEFINED
 111 CERRWARN +=     -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 112 
 113 LIBS =          $(DYNLIB)
 114 
 115 CFLAGS +=       $(CCVERBOSE)
 116 CPPFLAGS +=     -I$(SRCDIR)/lib -I$(SRCDIR)/include
 117 DYNFLAGS +=     $(ZINTERPOSE)
 118 LDLIBS +=       -ldiskmgt -luuid -lc -lnvpair
 119 
 120 CERRWARN +=     -_gcc=-Wno-switch
 121 CERRWARN +=     -_gcc=-Wno-unused-variable
 122 CERRWARN +=     -_gcc=-Wno-type-limits
 123 
 124 .KEEP_STATE:
 125 
 126 #
 127 # This open source is exempted from lint
 128 #
 129 lint:
 130 
 131 # include library targets
 132 include         ../../Makefile.targ