8207 localedef links against libraries outside of proto area
[unleashed.git] / usr / src / cmd / localedef / Makefile
blob358f63de012276bac3167545e541f3b1396f1a9e
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Nexenta Systems, Inc.
14 # Copyright 2011 EveryCity Ltd. All rights reserved.
15 # Copyright 2013 DEY Storage Systems, Inc.
16 # Copyright 2016 Joyent, Inc.
17 # Copyright 2017 RackTop Systems.
20 include $(SRC)/cmd/Makefile.cmd
21 include $(SRC)/cmd/Makefile.ctf
22 include $(SRC)/cmd/localedef/Makefile.common
24 LDLIBS += -lavl -lgen
26 .KEEP_STATE:
28 all: $(PROG)
30 parser.tab.c parser.tab.h: parser.y localedef.h
31 $(YACC) $(YFLAGS) parser.y
33 $(OBJS): parser.tab.h
35 $(PROG): $(OBJS)
36 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
37 $(POST_PROCESS)
39 $(POFILE): $(PIFILES)
40 $(RM) $@
41 $(RM) messages.po
42 $(XGETTEXT) -s $(PIFILES)
43 $(SED) -e '/domain/d' messages.po > $@
44 $(RM) $(PIFILES) messages.po
46 install: all $(ROOTPROG)
48 lint: lint_SRCS
50 clean:
51 $(RM) $(CLEANFILES)
53 include $(SRC)/cmd/Makefile.targ