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
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
27 CPPFLAGS
+= -I
$(CMDDIR
) -I.
33 parser.tab.c parser.tab.h
: $(CMDDIR
)/parser.y
$(CMDDIR
)/localedef.h
34 $(YACC
) $(YFLAGS
) $(CMDDIR
)/parser.y
39 $(LINK.c
) $(OBJS
) -o
$@
$(LDLIBS
)
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
)
54 $(RM
) $(PROG
) $(CLEANFILES
)
56 include $(SRC
)/tools
/Makefile.targ