xref: /illumos-gate/usr/src/tools/zic/Makefile (revision 55d6cb5d63bcf69dfa47b8c41c770a2d34f169b0)
1#
2# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5
6CMDDIR=		$(SRC)/cmd/zic
7
8include		$(SRC)/tools/Makefile.tools
9include		$(CMDDIR)/Makefile.common
10
11CPPFLAGS +=	-I$(CMDDIR)
12
13.KEEP_STATE:
14
15all:		$(PROG)
16
17$(PROG):	$(OBJS)
18		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
19		$(POST_PROCESS)
20
21%.o:		$(CMDDIR)/%.c
22		$(COMPILE.c) -o $@ $<
23
24install:	all $(ROOTONBLDMACHPROG)
25
26clean:
27		$(RM) $(PROG) $(OBJS)
28
29include		$(SRC)/tools/Makefile.targ
30