10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*3448Sdh155122# Common Development and Distribution License (the "License"). 6*3448Sdh155122# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 220Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 230Sstevel@tonic-gate# 24*3448Sdh155122# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 250Sstevel@tonic-gate# Use is subject to license terms. 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gatePROG= diff diffh 290Sstevel@tonic-gateSRCS= $(PROG:%=%.c) 30*3448Sdh155122BINDIFF= diff 31*3448Sdh155122LIBDIFFH= diffh 320Sstevel@tonic-gate 330Sstevel@tonic-gateinclude ../Makefile.cmd 340Sstevel@tonic-gate# 350Sstevel@tonic-gate# for messaging catalog 360Sstevel@tonic-gate# 370Sstevel@tonic-gatePOFILE= diff.po 380Sstevel@tonic-gateDCFILE= diff.dc 390Sstevel@tonic-gate#XGETFLAGS += -a -x diff.xcl 400Sstevel@tonic-gate 41*3448Sdh155122ROOTBINDIFF = $(BINDIFF:%=$(ROOTBIN)/%) 42*3448Sdh155122ROOTLIBDIFFH = $(LIBDIFFH:%=$(ROOTLIB)/%) 430Sstevel@tonic-gate 440Sstevel@tonic-gate.KEEP_STATE: 450Sstevel@tonic-gate 460Sstevel@tonic-gateall: $(PROG) 470Sstevel@tonic-gate 480Sstevel@tonic-gate# 490Sstevel@tonic-gate# Use private rule 500Sstevel@tonic-gate# 510Sstevel@tonic-gate$(POFILE): 520Sstevel@tonic-gate $(RM) $@ 530Sstevel@tonic-gate $(COMPILE.cpp) $(SRCS) > diff.po.i 540Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) diff.po.i 550Sstevel@tonic-gate sed "/^domain/d" messages.po > $@ 560Sstevel@tonic-gate $(RM) diff.po.i messages.po 570Sstevel@tonic-gate 580Sstevel@tonic-gate$(DCFILE): 590Sstevel@tonic-gate $(RM) $@ 600Sstevel@tonic-gate $(COMPILE.cpp) $(SRCS) > diff.dc.i 610Sstevel@tonic-gate $(XGETTEXT) -c TRANSLATION_NOTE_FOR_DC -t diff.dc.i 620Sstevel@tonic-gate sed "/^domain/d" messages.po > $@ 630Sstevel@tonic-gate $(RM) diff.dc.i messages.po 640Sstevel@tonic-gate 650Sstevel@tonic-gateinstall: all $(ROOTBINDIFF) $(ROOTLIBDIFFH) 660Sstevel@tonic-gate 670Sstevel@tonic-gateclean: 680Sstevel@tonic-gate 690Sstevel@tonic-gatelint: 700Sstevel@tonic-gate $(LINT.c) diff.c $(LDLIBS) 710Sstevel@tonic-gate $(LINT.c) diffh.c $(LDLIBS) 720Sstevel@tonic-gate 730Sstevel@tonic-gateinclude ../Makefile.targ 74