Makefile revision 6da5aa940d1e163c6f244b5523c22d545bfb954b
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This file and its contents are supplied under the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License ("CDDL)". You may
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# only use this file in accordance with the terms of the CDDL.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# A full copy of the text of the CDDL should have accompanied this
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# source. A copy is of the CDDL is also available via the Internet
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# at http://www.illumos.org/license/CDDL.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2010 Nexenta Systems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePROG= mkcollate
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCATEGORY=LC_COLLATE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.common
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -I$(SRC)/lib/libc/port/locale -D_FILE_OFFSET_BITS=64
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteYFLAGS = -d -b mkcollate_yacc
3270659f55e0928d6edec3d26217cc29398a8149Srikanth, RamanaLFLAGS = -t
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS = $(MACH)/mkcollate_lex.o $(MACH)/mkcollate_yacc.tab.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHDRS = common.h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCLEANFILES = mkcollate_yacc.tab.c mkcollate_yacc.tab.h mkcollate_lex.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteen_COMMON = en_AU en_CA en_GB en_NZ en_US
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteen_ASCII = $(en_COMMON:%=%.US-ASCII)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteen_LATIN1 = $(en_COMMON:%=%.ISO8859-1)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteen_LATIN15 = $(en_COMMON:%=%.ISO8859-15)
5c5f137104b2d56181283389fa902220f2023809Richard Loween_UTF8 = $(en_COMMON:%=%.UTF-8) en_IE.UTF-8
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteen_LOCALES = $(en_ASCII) $(en_LATIN1) $(en_LATIN15) $(en_UTF8)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(MACH)/$(PROG) $(MACHLOCALES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(MACH)/$(PROG): $(OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(en_LATIN1:%=$(MACH)/%): $(MACH)/en.ISO8859-1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LN) $(MACH)/en.ISO8859-1 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(en_LATIN15:%=$(MACH)/%): $(MACH)/en.ISO8859-15
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LN) $(MACH)/en.ISO8859-15 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(en_ASCII:%=$(MACH)/%): $(MACH)/en.US-ASCII
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LN) $(MACH)/en.US-ASCII $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(en_UTF8:%=$(MACH)/%): $(MACH)/en.UTF-8
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LN) $(MACH)/en.UTF-8 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemkcollate_lex.c: mkcollate_lex.l mkcollate_yacc.tab.h $(HDRS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(FLEX) $(LFLAGS) mkcollate_lex.l > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemkcollate_yacc.tab.c mkcollate_yacc.tab.h: mkcollate_yacc.y $(HDRS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(YACC) $(YFLAGS) mkcollate_yacc.y
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(OBJS) $(CLEANFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) -r $(MACH)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Lint does nothing for us, because yacc and lex outputs are themselves
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# not lint clean. This is something that it would be good to address.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Likewise, the yacc and lex outputs are not cstyle clean.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecheck:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CSTYLE) -cPp $(HDRS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Rules for building encoding data files.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(MACH)/%: data/%.src $(MACH)/$(PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MACH)/$(PROG) -o $@ -I data $(@:$(MACH)/%=data/%.src)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.targ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte