xref: /illumos-gate/usr/src/cmd/sed/Makefile (revision 4e81fcfe0bcce62e29d80c1e391d9a241c0ee3b1)
1*84441f85SGarrett D'Amore#
2*84441f85SGarrett D'Amore# This file and its contents are supplied under the terms of the
3*84441f85SGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
4*84441f85SGarrett D'Amore# You may only use this file in accordance with the terms of version
5*84441f85SGarrett D'Amore# 1.0 of the CDDL.
6*84441f85SGarrett D'Amore#
7*84441f85SGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
8*84441f85SGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
9*84441f85SGarrett D'Amore# http://www.illumos.org/license/CDDL.
10*84441f85SGarrett D'Amore#
11*84441f85SGarrett D'Amore
12*84441f85SGarrett D'Amore#
13*84441f85SGarrett D'Amore# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
14*84441f85SGarrett D'Amore#
15*84441f85SGarrett D'Amore
16*84441f85SGarrett D'Amore
17*84441f85SGarrett D'AmorePROG=		sed
18*84441f85SGarrett D'AmoreXPG4PROG=	sed
19*84441f85SGarrett D'AmoreOBJS=		main.o compile.o misc.o process.o
20*84441f85SGarrett D'AmoreSRCS=		$(OBJS:%.o=%.c)
21*84441f85SGarrett D'AmorePOFILES=	$(OBJS:%.o=%.po)
22*84441f85SGarrett D'Amore
23*84441f85SGarrett D'Amoreinclude ../Makefile.cmd
24*84441f85SGarrett D'Amore
25*84441f85SGarrett D'AmoreCPPFLAGS +=	-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
26*84441f85SGarrett D'Amore
27*84441f85SGarrett D'AmoreCFLAGS += $(CCVERBOSE)
28*84441f85SGarrett D'Amore
29*84441f85SGarrett D'Amore.KEEP_STATE:
30*84441f85SGarrett D'Amore
31*84441f85SGarrett D'Amore
32*84441f85SGarrett D'Amoreall: $(PROG)
33*84441f85SGarrett D'Amore
34*84441f85SGarrett D'Amore$(PROG): $(OBJS)
35*84441f85SGarrett D'Amore	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36*84441f85SGarrett D'Amore	$(POST_PROCESS)
37*84441f85SGarrett D'Amore
38*84441f85SGarrett D'Amore$(POFILE):	$(POFILES)
39*84441f85SGarrett D'Amore	$(RM) $@
40*84441f85SGarrett D'Amore	$(CAT) $(POFILES) > $@
41*84441f85SGarrett D'Amore
42*84441f85SGarrett D'Amore$(ROOTXPG4PROG):
43*84441f85SGarrett D'Amore	$(RM) $@
44*84441f85SGarrett D'Amore	$(LN) -s ../../bin/$(PROG) $@
45*84441f85SGarrett D'Amore
46*84441f85SGarrett D'Amoreinstall: all $(DIRS) $(ROOTPROG) $(ROOTXPG4PROG)
47*84441f85SGarrett D'Amore
48*84441f85SGarrett D'Amoreclean:
49*84441f85SGarrett D'Amore	$(RM) $(OBJS) $(POFILES)
50*84441f85SGarrett D'Amore
51*84441f85SGarrett D'Amoreinclude ../Makefile.targ
52