1# 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. 6# 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. 10# 11 12# 13# Copyright 2017 Nexenta Systems, Inc. 14# 15 16CMDDIR= $(SRC)/cmd/mandoc 17LCDIR= $(SRC)/lib/libc/port 18 19include $(SRC)/tools/Makefile.tools 20include $(CMDDIR)/Makefile.common 21 22OBJS += fts.o \ 23 reallocarray.o \ 24 strtonum.o 25 26CPPFLAGS += -I. -include fts.h 27 28.KEEP_STATE: 29 30all: $(PROG) 31 32install: all $(ROOTONBLDMACHPROG) 33 34clean: 35 $(RM) $(PROG) $(OBJS) 36 37$(PROG): $(OBJS) 38 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 39 $(POST_PROCESS) 40 41%.o: $(CMDDIR)/%.c 42 $(COMPILE.c) -o $@ $< 43 44%.o: $(LCDIR)/gen/%.c 45 $(COMPILE.c) -o $@ $< 46 47include $(SRC)/tools/Makefile.targ 48