Makefile revision b599bd937c305a895426e8c412ca920ce7824850
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# This file and its contents are supplied under the terms of the
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'Amore# You may only use this file in accordance with the terms of version
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'Amore# 1.0 of the CDDL.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# A full copy of the text of the CDDL should have accompanied this
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# source. A copy of the CDDL is also available via the Internet at
44fd9652de83a26569886c219d6b32e9106a9a5bGarrett D'Amore# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
8f4fd63858783a7a2af99f73bab41683900386abAndrzej Szeszo# Copyright 2011 EveryCity Ltd. All rights reserved.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# Copyright 2013 DEY Storage Systems, Inc.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# Copyright 2015 Joyent, Inc.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'AmoreOBJS = charmap.o collate.o ctype.o messages.o monetary.o numeric.o time.o \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'AmoreNATIVE_CPPFLAGS += -I $(SRC)/lib/libc/port/locale
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# Unfortunately, we have a chicken and an egg problem. libavl is becoming
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# public, which means that all of its symbols are in a version that the build
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# machine doesn't have and traditionally there has been no libavl compilation
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# symlink. Therefore, because we know that we only support building on illumos,
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# we regrettably have to link explicitly against the full library path. Sorry.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'AmoreCLEANFILES = $(NOBJS) $(OBJS) parser.tab.c parser.tab.h
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore 8859-11.cm 8859-13.cm 8859-14.cm 8859-15.cm \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore es_AR es_BO es_CL es_CO es_EC es_ES es_GT es_MX es_NI es_PA \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# All new locales should be in UTF-8 form.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore ar_AE ar_BH ar_DZ ar_EG ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore en_AU en_BW en_BZ en_CA en_GB en_HK en_IE en_IN en_JM en_MH \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore en_MT en_NA en_NZ en_PH en_PK en_SG en_TT en_US en_ZA en_ZW \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore es_AR es_BO es_CL es_CO es_CR es_DO es_EC es_ES es_GQ es_GT \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore fr_BE fr_CA fr_CF fr_CH fr_FR fr_GN fr_LU fr_MC fr_MG fr_ML \
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'AmoreUTF8SRCS = $(UTF_8_LOCALES:%=data/%.UTF-8.src)
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# This is a list of locales that happen to have translations for them
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore# present in the gate.
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'AmoreROOTTRANSLATIONS = $(TRANSLOCS:%=$(ROOTLIB)/locale/%/$(OSTMOFILE))
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'AmoreROOTPRIVTRANS = $(PRIVTRANSLOCS:%=$(ROOTLIB)/locale/%/$(PRIVFILE))
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amoretranslate: $(ROOTTRANSLATIONS) $(ROOTPRIVTRANS)
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amoreinstall: all $(ROOTPROG) $(ROOTDATA) $(ROOTTRANSLATIONS) $(ROOTPRIVTRANS)
6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648Garrett D'Amore $(NATIVECC) $(NATIVE_CFLAGS) $(NATIVE_CPPFLAGS) -o $@ -c $<
$(INS.dir)
$(INS.file)
# with UTF-8.ct we compiled
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
$(RM) $@
$(RM) $@
$(MSGFMT) -o $@ $<
$(INS.rename)
$(INS.rename)