17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*80ab886dSwesolows# Common Development and Distribution License (the "License"). 6*80ab886dSwesolows# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*80ab886dSwesolows# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 227c478bd9Sstevel@tonic-gate# Use is subject to license terms. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# cmd/geniconvtbl/samples/Makefile 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateINPUTFILES = ISO8859-1_to_UTF-8.src UTF-8_to_ISO8859-1.src\ 307c478bd9Sstevel@tonic-gate eucJP_to_ISO-2022-JP.src ISO-2022-JP_to_eucJP.src \ 317c478bd9Sstevel@tonic-gate ISO646_to_ISO8859-1.src ISO8859-1_to_ISO646.src 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateOUTPUTFILES = ISO646%ISO8859-1.bt ISO8859-1%ISO646.bt 347c478bd9Sstevel@tonic-gate# ONLY TWO binarytables are deribalables 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate# ISO8859-1%UTF-8.bt UTF-8%ISO8859-1.bt 377c478bd9Sstevel@tonic-gate# eucJP%ISO-2022-JP.bt ISO-2022-JP%eucJP.bt \ 387c478bd9Sstevel@tonic-gate# ISO646%ISO8859-1.bt ISO8859-1%ISO646.bt 397c478bd9Sstevel@tonic-gate# OUTPUTFILES = $(INPUTFILES:%.src=%.bt) NEVER USE ( WATCH OUT FILE NAME ) 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate 42*80ab886dSwesolowsGENICONVTBL= ../native/geniconvtbl 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate# include ../../../lib/Makefile.lib 467c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gateROOTICONVDIRS = $(ROOTLIB)/iconv 507c478bd9Sstevel@tonic-gateROOTDIRS = $(ROOTICONVDIRS)/geniconvtbl 517c478bd9Sstevel@tonic-gateSRCSDIRS = $(ROOTDIRS)/srcs 527c478bd9Sstevel@tonic-gateBTSDIRS = $(ROOTDIRS)/binarytables 537c478bd9Sstevel@tonic-gateROOTINPUTFILES = $(INPUTFILES:%=$(SRCSDIRS)/%) 547c478bd9Sstevel@tonic-gateROOTOUTPUTFILES = $(OUTPUTFILES:%=$(BTSDIRS)/%) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate$(ROOTINPUTFILES) := FILEMODE = 444 577c478bd9Sstevel@tonic-gate$(ROOTOUTPUTFILES) := FILEMODE = 444 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gate.KEEP_STATE: 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate.PARALLEL: $(OUTPUTFILES) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateall: $(OUTPUTFILES) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateinstall: all $(ROOTOUTPUTFILES) $(ROOTINPUTFILES) 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gateclean clobber: 707c478bd9Sstevel@tonic-gate $(RM) $(OUTPUTFILES) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateISO8859-1%UTF-8.bt: ISO8859-1_to_UTF-8.src 747c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO8859-1_to_UTF-8.src 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gateUTF-8%ISO8859_1.bt: UTF-8_to_ISO8859_1.src 777c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f UTF-8_to_ISO8859_1.src 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateeucJP%ISO-2022-JP.bt: eucJP_to_ISO-2022-JP.src 807c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f eucJP_to_ISO-2022-JP.src 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateISO-2022-JP%eucJP.bt: ISO-2022-JP_to_eucJP.src 837c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO-2022-JP_to_eucJP.src 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateISO646%ISO8859-1.bt: ISO646_to_ISO8859-1.src 867c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO646_to_ISO8859-1.src 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateISO8859-1%ISO646.bt: ISO8859-1_to_ISO646.src 897c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO8859-1_to_ISO646.src 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate# install rule 937c478bd9Sstevel@tonic-gate# 947c478bd9Sstevel@tonic-gate$(SRCSDIRS)/%: % $(SRCSDIRS) 957c478bd9Sstevel@tonic-gate $(INS.file) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate$(BTSDIRS)/%: % $(BTSDIRS) 987c478bd9Sstevel@tonic-gate $(INS.file) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate$(SRCSDIRS) $(BTSDIRS): $(ROOTDIRS) 1017c478bd9Sstevel@tonic-gate $(INS.dir) 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gate$(ROOTDIRS): $(ROOTICONVDIRS) 1047c478bd9Sstevel@tonic-gate $(INS.dir) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gate$(ROOTICONVDIRS): 1077c478bd9Sstevel@tonic-gate $(INS.dir) 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate$(SRCSDIRS)/%: $(SRCSDIRS) % 1107c478bd9Sstevel@tonic-gate $(INS.file) 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate$(BTSDIRS)/%: $(BTSDIRS) % 1137c478bd9Sstevel@tonic-gate $(INS.file) 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gate# rule of making BinaryTable 1167c478bd9Sstevel@tonic-gate# ( must be placed after install rule ) 1177c478bd9Sstevel@tonic-gate# 1187c478bd9Sstevel@tonic-gate# .SUFFIXES: $(SUFFIXES) .src 1197c478bd9Sstevel@tonic-gate# .SUFFIXES: $(SUFFIXES) .bt 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate# 1227c478bd9Sstevel@tonic-gate# %.bt: %.src 1237c478bd9Sstevel@tonic-gate# $(GENICONVTBL) -o $@ -f $< 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate# include ../../Makefile.targ 126