xref: /titanic_52/usr/src/tools/zic/Makefile (revision 4a5d661a82b942b6538acd26209d959ce98b593a)
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