xref: /illumos-gate/usr/src/tools/localedef/Makefile (revision 6cf138763efaab6b5998bc1ed6849459e376684d)
1503609a9SYuri Pankov#
2503609a9SYuri Pankov# This file and its contents are supplied under the terms of the
3503609a9SYuri Pankov# Common Development and Distribution License ("CDDL"), version 1.0.
4503609a9SYuri Pankov# You may only use this file in accordance with the terms of version
5503609a9SYuri Pankov# 1.0 of the CDDL.
6503609a9SYuri Pankov#
7503609a9SYuri Pankov# A full copy of the text of the CDDL should have accompanied this
8503609a9SYuri Pankov# source.  A copy of the CDDL is also available via the Internet at
9503609a9SYuri Pankov# http://www.illumos.org/license/CDDL.
10503609a9SYuri Pankov#
11503609a9SYuri Pankov
12503609a9SYuri Pankov#
13503609a9SYuri Pankov# Copyright 2017 Nexenta Systems, Inc.
14503609a9SYuri Pankov# Copyright 2011 EveryCity Ltd. All rights reserved.
15503609a9SYuri Pankov# Copyright 2013 DEY Storage Systems, Inc.
16503609a9SYuri Pankov# Copyright 2016 Joyent, Inc.
17503609a9SYuri Pankov#
18503609a9SYuri Pankov
19503609a9SYuri PankovCMDDIR=		$(SRC)/cmd/localedef
20503609a9SYuri Pankov
21503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.tools
22503609a9SYuri Pankovinclude		$(CMDDIR)/Makefile.common
23503609a9SYuri Pankov
24503609a9SYuri PankovOBJS +=		avl.o \
25503609a9SYuri Pankov		mkdirp.o
26503609a9SYuri Pankov
27*6cf13876SYuri PankovCPPFLAGS +=	-I$(CMDDIR) -I.
28503609a9SYuri Pankov
29503609a9SYuri Pankov.KEEP_STATE:
30503609a9SYuri Pankov
31503609a9SYuri Pankovall:		$(PROG)
32503609a9SYuri Pankov
33503609a9SYuri Pankovparser.tab.c parser.tab.h: $(CMDDIR)/parser.y $(CMDDIR)/localedef.h
34503609a9SYuri Pankov		$(YACC) $(YFLAGS) $(CMDDIR)/parser.y
35503609a9SYuri Pankov
36503609a9SYuri Pankov$(OBJS):	parser.tab.h
37503609a9SYuri Pankov
38503609a9SYuri Pankov$(PROG):	$(OBJS)
39503609a9SYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
40503609a9SYuri Pankov		$(POST_PROCESS)
41503609a9SYuri Pankov
42503609a9SYuri Pankov%.o:		$(CMDDIR)/%.c
43503609a9SYuri Pankov		$(COMPILE.c) -o $@ $<
44503609a9SYuri Pankov
45503609a9SYuri Pankovavl.o:		$(SRC)/common/avl/avl.c
46503609a9SYuri Pankov		$(COMPILE.c) -o $@ $(SRC)/common/avl/avl.c
47503609a9SYuri Pankov
48503609a9SYuri Pankovmkdirp.o:	$(SRC)/lib/libgen/common/mkdirp.c
49503609a9SYuri Pankov		$(COMPILE.c) -o $@ $(SRC)/lib/libgen/common/mkdirp.c
50503609a9SYuri Pankov
51503609a9SYuri Pankovinstall:	all $(ROOTONBLDMACHPROG)
52503609a9SYuri Pankov
53503609a9SYuri Pankovclean:
54503609a9SYuri Pankov		$(RM) $(PROG) $(CLEANFILES)
55503609a9SYuri Pankov
56503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.targ
57