Makefile 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 26include ../Makefile.lib 27 28SUBDIRS = $(MACH) 29 30all := TARGET= all 31clean := TARGET= clean 32clobber := TARGET= clobber 33delete := TARGET= delete 34install := TARGET= install 35_msg := TARGET= _msg 36package := TARGET= package 37 38LIBRARY= libntfs.a 39TEXT_DOMAIN= SUNW_OST_OSLIB 40XGETFLAGS= -a 41POFILE= $(LIBRARY:.a=.po) 42POFILES= generic.po 43 44SED= sed 45GREP= grep 46 47.KEEP_STATE: 48 49all clean clobber delete install package: $(SUBDIRS) 50 51# definitions for install_h target 52HDRS= ../common/include/ntfs/attrib.h \ 53 ../common/include/ntfs/attrlist.h \ 54 ../common/include/ntfs/bitmap.h \ 55 ../common/include/ntfs/bootsect.h \ 56 ../common/include/ntfs/collate.h \ 57 ../common/include/ntfs/compat.h \ 58 ../common/include/ntfs/compress.h \ 59 ../common/include/ntfs/crypto.h \ 60 ../common/include/ntfs/debug.h \ 61 ../common/include/ntfs/device.h \ 62 ../common/include/ntfs/device_io.h \ 63 ../common/include/ntfs/dir.h \ 64 ../common/include/ntfs/endians.h \ 65 ../common/include/ntfs/gnome-vfs-method.h \ 66 ../common/include/ntfs/gnome-vfs-module.h \ 67 ../common/include/ntfs/index.h \ 68 ../common/include/ntfs/inode.h \ 69 ../common/include/ntfs/layout.h \ 70 ../common/include/ntfs/lcnalloc.h \ 71 ../common/include/ntfs/list.h \ 72 ../common/include/ntfs/logfile.h \ 73 ../common/include/ntfs/logging.h \ 74 ../common/include/ntfs/mft.h \ 75 ../common/include/ntfs/mst.h \ 76 ../common/include/ntfs/ntfstime.h \ 77 ../common/include/ntfs/runlist.h \ 78 ../common/include/ntfs/security.h \ 79 ../common/include/ntfs/support.h \ 80 ../common/include/ntfs/types.h \ 81 ../common/include/ntfs/unistr.h \ 82 ../common/include/ntfs/version.h \ 83 ../common/include/ntfs/volume.h 84ROOTHDRDIR= $(ROOT)/usr/include 85ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%) 86CHECKHDRS= $(HDRS:%.h=%.check) 87 88# install rule for install_h target 89$(ROOTHDRDIR)/%: % 90 $(INS.file) 91 92install_h: $(ROOTHDRS) 93 94check: $(CHECKHDRS) 95 96$(SUBDIRS): FRC 97 @cd $@; pwd; $(MAKE) $(TARGET) 98 99_msg: $(MSGDOMAIN) $(POFILE) 100 $(RM) $(MSGDOMAIN)/$(POFILE) 101 $(CP) $(POFILE) $(MSGDOMAIN) 102 103$(POFILE): $(POFILES) 104 $(RM) $@ 105 $(CAT) $(POFILES) > $@ 106 107$(POFILES): 108 $(RM) messages.po 109 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]* 110 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 111 $(RM) messages.po 112 113$(MSGDOMAIN): 114 $(INS.dir) 115 116FRC: 117