xref: /illumos-gate/usr/src/tools/mandoc/Makefile (revision 4585130b259133a26efae68275dbe56b08366deb)
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#
13*4585130bSYuri Pankov# Copyright 2017 Nexenta Systems, Inc.
1495c635efSGarrett D'Amore#
1595c635efSGarrett D'Amore
1695c635efSGarrett D'AmoreCMDDIR=		$(SRC)/cmd/mandoc
17*4585130bSYuri PankovLCDIR=		$(SRC)/lib/libc/port
1895c635efSGarrett D'Amore
19503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.tools
20260e9a87SYuri Pankovinclude		$(CMDDIR)/Makefile.common
2195c635efSGarrett D'Amore
22*4585130bSYuri PankovOBJS +=		reallocarray.o \
23*4585130bSYuri Pankov		strtonum.o
24*4585130bSYuri Pankov
2595c635efSGarrett D'Amore.KEEP_STATE:
2695c635efSGarrett D'Amore
2795c635efSGarrett D'Amoreall:		$(PROG)
2895c635efSGarrett D'Amore
29503609a9SYuri Pankovinstall:	all $(ROOTONBLDMACHPROG)
30260e9a87SYuri Pankov
31260e9a87SYuri Pankovclean:
32260e9a87SYuri Pankov		$(RM) $(PROG) $(OBJS)
33260e9a87SYuri Pankov
34260e9a87SYuri Pankov$(PROG):	$(OBJS)
35260e9a87SYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36260e9a87SYuri Pankov		$(POST_PROCESS)
3795c635efSGarrett D'Amore
3895c635efSGarrett D'Amore%.o:		$(CMDDIR)/%.c
3995c635efSGarrett D'Amore		$(COMPILE.c) -o $@ $<
4095c635efSGarrett D'Amore
41*4585130bSYuri Pankov%.o:		$(LCDIR)/gen/%.c
42*4585130bSYuri Pankov		$(COMPILE.c) -o $@ $<
43*4585130bSYuri Pankov
44503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.targ
45