Makefile.com revision 9663:ace9a2ac3683
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
26LIBRARY=	libparted.a
27VERS=		.8
28
29#
30# All relative to SRCDIR
31#
32
33PLIBDIR=	lib
34LIBPDIR=	libparted
35LIBPADIR=	libparted/arch
36LIBPCSDIR=	libparted/cs
37LIBAMIGAFS=	libparted/fs/amiga
38LIBEXT2FS=	libparted/fs/ext2
39LIBFATFS=	libparted/fs/fat
40LIBHFS=		libparted/fs/hfs
41LIBJFS=		libparted/fs/jfs
42LIBLINUXSWAP=	libparted/fs/linux_swap
43LIBNTFS=	libparted/fs/ntfs
44LIBREISERFS=	libparted/fs/reiserfs
45LIBSOLARISX86=	libparted/fs/solaris_x86
46LIBUFS=		libparted/fs/ufs
47LIBXFS=		libparted/fs/xfs
48LIBLABELS=	libparted/labels
49
50OBJECTS=	$(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
105include		../../Makefile.lib
106
107SRCDIR =	../common
108
109C99MODE=	$(C99_ENABLE)
110CERRWARN +=	-erroff=E_EXTERN_INLINE_UNDEFINED
111CERRWARN +=	-erroff=E_CONST_PROMOTED_UNSIGNED_LONG
112
113LIBS =		$(DYNLIB)
114
115CFLAGS +=	$(CCVERBOSE)
116CPPFLAGS +=	-I$(SRCDIR)/lib -I$(SRCDIR)/include
117DYNFLAGS +=	$(ZINTERPOSE)
118LDLIBS +=	-ldiskmgt -luuid -lc -lnvpair
119
120.KEEP_STATE:
121
122#
123# This open source is exempted from lint
124#
125lint:
126
127# include library targets
128include		../../Makefile.targ
129