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, Version 1.0 only 6 # (the "License"). You may not use this file except in compliance 7 # with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 # 23 # Copyright (c) 1995,1997, by Sun Microsystems, Inc. 24 # All rights reserved. 25 # 26 #pragma ident "%Z%%M% %I% %E% SMI" 27 # 28 include ../../Makefile.master 29 30 SUBDIRS= $(MACH) $(BUILD64) $(MACH64) 31 32 # include library definitions 33 include ../Makefile.lib 34 35 #override INS.liblink 36 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@ 37 38 HDRS= 39 40 CHECKHDRS= $(HDRS:%.h=%.check) 41 42 #install rule 43 $(ROOTDIRS)/%: % 44 $(INS.file) 45 46 all := TARGET= all 47 clean := TARGET= clean 48 clobber := TARGET= clobber 49 install := TARGET= install 50 lint := TARGET= lint 51 _msg := TARGET= _msg 52 53 LIBRARY= rpcsec.a 54 TEXT_DOMAIN= SUNW_OST_NETRPC 55 XGETFLAGS= -a 56 POFILE= $(LIBRARY:.a=.po) 57 POFILES= generic.po 58 59 .KEEP_STATE: 60 61 all: .WAIT $(SUBDIRS) 62 63 lint: .WAIT $(SUBDIRS) 64 65 install: all .WAIT $(SUBDIRS) 66 67 install_h: 68 69 clean clobber: $(SUBDIRS) 70 71 check: $(CHECKHDRS) 72 73 # include library targets 74 include ../Makefile.targ 75 76 $(MACH) $(MACH64): FRC 77 @cd $@; pwd; $(MAKE) $(TARGET) 78 79 _msg: $(MSGDOMAIN) $(POFILE) 80 $(RM) $(MSGDOMAIN)/$(POFILE) 81 $(CP) $(POFILE) $(MSGDOMAIN) 82 83 $(POFILE): .WAIT $(POFILES) 84 $(RM) $@ 85 $(CAT) $(POFILES) > $@ 86 87 $(POFILES): 88 $(RM) messages.po 89 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 90 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 91 $(RM) messages.po 92 93 catalog: 94 95 $(MSGDOMAIN): 96 $(INS.dir) 97 98 FRC: 99