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#pragma ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright 2003 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27 28PROG= bart 29SRCS= rules.c create.c compare.c main.c lutbl.c 30OBJS= rules.o create.o compare.o main.o lutbl.o 31BART= bart 32 33include ../Makefile.cmd 34LDLIBS += -lsec -lmd5 35 36# 37# for messaging catalog 38# 39 40POFILE= bart.po 41DCFILE= bart.dc 42 43ROOTBINBART= $(BART:%=$(ROOTBIN)/%) 44ROOTLIBDIFFH= $(DIFFH:%=$(ROOTLIB)/%) 45 46.KEEP_STATE: 47 48all: $(PROG) 49 50$(PROG): $(OBJS) 51 $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS) 52 $(POST_PROCESS) 53 54clean: 55 $(RM) $(OBJS) 56 57 58# 59# Use private rule 60# 61$(POFILE): 62 $(RM) $@ 63 $(COMPILE.cpp) $(SRCS) > bart.po.i 64 $(XGETTEXT) $(XGETFLAGS) bart.po.i 65 sed "/^domain/d" messages.po > $@ 66 $(RM) bart.po.i messages.po 67 68$(DCFILE): 69 $(RM) $@ 70 $(COMPILE.cpp) $(SRCS) > bart.dc.i 71 $(XGETTEXT) -c TRANSLATION_NOTE_FOR_DC -t bart.dc.i 72 sed "/^domain/d" messages.po > $@ 73 $(RM) bart.dc.i messages.po 74 75install: all $(ROOTBINBART) $(ROOTLIBDIFFH) 76 77clean: 78 79lint: lint_SRCS 80 81include ../Makefile.targ 82