8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / tools / localedef / Makefile
blobee814f48829f6ad264e793f615948b3b61113ef6
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.
19 CMDDIR= $(SRC)/cmd/localedef
21 include $(SRC)/tools/Makefile.tools
22 include $(CMDDIR)/Makefile.common
24 OBJS += avl.o \
25 mkdirp.o
27 CPPFLAGS += -I$(CMDDIR) -I.
29 .KEEP_STATE:
31 all: $(PROG)
33 parser.tab.c parser.tab.h: $(CMDDIR)/parser.y $(CMDDIR)/localedef.h
34 $(YACC) $(YFLAGS) $(CMDDIR)/parser.y
36 $(OBJS): parser.tab.h
38 $(PROG): $(OBJS)
39 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
40 $(POST_PROCESS)
42 %.o: $(CMDDIR)/%.c
43 $(COMPILE.c) -o $@ $<
45 avl.o: $(SRC)/common/avl/avl.c
46 $(COMPILE.c) -o $@ $(SRC)/common/avl/avl.c
48 mkdirp.o: $(SRC)/lib/libgen/common/mkdirp.c
49 $(COMPILE.c) -o $@ $(SRC)/lib/libgen/common/mkdirp.c
51 install: all $(ROOTONBLDMACHPROG)
53 clean:
54 $(RM) $(PROG) $(CLEANFILES)
56 include $(SRC)/tools/Makefile.targ