xref: /titanic_44/usr/src/tools/zic/Makefile (revision a60349c89adffc0902b2353230891d8e7f2b24d9)
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