xref: /illumos-gate/usr/src/tools/zic/Makefile (revision efe51d0cc2398b9ac179568b63a44e4bf295b8e2)
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