1*163bd69bSGarrett D'Amore# 2*163bd69bSGarrett D'Amore# CDDL HEADER START 3*163bd69bSGarrett D'Amore# 4*163bd69bSGarrett D'Amore# The contents of this file are subject to the terms of the 5*163bd69bSGarrett D'Amore# Common Development and Distribution License (the "License"). 6*163bd69bSGarrett D'Amore# You may not use this file except in compliance with the License. 7*163bd69bSGarrett D'Amore# 8*163bd69bSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*163bd69bSGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 10*163bd69bSGarrett D'Amore# See the License for the specific language governing permissions 11*163bd69bSGarrett D'Amore# and limitations under the License. 12*163bd69bSGarrett D'Amore# 13*163bd69bSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 14*163bd69bSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*163bd69bSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 16*163bd69bSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 17*163bd69bSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 18*163bd69bSGarrett D'Amore# 19*163bd69bSGarrett D'Amore# CDDL HEADER END 20*163bd69bSGarrett D'Amore# 21*163bd69bSGarrett D'Amore# 22*163bd69bSGarrett D'Amore# 23*163bd69bSGarrett D'Amore# Copyright 2010 Nexenta Systems, Inc. All rights reserved. 24*163bd69bSGarrett D'Amore# Use is subject to license terms. 25*163bd69bSGarrett D'Amore# 26*163bd69bSGarrett D'Amore 27*163bd69bSGarrett D'Amore 28*163bd69bSGarrett D'AmorePROG= tr 29*163bd69bSGarrett D'AmoreXPG4PROG= $(PROG) 30*163bd69bSGarrett D'AmoreXPG6PROG= $(PROG) 31*163bd69bSGarrett D'Amore 32*163bd69bSGarrett D'AmoreOBJS= tr.o str.o cset.o cmap.o 33*163bd69bSGarrett D'AmoreSRCS= $(OBJS:%.o=%.c) 34*163bd69bSGarrett D'Amore 35*163bd69bSGarrett D'Amoreinclude ../Makefile.cmd 36*163bd69bSGarrett D'Amore 37*163bd69bSGarrett D'AmoreCLOBBERFILES= $(PROG) 38*163bd69bSGarrett D'Amore 39*163bd69bSGarrett D'Amore 40*163bd69bSGarrett D'AmoreC99MODE= -xc99=%all 41*163bd69bSGarrett D'AmoreC99LMODE= -Xc99=%all 42*163bd69bSGarrett D'AmoreCPPFLAGS += -D_ILLUMOS_PRIVATE -I. 43*163bd69bSGarrett D'AmoreLINTFLAGS += -D_ILLUMOS_PRIVATE -I. 44*163bd69bSGarrett D'Amore 45*163bd69bSGarrett D'Amore# install rules 46*163bd69bSGarrett D'Amore$(ROOTINC)/% : % 47*163bd69bSGarrett D'Amore $(INS.file) 48*163bd69bSGarrett D'Amore 49*163bd69bSGarrett D'Amore.KEEP_STATE: 50*163bd69bSGarrett D'Amore 51*163bd69bSGarrett D'Amore.PARALLEL: $(OBJS) 52*163bd69bSGarrett D'Amore 53*163bd69bSGarrett D'Amoreall: $(PROG) 54*163bd69bSGarrett D'Amore 55*163bd69bSGarrett D'Amore$(PROG): $(OBJS) 56*163bd69bSGarrett D'Amore $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 57*163bd69bSGarrett D'Amore $(POST_PROCESS) 58*163bd69bSGarrett D'Amore 59*163bd69bSGarrett D'Amoreinstall: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG) 60*163bd69bSGarrett D'Amore 61*163bd69bSGarrett D'Amore$(ROOTXPG4PROG) $(ROOTXPG6PROG): 62*163bd69bSGarrett D'Amore -$(RM) $@ 63*163bd69bSGarrett D'Amore -$(LN) -s ../../bin/$(PROG) $@ 64*163bd69bSGarrett D'Amore 65*163bd69bSGarrett D'Amorelint: lint_SRCS 66*163bd69bSGarrett D'Amore 67*163bd69bSGarrett D'Amoreclean: 68*163bd69bSGarrett D'Amore $(RM) $(OBJS) 69*163bd69bSGarrett D'Amore 70*163bd69bSGarrett D'Amoreinclude ../Makefile.targ 71