xref: /illumos-gate/usr/src/tools/tic/Makefile (revision 5801b0f0)
1503609a9SYuri Pankov#
2503609a9SYuri Pankov# CDDL HEADER START
3503609a9SYuri Pankov#
4503609a9SYuri Pankov# The contents of this file are subject to the terms of the
5503609a9SYuri Pankov# Common Development and Distribution License (the "License").
6503609a9SYuri Pankov# You may not use this file except in compliance with the License.
7503609a9SYuri Pankov#
8503609a9SYuri Pankov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9503609a9SYuri Pankov# or http://www.opensolaris.org/os/licensing.
10503609a9SYuri Pankov# See the License for the specific language governing permissions
11503609a9SYuri Pankov# and limitations under the License.
12503609a9SYuri Pankov#
13503609a9SYuri Pankov# When distributing Covered Code, include this CDDL HEADER in each
14503609a9SYuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15503609a9SYuri Pankov# If applicable, add the following below this CDDL HEADER, with the
16503609a9SYuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
17503609a9SYuri Pankov# information: Portions Copyright [yyyy] [name of copyright owner]
18503609a9SYuri Pankov#
19503609a9SYuri Pankov# CDDL HEADER END
20503609a9SYuri Pankov#
21503609a9SYuri Pankov
22503609a9SYuri Pankov#
23503609a9SYuri Pankov# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24503609a9SYuri Pankov# Use is subject to license terms.
25503609a9SYuri Pankov# Copyright 2017 Nexenta Systems, Inc.
26503609a9SYuri Pankov#
27503609a9SYuri Pankov
28503609a9SYuri PankovCMDDIR=		$(SRC)/cmd/tic
29503609a9SYuri Pankov
30503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.tools
31503609a9SYuri Pankovinclude		$(CMDDIR)/Makefile.common
32503609a9SYuri Pankov
33503609a9SYuri PankovMAPFILES=	$(CMDDIR)/$(MAPFILE.INT)
34*5801b0f0SToomas SoomeNATIVE_LIBS +=	libcurses.so
35503609a9SYuri Pankov
36503609a9SYuri Pankov.KEEP_STATE:
37503609a9SYuri Pankov
38503609a9SYuri Pankovall:		$(PROG)
39503609a9SYuri Pankov
40503609a9SYuri Pankov$(PROG):	$(OBJS) $(MAPFILES)
41503609a9SYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42503609a9SYuri Pankov		$(POST_PROCESS)
43503609a9SYuri Pankov
44503609a9SYuri Pankov%.o:		$(CMDDIR)/%.c
45503609a9SYuri Pankov		$(COMPILE.c) -o $@ $<
46503609a9SYuri Pankov
47503609a9SYuri Pankovinstall:	all $(ROOTONBLDMACHPROG)
48503609a9SYuri Pankov
49503609a9SYuri Pankovclean:
50503609a9SYuri Pankov		$(RM) $(PROG) $(OBJS)
51503609a9SYuri Pankov
52503609a9SYuri Pankovinclude		$(SRC)/tools/Makefile.targ
53