Makefile revision 95c635efb7c3b86efc493e0447eaec7aecca3f0f
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# This file and its contents are supplied under the terms of the
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# Common Development and Distribution License ("CDDL"), version 1.0.
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# You may only use this file in accordance with the terms of version
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# 1.0 of the CDDL.
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews#
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews# A full copy of the text of the CDDL should have accompanied this
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# source. A copy of the CDDL is also available via the Internet at
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# http://www.illumos.org/license/CDDL.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsPROG= mandoc
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCMDDIR= $(SRC)/cmd/mandoc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../Makefile.tools
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrewsinclude $(SRC)/cmd/mandoc/Makefile.common
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsSRCS= $(mandoc_OBJS:%.o=$(CMDDIR)/%.c)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCLEANFILES= $(PROG) $(OBJS)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsOBJS= $(mandoc_OBJS)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsPROG= mandoc
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews.KEEP_STATE:
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrewsinstall: all .WAIT $(ROOTONBLDMACHPROG)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews$(PROG): $(OBJS)
c6d4f781529d2f28693546b25b2967d44ec89e60Mark Andrews $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(POST_PROCESS)
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall: $(PROG)
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrews
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews%.o: $(CMDDIR)/%.c
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews $(COMPILE.c) -o $@ $<
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ede29aeb412c5448ab9a2028763ae08e7887ca74Mark Andrews%.o: $(LIBDIR)/%.c
1eb1e1e838d2ea00b166c918bf50764a95826be8Mark Andrews $(COMPILE.c) -o $@ $<
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrewsclean:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) $(CLEANFILES)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrewsinclude ../Makefile.targ
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews