Makefile revision 86cd95d530af3f6114d62965ed5d646783015345
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsync# This file and its contents are supplied under the terms of the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Common Development and Distribution License ("CDDL"), version 1.0.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# You may only use this file in accordance with the terms of version
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# 1.0 of the CDDL.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# A full copy of the text of the CDDL should have accompanied this
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# source. A copy of the CDDL is also available via the Internet at
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Copyright 2011 EveryCity Ltd. All rights reserved.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Copyright 2013 DEY Storage Systems, Inc.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Copyright 2015 Joyent, Inc.
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsyncOBJS = charmap.o collate.o ctype.o messages.o monetary.o numeric.o time.o \
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncNOBJS = $(OBJS:%.o=native/%.o) native/avl.o native/mkdirp.o
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncCLEANFILES = $(NOBJS) $(OBJS) parser.tab.c parser.tab.h
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync es_AR es_BO es_CL es_CO es_EC es_ES es_GT es_MX es_NI es_PA \
586a142e4f1569abf0f6f71fdfa735b39602d93dvboxsync# All new locales should be in UTF-8 form.
7625bf133b6da1bcac8b5a2bbc69696c9152ac02vboxsync ar_AE ar_BH ar_DZ ar_EG ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA \
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsync en_AU en_BW en_BZ en_CA en_GB en_HK en_IE en_IN en_JM en_MH \
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsync en_MT en_NA en_NZ en_PH en_PK en_SG en_TT en_US en_ZA en_ZW \
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsync es_AR es_BO es_CL es_CO es_CR es_DO es_EC es_ES es_GQ es_GT \
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsync es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY \
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync fr_BE fr_CA fr_CF fr_CH fr_FR fr_GN fr_LU fr_MC fr_MG fr_ML \
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync# This is a list of locales that happen to have translations for them
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync# present in the gate.
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsyncROOTTRANSLATIONS = $(TRANSLOCS:%=$(ROOTLIB)/locale/%/$(OSTMOFILE))
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsyncROOTPRIVTRANS = $(PRIVTRANSLOCS:%=$(ROOTLIB)/locale/%/$(PRIVFILE))
1e55c91541549682278f13c784f4ecc57bd9a2b3vboxsyncinstall: all $(ROOTPROG) $(ROOTDATA) $(ROOTTRANSLATIONS) $(ROOTPRIVTRANS)
e44aaa77f3bdded3846f3831452bf1a2a69cd4c0vboxsync $(NATIVECC) $(NATIVE_CFLAGS) $(NATIVE_CPPFLAGS) -o $@ -c $<
cd4f52d994a7121c3c9db83163c686fffa6089e5vboxsync $(NATIVECC) $(NATIVE_CFLAGS) $(NATIVE_CPPFLAGS) -o $@ -c \
cbd1ed83d0cdb2ea0224838309642a9042a25e5fvboxsync $(NATIVECC) $(NATIVE_CFLAGS) $(NATIVE_CPPFLAGS) -o $@ -c \
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Strip LC_CTYPE contents for UTF-8 locales and replace them
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync# with UTF-8.ct we compiled
41f11838cf4a7f490889239ae52b83c27830c52bvboxsync $(SED) '/^LC_CTYPE/,/^END LC_CTYPE/d;$$r UTF-8.ct' $< | \
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync# Convert EURO_SIGN to CURRENCY_SIGN for the ISO8859-1 locales
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsynclocale/%.ISO8859-1/stamp: data/%.UTF-8.src 8859-1.cm locale $(NPROG)
74e03e3bff53d9ff9b266e0a8af97f59d54f4e23vboxsync ./$(NPROG) -U -w data/widths.txt -i $<.tmp -f 8859-1.cm $(@D)
e38b80676801b8fa7128f29c45eab0e2bc9c225cvboxsynclocale/%.ISO8859-2/stamp: data/%.UTF-8.src 8859-2.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-2.cm $(@D)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsynclocale/%.ISO8859-5/stamp: data/%.UTF-8.src 8859-5.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-5.cm $(@D)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsynclocale/%.ISO8859-7/stamp: data/%.UTF-8.src 8859-7.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-7.cm $(@D)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsynclocale/%.ISO8859-6/stamp: data/%.UTF-8.src 8859-6.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-6.cm $(@D)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsynclocale/%.ISO8859-9/stamp: data/%.UTF-8.src 8859-9.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-9.cm $(@D)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsynclocale/%.ISO8859-11/stamp: data/%.UTF-8.src 8859-11.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-11.cm $(@D)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsynclocale/%.ISO8859-13/stamp: data/%.UTF-8.src 8859-13.cm locale $(NPROG)
878731e72e401b7e2a0434e5ab36ca633c7f2586vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-13.cm $(@D)
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsynclocale/%.ISO8859-15/stamp: data/%.UTF-8.src 8859-15.cm locale $(NPROG)
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f 8859-15.cm $(@D)
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsynclocale/%.KOI8-R/stamp: data/%.UTF-8.src KOI8-R.cm locale $(NPROG)
f979659894ba6ea0f1a467c7c21ca6f20062caafvboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f KOI8-R.cm $(@D)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsynclocale/%.GB18030/stamp: data/%.UTF-8.src GB18030.cm locale $(NPROG)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync ./$(NPROG) -U -w data/widths.txt -i $< -f GB18030.cm $(@D)