xref: /illumos-gate/usr/src/tools/tic/Makefile (revision 503609a9497e27f206d815a06ce90a747d2ce573)
1*503609a9SYuri Pankov#
2*503609a9SYuri Pankov# CDDL HEADER START
3*503609a9SYuri Pankov#
4*503609a9SYuri Pankov# The contents of this file are subject to the terms of the
5*503609a9SYuri Pankov# Common Development and Distribution License (the "License").
6*503609a9SYuri Pankov# You may not use this file except in compliance with the License.
7*503609a9SYuri Pankov#
8*503609a9SYuri Pankov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*503609a9SYuri Pankov# or http://www.opensolaris.org/os/licensing.
10*503609a9SYuri Pankov# See the License for the specific language governing permissions
11*503609a9SYuri Pankov# and limitations under the License.
12*503609a9SYuri Pankov#
13*503609a9SYuri Pankov# When distributing Covered Code, include this CDDL HEADER in each
14*503609a9SYuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*503609a9SYuri Pankov# If applicable, add the following below this CDDL HEADER, with the
16*503609a9SYuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
17*503609a9SYuri Pankov# information: Portions Copyright [yyyy] [name of copyright owner]
18*503609a9SYuri Pankov#
19*503609a9SYuri Pankov# CDDL HEADER END
20*503609a9SYuri Pankov#
21*503609a9SYuri Pankov
22*503609a9SYuri Pankov#
23*503609a9SYuri Pankov# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*503609a9SYuri Pankov# Use is subject to license terms.
25*503609a9SYuri Pankov# Copyright 2017 Nexenta Systems, Inc.
26*503609a9SYuri Pankov#
27*503609a9SYuri Pankov
28*503609a9SYuri PankovCMDDIR=		$(SRC)/cmd/tic
29*503609a9SYuri Pankov
30*503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.tools
31*503609a9SYuri Pankovinclude		$(CMDDIR)/Makefile.common
32*503609a9SYuri Pankov
33*503609a9SYuri PankovMAPFILES=	$(CMDDIR)/$(MAPFILE.INT)
34*503609a9SYuri Pankov
35*503609a9SYuri Pankov.KEEP_STATE:
36*503609a9SYuri Pankov
37*503609a9SYuri Pankovall:		$(PROG)
38*503609a9SYuri Pankov
39*503609a9SYuri Pankov$(PROG):	$(OBJS) $(MAPFILES)
40*503609a9SYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
41*503609a9SYuri Pankov		$(POST_PROCESS)
42*503609a9SYuri Pankov
43*503609a9SYuri Pankov%.o:		$(CMDDIR)/%.c
44*503609a9SYuri Pankov		$(COMPILE.c) -o $@ $<
45*503609a9SYuri Pankov
46*503609a9SYuri Pankovinstall:	all $(ROOTONBLDMACHPROG)
47*503609a9SYuri Pankov
48*503609a9SYuri Pankovclean:
49*503609a9SYuri Pankov		$(RM) $(PROG) $(OBJS)
50*503609a9SYuri Pankov
51*503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.targ
52