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