summaryrefslogtreecommitdiff
path: root/usr/src/tools/zic/Makefile
blob: d86e88112cb1ae966b9b02c604a5676fd9ae75a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

CMDDIR=		$(SRC)/cmd/zic

include		$(SRC)/tools/Makefile.tools
include		$(CMDDIR)/Makefile.common

CPPFLAGS +=	-I$(CMDDIR)

.KEEP_STATE:

all:		$(PROG)

$(PROG):	$(OBJS)
		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
		$(POST_PROCESS)

%.o:		$(CMDDIR)/%.c
		$(COMPILE.c) -o $@ $<

install:	all $(ROOTONBLDMACHPROG)

clean:
		$(RM) $(PROG) $(OBJS)

include		$(SRC)/tools/Makefile.targ