xref: /titanic_50/usr/src/tools/zic/Makefile (revision 9f9b7953c22ba8b0f8372bd791fc6ecc63c69409)
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