195c635efSGarrett D'Amore# 295c635efSGarrett D'Amore# This file and its contents are supplied under the terms of the 395c635efSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0. 495c635efSGarrett D'Amore# You may only use this file in accordance with the terms of version 595c635efSGarrett D'Amore# 1.0 of the CDDL. 695c635efSGarrett D'Amore# 795c635efSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this 895c635efSGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at 995c635efSGarrett D'Amore# http://www.illumos.org/license/CDDL. 1095c635efSGarrett D'Amore# 1195c635efSGarrett D'Amore 1295c635efSGarrett D'Amore# 134585130bSYuri Pankov# Copyright 2017 Nexenta Systems, Inc. 14*10f4f8a6SJerry Jelinek# Copyright 2017 Joyent, Inc. 1595c635efSGarrett D'Amore# 1695c635efSGarrett D'Amore 1795c635efSGarrett D'AmoreCMDDIR= $(SRC)/cmd/mandoc 184585130bSYuri PankovLCDIR= $(SRC)/lib/libc/port 1995c635efSGarrett D'Amore 20503609a9SYuri Pankovinclude $(SRC)/tools/Makefile.tools 21260e9a87SYuri Pankovinclude $(CMDDIR)/Makefile.common 2295c635efSGarrett D'Amore 23a40ea1a7SYuri PankovOBJS += fts.o \ 24a40ea1a7SYuri Pankov reallocarray.o \ 254585130bSYuri Pankov strtonum.o 264585130bSYuri Pankov 27a40ea1a7SYuri PankovCPPFLAGS += -I. -include fts.h 28*10f4f8a6SJerry JelinekCPPFLAGS += -I$(NATIVE_ADJUNCT)/include 29*10f4f8a6SJerry JelinekLDFLAGS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib 30a40ea1a7SYuri Pankov 3195c635efSGarrett D'Amore.KEEP_STATE: 3295c635efSGarrett D'Amore 3395c635efSGarrett D'Amoreall: $(PROG) 3495c635efSGarrett D'Amore 35503609a9SYuri Pankovinstall: all $(ROOTONBLDMACHPROG) 36260e9a87SYuri Pankov 37260e9a87SYuri Pankovclean: 38260e9a87SYuri Pankov $(RM) $(PROG) $(OBJS) 39260e9a87SYuri Pankov 40260e9a87SYuri Pankov$(PROG): $(OBJS) 41260e9a87SYuri Pankov $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 42260e9a87SYuri Pankov $(POST_PROCESS) 4395c635efSGarrett D'Amore 4495c635efSGarrett D'Amore%.o: $(CMDDIR)/%.c 4595c635efSGarrett D'Amore $(COMPILE.c) -o $@ $< 4695c635efSGarrett D'Amore 474585130bSYuri Pankov%.o: $(LCDIR)/gen/%.c 484585130bSYuri Pankov $(COMPILE.c) -o $@ $< 494585130bSYuri Pankov 50503609a9SYuri Pankovinclude $(SRC)/tools/Makefile.targ 51