Home | History | Annotate | Download | only in ohacds-g11n
      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 #
     23 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 
     27 
     28 #ROOT =		/proto
     29 #SRC =		/usr/src
     30 
     31 # These are default language setting
     32 TARG_LANGUAGE :sh =	echo ${TARG_LANGUAGE-'fr de es ko zh zh_TW ja'}
     33 
     34 de_LOCALE :sh = 	echo ${de_LOCALE-'de_DE.ISO8859-1 de_DE.UTF-8'}
     35 es_LOCALE :sh = 	echo ${es_LOCALE-'es_ES.ISO8859-1 es_ES.UTF-8'}
     36 fr_LOCALE :sh = 	echo ${fr_LOCALE-'fr_FR.ISO8859-1 fr_FR.UTF-8'}
     37 it_LOCALE :sh = 	echo ${it_LOCALE-'it_IT.ISO8859-1 it_IT.UTF-8'}
     38 sv_LOCALE :sh = 	echo ${sv_LOCALE-'sv_SE.ISO8859-1 sv_SE.UTF-8'}
     39 ko_LOCALE :sh = 	echo ${ko_LOCALE-'ko_KR.EUC ko.UTF-8'}
     40 zh_LOCALE :sh = 	echo ${zh_LOCALE-'zh_CN.EUC zh.GBK zh.UTF-8'}
     41 zh_TW_LOCALE :sh = 	echo ${zh_TW_LOCALE-'zh_TW.EUC zh_TW.UTF-8 zh_TW.BIG5'}
     42 ja_LOCALE :sh = 	echo ${ja_LOCALE-'ja_JP.eucJP ja_JP.PCK ja_JP.UTF-8'}
     43 
     44 JAPAN_LOCALE =		$(ja_LOCALE)
     45 ASIAN_LOCALE =		$(ko_LOCALE) $(zh_LOCALE) $(zh_TW_LOCALE)
     46 EURO_LOCALE =		$(de_LOCALE) $(es_LOCALE) $(fr_LOCALE) \
     47 			$(it_LOCALE) $(sv_LOCALE)
     48 
     49 TARG_LOCALE =		$(JAPAN_LOCALE) $(ASIAN_LOCALE) $(EURO_LOCALE)
     50 
     51 # Common macro used in each Makefile.
     52 ECHO=		echo
     53 INS=		/usr/sbin/install
     54 SYMLINK=	ln -s
     55 LN=		ln
     56 CHMOD=		chmod
     57 CHOWN=		$(ECHO)
     58 CHGRP=		$(ECHO)
     59 MV=		mv -f
     60 RM=		rm -f
     61 MCS=		/usr/ccs/bin/mcs
     62 CAT=		cat
     63 M4=		/usr/xpg4/bin/m4
     64 CP=		/usr/bin/cp -f 
     65 MKDIR=		/usr/bin/mkdir -p
     66 DMAKE=		/opt/SUNWspro/bin/dmake -j 16
     67 
     68 # MACH must be set in the shell environment per uname -p on the build host
     69 # More specific architecture variables should be set in lower makefiles.
     70 #
     71 MACH :sh= echo ${MACH-`uname -p`}
     72 
     73 # For message compiler
     74 MSGFMT=         env LC_ALL=$(LOCALE) /usr/bin/msgfmt
     75 
     76 # When building CDE message files, use makeMessCat instead of gencat.
     77 # In this case, GENCATOPTION( = $LOCALE) is needed.
     78 GENCAT=		env LC_ALL=$(LOCALE) /usr/bin/gencat
     79 GENCATOPTION=
     80 
     81 JAVAC=		env LC_ALL=$(LOCALE) /usr/bin/javac -target 1.1
     82 JAR=		env LC_ALL=$(LOCALE) /usr/bin/jar -cf
     83 JAVA_HOME=	/usr/java
     84 JHHOME=		$(SRC)/tools/jh1.1
     85 MKMSGS=         env LC_ALL=$(LOCALE) /usr/bin/mkmsgs
     86 NLSTAGUTIL=     env LC_ALL=$(LOCALE) $(SRC)/tools/CDE/merge
     87 ICONV=		/usr/bin/iconv -f $(SRC_CHARSET) -t $(CHARSET)
     88 $(USEICV)ICONV= /usr/bin/cat
     89 NATIVE2ASCII=	/usr/java/bin/native2ascii -encoding $(JAVA_CHARSET)
     90 UIL=		/usr/dt/bin/uil
     91 
     92 # For install
     93 FILEMODE=       644
     94 DIRMODE=        755
     95 
     96 INS.file=       $(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
     97 INS.dir=        $(INS) -s -d -m $(DIRMODE) $@
     98 INS.rename=     $(INS.file); $(MV) $(@D)/$(<F) $@
     99 
    100 # For packaging
    101 PKGMK=		pkgmk -o -d $(PKGROOT) -r $(ROOT)
    102 PKGFILES=	pkginfo prototype
    103