1*16d86563SAlexander Pyhalov# 2*16d86563SAlexander Pyhalov# CDDL HEADER START 3*16d86563SAlexander Pyhalov# 4*16d86563SAlexander Pyhalov# The contents of this file are subject to the terms of the 5*16d86563SAlexander Pyhalov# Common Development and Distribution License (the "License"). 6*16d86563SAlexander Pyhalov# You may not use this file except in compliance with the License. 7*16d86563SAlexander Pyhalov# 8*16d86563SAlexander Pyhalov# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE 9*16d86563SAlexander Pyhalov# or http://www.opensolaris.org/os/licensing. 10*16d86563SAlexander Pyhalov# See the License for the specific language governing permissions 11*16d86563SAlexander Pyhalov# and limitations under the License. 12*16d86563SAlexander Pyhalov# 13*16d86563SAlexander Pyhalov# When distributing Covered Code, include this CDDL HEADER in each 14*16d86563SAlexander Pyhalov# file and include the License file at src/OPENSOLARIS.LICENSE. 15*16d86563SAlexander Pyhalov# If applicable, add the following below this CDDL HEADER, with the 16*16d86563SAlexander Pyhalov# fields enclosed by brackets "[]" replaced with your own identifying 17*16d86563SAlexander Pyhalov# information: Portions Copyright [yyyy] [name of copyright owner] 18*16d86563SAlexander Pyhalov# 19*16d86563SAlexander Pyhalov# CDDL HEADER END 20*16d86563SAlexander Pyhalov# 21*16d86563SAlexander Pyhalov# 22*16d86563SAlexander Pyhalov# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 23*16d86563SAlexander Pyhalov# Use is subject to license terms. 24*16d86563SAlexander Pyhalov# 25*16d86563SAlexander Pyhalov 26*16d86563SAlexander Pyhalovinclude $(SRC)/Makefile.master 27*16d86563SAlexander Pyhalov 28*16d86563SAlexander PyhalovMODULES = \ 29*16d86563SAlexander Pyhalov 646%8859.c \ 30*16d86563SAlexander Pyhalov 646da%8859.c \ 31*16d86563SAlexander Pyhalov 646de%8859.c \ 32*16d86563SAlexander Pyhalov 646en%8859.c \ 33*16d86563SAlexander Pyhalov 646es%8859.c \ 34*16d86563SAlexander Pyhalov 646fr%8859.c \ 35*16d86563SAlexander Pyhalov 646it%8859.c \ 36*16d86563SAlexander Pyhalov 646sv%8859.c \ 37*16d86563SAlexander Pyhalov 8859%646.c \ 38*16d86563SAlexander Pyhalov 8859%646da.c \ 39*16d86563SAlexander Pyhalov 8859%646de.c \ 40*16d86563SAlexander Pyhalov 8859%646en.c \ 41*16d86563SAlexander Pyhalov 8859%646es.c \ 42*16d86563SAlexander Pyhalov 8859%646fr.c \ 43*16d86563SAlexander Pyhalov 8859%646it.c \ 44*16d86563SAlexander Pyhalov 8859%646sv.c \ 45*16d86563SAlexander Pyhalov 8859-1%IBM-037.c \ 46*16d86563SAlexander Pyhalov 8859-1%IBM-850.c \ 47*16d86563SAlexander Pyhalov IBM-037%8859-1.c \ 48*16d86563SAlexander Pyhalov IBM-850%8859-1.c \ 49*16d86563SAlexander Pyhalov alt%iso5.c \ 50*16d86563SAlexander Pyhalov alt%koi8.c \ 51*16d86563SAlexander Pyhalov alt%mac.c \ 52*16d86563SAlexander Pyhalov alt%win5.c \ 53*16d86563SAlexander Pyhalov dhn%dos2.c \ 54*16d86563SAlexander Pyhalov dhn%iso2.c \ 55*16d86563SAlexander Pyhalov dhn%maz.c \ 56*16d86563SAlexander Pyhalov dhn%win2.c \ 57*16d86563SAlexander Pyhalov dos2%dhn.c \ 58*16d86563SAlexander Pyhalov dos2%iso2.c \ 59*16d86563SAlexander Pyhalov dos2%maz.c \ 60*16d86563SAlexander Pyhalov dos2%win2.c \ 61*16d86563SAlexander Pyhalov iso2%dhn.c \ 62*16d86563SAlexander Pyhalov iso2%dos2.c \ 63*16d86563SAlexander Pyhalov iso2%maz.c \ 64*16d86563SAlexander Pyhalov iso2%win2.c \ 65*16d86563SAlexander Pyhalov iso5%alt.c \ 66*16d86563SAlexander Pyhalov iso5%koi8.c \ 67*16d86563SAlexander Pyhalov iso5%mac.c \ 68*16d86563SAlexander Pyhalov iso5%win5.c \ 69*16d86563SAlexander Pyhalov koi8%alt.c \ 70*16d86563SAlexander Pyhalov koi8%iso5.c \ 71*16d86563SAlexander Pyhalov koi8%mac.c \ 72*16d86563SAlexander Pyhalov koi8%win5.c \ 73*16d86563SAlexander Pyhalov mac%alt.c \ 74*16d86563SAlexander Pyhalov mac%iso5.c \ 75*16d86563SAlexander Pyhalov mac%koi8.c \ 76*16d86563SAlexander Pyhalov mac%win5.c \ 77*16d86563SAlexander Pyhalov maz%dhn.c \ 78*16d86563SAlexander Pyhalov maz%dos2.c \ 79*16d86563SAlexander Pyhalov maz%iso2.c \ 80*16d86563SAlexander Pyhalov maz%win2.c \ 81*16d86563SAlexander Pyhalov win2%dhn.c \ 82*16d86563SAlexander Pyhalov win2%dos2.c \ 83*16d86563SAlexander Pyhalov win2%iso2.c \ 84*16d86563SAlexander Pyhalov win2%maz.c \ 85*16d86563SAlexander Pyhalov win5%alt.c \ 86*16d86563SAlexander Pyhalov win5%iso5.c \ 87*16d86563SAlexander Pyhalov win5%koi8.c \ 88*16d86563SAlexander Pyhalov win5%mac.c 89*16d86563SAlexander Pyhalov 90*16d86563SAlexander Pyhalov# 91*16d86563SAlexander Pyhalov# These fail and appear not to be delivered with the system at all 92*16d86563SAlexander Pyhalov# 93*16d86563SAlexander PyhalovFAILED = \ 94*16d86563SAlexander Pyhalov 8859-1%IBM-500.c \ 95*16d86563SAlexander Pyhalov IBM-500%8859-1.c \ 96*16d86563SAlexander Pyhalov alt%iso.c \ 97*16d86563SAlexander Pyhalov alt%koi.c \ 98*16d86563SAlexander Pyhalov alt%win.c \ 99*16d86563SAlexander Pyhalov dhn%ib2.c \ 100*16d86563SAlexander Pyhalov dhn%is2.c \ 101*16d86563SAlexander Pyhalov dhn%wi2.c \ 102*16d86563SAlexander Pyhalov ib2%dhn.c \ 103*16d86563SAlexander Pyhalov ib2%is2.c \ 104*16d86563SAlexander Pyhalov ib2%maz.c \ 105*16d86563SAlexander Pyhalov ib2%wi2.c \ 106*16d86563SAlexander Pyhalov is2%dhn.c \ 107*16d86563SAlexander Pyhalov is2%ib2.c \ 108*16d86563SAlexander Pyhalov is2%maz.c \ 109*16d86563SAlexander Pyhalov is2%wi2.c \ 110*16d86563SAlexander Pyhalov iso%alt.c \ 111*16d86563SAlexander Pyhalov iso%koi.c \ 112*16d86563SAlexander Pyhalov iso%mac.c \ 113*16d86563SAlexander Pyhalov iso%win.c \ 114*16d86563SAlexander Pyhalov koi%alt.c \ 115*16d86563SAlexander Pyhalov koi%iso.c \ 116*16d86563SAlexander Pyhalov koi%mac.c \ 117*16d86563SAlexander Pyhalov koi%win.c \ 118*16d86563SAlexander Pyhalov mac%iso.c \ 119*16d86563SAlexander Pyhalov mac%koi.c \ 120*16d86563SAlexander Pyhalov mac%win.c \ 121*16d86563SAlexander Pyhalov maz%ib2.c \ 122*16d86563SAlexander Pyhalov maz%is2.c \ 123*16d86563SAlexander Pyhalov maz%wi2.c \ 124*16d86563SAlexander Pyhalov wi2%dhn.c \ 125*16d86563SAlexander Pyhalov wi2%ib2.c \ 126*16d86563SAlexander Pyhalov wi2%is2.c \ 127*16d86563SAlexander Pyhalov wi2%maz.c \ 128*16d86563SAlexander Pyhalov win%alt.c \ 129*16d86563SAlexander Pyhalov win%iso.c \ 130*16d86563SAlexander Pyhalov win%koi.c \ 131*16d86563SAlexander Pyhalov win%mac.c 132*16d86563SAlexander Pyhalov 133*16d86563SAlexander PyhalovOUT = $(MODULES:%.c=%.out) 134*16d86563SAlexander Pyhalov 135*16d86563SAlexander Pyhalovall: $(OUT) 136*16d86563SAlexander Pyhalov 137*16d86563SAlexander Pyhalov%.out: input 138*16d86563SAlexander Pyhalov FROM=`echo $@ | perl -pe 's:%.*::'` ; \ 139*16d86563SAlexander Pyhalov TO=`echo $@ | perl -pe 's:.*%:: ; s:\.out::'` ; \ 140*16d86563SAlexander Pyhalov /usr/bin/iconv -f $$FROM -t $$TO input > $@ 141*16d86563SAlexander Pyhalov 142*16d86563SAlexander Pyhalovinput: geninput 143*16d86563SAlexander Pyhalov ./geninput > $@ 144*16d86563SAlexander Pyhalov 145*16d86563SAlexander Pyhalovgeninput: ../gentbl/geninput.c 146*16d86563SAlexander Pyhalov $(CC) -o $@ ../gentbl/$@.c 147*16d86563SAlexander Pyhalov 148*16d86563SAlexander Pyhalovclean: 149*16d86563SAlexander Pyhalov $(RM) -r *out input geninput 150*16d86563SAlexander Pyhalov 151*16d86563SAlexander Pyhalovclobber: 152