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= libntfs.a 27VERS= .10 28 29# 30# All relative to SRCDIR 31# 32 33LIBNTFSDIR= libntfs 34 35OBJECTS= $(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)/gnome-vfs-method.o \ 48 $(LIBNTFSDIR)/gnome-vfs-module.o \ 49 $(LIBNTFSDIR)/index.o \ 50 $(LIBNTFSDIR)/inode.o \ 51 $(LIBNTFSDIR)/lcnalloc.o \ 52 $(LIBNTFSDIR)/logfile.o \ 53 $(LIBNTFSDIR)/logging.o \ 54 $(LIBNTFSDIR)/mft.o \ 55 $(LIBNTFSDIR)/misc.o \ 56 $(LIBNTFSDIR)/mst.o \ 57 $(LIBNTFSDIR)/runlist.o \ 58 $(LIBNTFSDIR)/security.o \ 59 $(LIBNTFSDIR)/unistr.o \ 60 $(LIBNTFSDIR)/version.o \ 61 $(LIBNTFSDIR)/volume.o 62 63# include library definitions 64include ../../Makefile.lib 65 66SRCDIR = ../common 67 68C99MODE= $(C99_ENABLE) 69CERRWARN += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX 70CERRWARN += -erroff=E_STRUCT_DERIVED_FROM_FLEX_MBR 71CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED 72CERRWARN += -erroff=E_LOOP_NOT_ENTERED_AT_TOP 73 74LIBS = $(DYNLIB) 75 76CFLAGS += $(CCVERBOSE) 77CPPFLAGS += -DHAVE_CONFIG_H \ 78 -DLTVERSION_LIBNTFS=\"10:0:0\" \ 79 -I$(SRCDIR)/include/ntfs 80DYNFLAGS += $(ZINTERPOSE) 81LDLIBS += -lc -lgnomevfs-2 -lglib-2.0 82 83.KEEP_STATE: 84 85# 86# This open source is exempted from lint 87# 88lint: 89 90# include library targets 91include ../../Makefile.targ 92 93pics/$(LIBNTFSDIR)/gnome-vfs-method.o: ../common/$(LIBNTFSDIR)/gnome-vfs-method.c 94 $(CC) $(CFLAGS) \ 95 -I/usr/include/glib-2.0 \ 96 -I/usr/lib/glib-2.0/include \ 97 -I/usr/include/gnome-vfs-2.0 \ 98 -I/usr/include/gnome-vfs-module-2.0 \ 99 -I/usr/lib/gnome-vfs-2.0/include \ 100 -I/usr/include/gconf/2 \ 101 -I/usr/include/orbit-2.0 \ 102 -I/usr/include/dbus-1.0 \ 103 -I/usr/lib/dbus-1.0/include \ 104 -D_PTHREADS -DORBIT2=1 \ 105 $(CPPFLAGS) -c -o $@ \ 106 ../common/$(LIBNTFSDIR)/gnome-vfs-method.c 107 $(POST_PROCESS_O) 108 109pics/$(LIBNTFSDIR)/gnome-vfs-module.o: ../common/$(LIBNTFSDIR)/gnome-vfs-module.c 110 $(CC) $(CFLAGS) \ 111 -I/usr/include/glib-2.0 \ 112 -I/usr/lib/glib-2.0/include \ 113 -I/usr/include/gnome-vfs-2.0 \ 114 -I/usr/include/gnome-vfs-module-2.0 \ 115 -I/usr/lib/gnome-vfs-2.0/include \ 116 -I/usr/include/gconf/2 \ 117 -I/usr/include/orbit-2.0 \ 118 -I/usr/include/dbus-1.0 \ 119 -I/usr/lib/dbus-1.0/include \ 120 -D_PTHREADS -DORBIT2=1 \ 121 $(CPPFLAGS) -c -o $@ \ 122 ../common/$(LIBNTFSDIR)/gnome-vfs-module.c 123 $(POST_PROCESS_O) 124