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 # 23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 24 # 25 26 include ../Makefile.lib 27 28 SUBDIRS = $(MACH) 29 30 all := TARGET= all 31 clean := TARGET= clean 32 clobber := TARGET= clobber 33 delete := TARGET= delete 34 install := TARGET= install 35 _msg := TARGET= _msg 36 package := TARGET= package 37 38 LIBRARY= libparted.a 39 TEXT_DOMAIN= SUNW_OST_OSLIB 40 XGETFLAGS= -a 41 POFILE= $(LIBRARY:.a=.po) 42 POFILES= generic.po 43 44 SED= sed 45 GREP= grep 46 47 # definitions for install_h target 48 HDRDIR= common/include/parted 49 HDRS= constraint.h \ 50 crc32.h \ 51 debug.h \ 52 device.h \ 53 disk.h \ 54 endian.h \ 55 exception.h \ 56 filesys.h \ 57 geom.h \ 58 natmath.h \ 59 parted.h \ 60 solaris.h \ 61 timer.h \ 62 unit.h 63 ROOTHDRDIR= $(ROOT)/usr/include/parted 64 ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%) 65 66 .KEEP_STATE: 67 68 all clean clobber delete install package: $(SUBDIRS) 69 70 all install: THIRDPARTYLICENSE 71 72 CLOBBERFILES += THIRDPARTYLICENSE 73 74 THIRDPARTYLICENSE: $(SRC)/common/GPLDISCLAIMER COPYING 75 $(RM) $@ 76 $(CAT) $(SRC)/common/GPLDISCLAIMER COPYING > $@ 77 78 install_h: $(ROOTHDRDIR) $(ROOTHDRS) 79 80 $(ROOTHDRDIR): 81 $(INS.dir) 82 83 # 84 # This open source is exempt from check 85 # 86 check: 87 88 $(SUBDIRS): FRC 89 @cd $@; pwd; $(MAKE) $(TARGET) 90 91 _msg: $(MSGDOMAIN) $(POFILE) 92 $(RM) $(MSGDOMAIN)/$(POFILE) 93 $(CP) $(POFILE) $(MSGDOMAIN) 94 95 $(POFILE): $(POFILES) 96 $(RM) $@ 97 $(CAT) $(POFILES) > $@ 98 99 $(POFILES): 100 $(RM) messages.po 101 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]* 102 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 103 $(RM) messages.po 104 105 $(MSGDOMAIN): 106 $(INS.dir) 107 108 FRC: 109 110 include ../Makefile.targ