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 (the License). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at CDDL.txt 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at CDDL.txt. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets [] replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 # 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 26 #ROOT = /proto 27 #SRC = /usr/src 28 29 # These are default language setting 30 TARG_LANGUAGE :sh = echo ${TARG_LANGUAGE-'de fr es ja ko zh zh_TW'} 31 32 de_LOCALE :sh = echo ${de_LOCALE-'de_DE.ISO8859-1 de_DE.UTF-8'} 33 es_LOCALE :sh = echo ${es_LOCALE-'es_ES.ISO8859-1 es_ES.UTF-8'} 34 fr_LOCALE :sh = echo ${fr_LOCALE-'fr_FR.ISO8859-1 fr_FR.UTF-8'} 35 it_LOCALE :sh = echo ${it_LOCALE-'it_IT.ISO8859-1 it_IT.UTF-8'} 36 sv_LOCALE :sh = echo ${sv_LOCALE-'sv_SE.ISO8859-1 sv_SE.UTF-8'} 37 ko_LOCALE :sh = echo ${ko_LOCALE-'ko_KR.EUC ko.UTF-8'} 38 zh_LOCALE :sh = echo ${zh_LOCALE-'zh_CN.EUC zh.GBK zh.UTF-8'} 39 zh_TW_LOCALE :sh = echo ${zh_TW_LOCALE-'zh_TW.EUC zh_TW.UTF-8 zh_TW.BIG5'} 40 ja_LOCALE :sh = echo ${ja_LOCALE-'ja_JP.eucJP ja_JP.PCK ja_JP.UTF-8'} 41 42 JAPAN_LOCALE = $(ja_LOCALE) 43 ASIAN_LOCALE = $(ko_LOCALE) $(zh_LOCALE) $(zh_TW_LOCALE) 44 EURO_LOCALE = $(de_LOCALE) $(es_LOCALE) $(fr_LOCALE) 45 46 TARG_LOCALE = $(JAPAN_LOCALE) $(ASIAN_LOCALE) $(EURO_LOCALE) 47 48 # Common macro used in each Makefile. 49 ECHO= echo 50 INS= /usr/sbin/install 51 SYMLINK= ln -s 52 LN= ln 53 CHMOD= chmod 54 CHOWN= $(ECHO) 55 CHGRP= $(ECHO) 56 MV= mv -f 57 RM= rm -f 58 MCS= /usr/ccs/bin/mcs 59 CAT= cat 60 M4= /usr/xpg4/bin/m4 61 CP= /usr/bin/cp -f 62 MKDIR= /usr/bin/mkdir -p 63 DMAKE= /opt/SUNWspro/bin/dmake -j 16 64 65 # MACH must be set in the shell environment per uname -p on the build host 66 # More specific architecture variables should be set in lower makefiles. 67 # 68 MACH :sh= echo ${MACH-`uname -p`} 69 70 # For message compiler 71 MSGFMT= env LC_ALL=$(LOCALE) /usr/bin/msgfmt 72 73 # When building CDE message files, use makeMessCat instead of gencat. 74 # In this case, GENCATOPTION( = $LOCALE) is needed. 75 GENCAT= env LC_ALL=$(LOCALE) /usr/bin/gencat 76 GENCATOPTION= 77 78 JAVAC= env LC_ALL=$(LOCALE) /usr/bin/javac -source 1.3 -target 1.1 79 JAR= env LC_ALL=$(LOCALE) /usr/bin/jar -cf 80 JAVA_HOME= /usr/java 81 JHHOME= $(SRC)/tools/jh1.1 82 MKMSGS= env LC_ALL=$(LOCALE) /usr/bin/mkmsgs 83 NLSTAGUTIL= env LC_ALL=$(LOCALE) $(SRC)/tools/CDE/merge 84 ICONV= /usr/bin/iconv -f $(SRC_CHARSET) -t $(CHARSET) 85 $(USEICV)ICONV= /usr/bin/cat 86 NATIVE2ASCII= /usr/java/bin/native2ascii -encoding $(JAVA_CHARSET) 87 UIL= /usr/dt/bin/uil 88 89 # For install 90 FILEMODE= 644 91 DIRMODE= 755 92 93 INS.file= $(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $< 94 INS.dir= $(INS) -s -d -m $(DIRMODE) $@ 95 INS.rename= $(INS.file); $(MV) $(@D)/$(<F) $@ 96 97 # For packaging 98 PKGMK= pkgmk -o -d $(PKGROOT) -r $(ROOT) 99 PKGFILES= pkginfo prototype 100