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 580ab886dSwesolows# Common Development and Distribution License (the "License"). 680ab886dSwesolows# 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# 2180ab886dSwesolows# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 227c478bd9Sstevel@tonic-gate# Use is subject to license terms. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gateINPUTFILES = ISO8859-1_to_UTF-8.src UTF-8_to_ISO8859-1.src\ 267c478bd9Sstevel@tonic-gate eucJP_to_ISO-2022-JP.src ISO-2022-JP_to_eucJP.src \ 277c478bd9Sstevel@tonic-gate ISO646_to_ISO8859-1.src ISO8859-1_to_ISO646.src 28*b8767451SRichard Lowe 297c478bd9Sstevel@tonic-gateOUTPUTFILES = ISO646%ISO8859-1.bt ISO8859-1%ISO646.bt 30*b8767451SRichard Lowe# ONLY TWO binarytables are deliverables 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate# ISO8859-1%UTF-8.bt UTF-8%ISO8859-1.bt 337c478bd9Sstevel@tonic-gate# eucJP%ISO-2022-JP.bt ISO-2022-JP%eucJP.bt \ 34*b8767451SRichard Lowe# ISO646%ISO8859-1.bt ISO8859-1%ISO646.bt 357c478bd9Sstevel@tonic-gate# OUTPUTFILES = $(INPUTFILES:%.src=%.bt) NEVER USE ( WATCH OUT FILE NAME ) 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate# include ../../../lib/Makefile.lib 387c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateROOTICONVDIRS = $(ROOTLIB)/iconv 427c478bd9Sstevel@tonic-gateROOTDIRS = $(ROOTICONVDIRS)/geniconvtbl 437c478bd9Sstevel@tonic-gateSRCSDIRS = $(ROOTDIRS)/srcs 447c478bd9Sstevel@tonic-gateBTSDIRS = $(ROOTDIRS)/binarytables 457c478bd9Sstevel@tonic-gateROOTINPUTFILES = $(INPUTFILES:%=$(SRCSDIRS)/%) 467c478bd9Sstevel@tonic-gateROOTOUTPUTFILES = $(OUTPUTFILES:%=$(BTSDIRS)/%) 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate$(ROOTINPUTFILES) := FILEMODE = 444 497c478bd9Sstevel@tonic-gate$(ROOTOUTPUTFILES) := FILEMODE = 444 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate.KEEP_STATE: 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate.PARALLEL: $(OUTPUTFILES) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateall: $(OUTPUTFILES) 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gateinstall: all $(ROOTOUTPUTFILES) $(ROOTINPUTFILES) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateclean clobber: 627c478bd9Sstevel@tonic-gate $(RM) $(OUTPUTFILES) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateISO8859-1%UTF-8.bt: ISO8859-1_to_UTF-8.src 667c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO8859-1_to_UTF-8.src 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateUTF-8%ISO8859_1.bt: UTF-8_to_ISO8859_1.src 697c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f UTF-8_to_ISO8859_1.src 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateeucJP%ISO-2022-JP.bt: eucJP_to_ISO-2022-JP.src 727c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f eucJP_to_ISO-2022-JP.src 737c478bd9Sstevel@tonic-gate 74*b8767451SRichard LoweISO-2022-JP%eucJP.bt: ISO-2022-JP_to_eucJP.src 75*b8767451SRichard Lowe $(GENICONVTBL) -o $@ -f ISO-2022-JP_to_eucJP.src 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gateISO646%ISO8859-1.bt: ISO646_to_ISO8859-1.src 787c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO646_to_ISO8859-1.src 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gateISO8859-1%ISO646.bt: ISO8859-1_to_ISO646.src 817c478bd9Sstevel@tonic-gate $(GENICONVTBL) -o $@ -f ISO8859-1_to_ISO646.src 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate# install rule 85*b8767451SRichard Lowe# 867c478bd9Sstevel@tonic-gate$(SRCSDIRS)/%: % $(SRCSDIRS) 877c478bd9Sstevel@tonic-gate $(INS.file) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gate$(BTSDIRS)/%: % $(BTSDIRS) 907c478bd9Sstevel@tonic-gate $(INS.file) 917c478bd9Sstevel@tonic-gate 92*b8767451SRichard Lowe$(SRCSDIRS) $(BTSDIRS): $(ROOTDIRS) 937c478bd9Sstevel@tonic-gate $(INS.dir) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gate$(ROOTDIRS): $(ROOTICONVDIRS) 967c478bd9Sstevel@tonic-gate $(INS.dir) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate$(ROOTICONVDIRS): 997c478bd9Sstevel@tonic-gate $(INS.dir) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gate$(SRCSDIRS)/%: $(SRCSDIRS) % 1027c478bd9Sstevel@tonic-gate $(INS.file) 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate$(BTSDIRS)/%: $(BTSDIRS) % 1057c478bd9Sstevel@tonic-gate $(INS.file) 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate# rule of making BinaryTable 1087c478bd9Sstevel@tonic-gate# ( must be placed after install rule ) 1097c478bd9Sstevel@tonic-gate# 1107c478bd9Sstevel@tonic-gate# .SUFFIXES: $(SUFFIXES) .src 1117c478bd9Sstevel@tonic-gate# .SUFFIXES: $(SUFFIXES) .bt 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gate# 1147c478bd9Sstevel@tonic-gate# %.bt: %.src 115*b8767451SRichard Lowe# $(GENICONVTBL) -o $@ -f $< 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate# include ../../Makefile.targ 118