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 1999-2002 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27# 28# lib/libexacct/Makefile 29# 30 31include ../Makefile.lib 32 33SUBDIRS= $(MACH) demo 34$(BUILD64)SUBDIRS += $(MACH64) 35 36all := TARGET = all 37debug := TARGET = debug 38clean := TARGET = clean 39clobber := TARGET = clobber 40delete := TARGET = delete 41install := TARGET = install 42lint := TARGET = lint 43_msg := TARGET = _msg 44package := TARGET = package 45 46LIBRARY= libexacct.a 47TEXT_DOMAIN= SUNW_OS_OSLIB 48XGETFLAGS= -a 49POFILE= $(LIBRARY:.a=.po) 50POFILES= generic.po 51 52SED= sed 53GREP= grep 54CP= cp 55 56.KEEP_STATE: 57 58all debug clean clobber delete install package: spec .WAIT $(SUBDIRS) 59 60lint: $(SUBDIRS) 61 62install_h: $(ROOTHDRS) 63 64check: $(CHECKHDRS) 65 66spec $(SUBDIRS): FRC 67 @cd $@; pwd; $(MAKE) $(TARGET) 68 69_msg: $(MSGDOMAIN) $(POFILE) 70 $(RM) $(MSGDOMAIN)/$(POFILE) 71 $(CP) $(POFILE) $(MSGDOMAIN) 72 73$(POFILE): .WAIT $(POFILES) 74 $(RM) $@ 75 $(CAT) $(POFILES) > $@ 76 77$(POFILES): 78 $(RM) messages.po 79 $(XGETTEXT) $(XGETFLAGS) *.[ch]* 80 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 81 $(RM) messages.po 82 83FRC: 84 85