Makefile revision 67e3a03ed4a2813074d36330f062ed6e593a4937
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix#
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix# CDDL HEADER START
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix#
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# The contents of this file are subject to the terms of the
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# Common Development and Distribution License (the "License").
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# You may not use this file except in compliance with the License.
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix#
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# or http://www.opensolaris.org/os/licensing.
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# See the License for the specific language governing permissions
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# and limitations under the License.
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix#
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# When distributing Covered Code, include this CDDL HEADER in each
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# If applicable, add the following below this CDDL HEADER, with the
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# fields enclosed by brackets "[]" replaced with your own identifying
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix# information: Portions Copyright [yyyy] [name of copyright owner]
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix#
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix# CDDL HEADER END
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix#
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix#
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix# Use is subject to license terms.
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix#
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix# ident "%Z%%M% %I% %E% SMI"
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix#
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixPROG= ed
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixXPG4PROG= ed
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixXPG6PROG= ed
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixEDOBJ= ed.o compile.o
315c94766449a5049ab19ccaf3b3c9dc9517bc0dcilixXPG4EDOBJ= edobjs.xpg4/ed.o edobjs.xpg4/compile.o values-xpg4.o
b2dfb5760b4ff97eabdaa0272ba7ed7f0dd8c6ebcilixXPG6EDOBJ= edobjs.xpg6/ed.o edobjs.xpg6/compile.o values-xpg6.o
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixOBJS= $(EDOBJ) $(XPG4EDOBJ) $(XPG6EDOBJ)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixSRCS= ./ed.c ../expr/compile.c
e0c254c4445696f4e88690a2d35da1e3a760867ecilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixPOFILES= $(EDOBJ:%.o=%.po)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
36f768de5093f93de10e3b516a2b6f8b74f41513cilixinclude ../Makefile.cmd
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixCFLAGS += $(CCVERBOSE)
5341d52bd89ffc1587300ac4210afb64661af05dcilix$(XPG4) := CFLAGS += -DXPG4
69f5c4dd44b76696be7d8d27f4059d420bd98bcccilix$(XPG6) := CFLAGS += -DXPG6 -I$(SRC)/lib/libc/inc
69f5c4dd44b76696be7d8d27f4059d420bd98bcccilixlint := LDLIBS += -lgen -lcrypt
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixLDLIBS += -lmapmalloc -lgen -lcrypt_i
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilixXGETFLAGS += -a -x ed.xcl
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixMAPFILE.INT = ../expr/mapfile-intf
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixLDFLAGS += $(MAPFILE.INT:%=-M%)
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilix
1d882e9533b20c0e0783e9d17fcd3f5466fa422fcilixPOFILE= ed_cmd.po
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix%.po: ../expr/%.c
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(COMPILE.cpp) $< > $*.c.i
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(XGETTEXT) $(XGETFLAGS) $*.c.i
71dea9c6fbd2fd6d73cce6f1ed96151d51ada58fcilix $(MV) messages.po $@
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix.KEEP_STATE:
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixall: $(PROG) $(XPG4) $(XPG6)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix$(PROG): $(EDOBJ) $(MAPFILE.INT)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(LINK.c) $(EDOBJ) -o $@ $(LDLIBS)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(POST_PROCESS)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix$(XPG4): edobjs.xpg4 $(XPG4EDOBJ) $(MAPFILE.INT)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(LINK.c) $(XPG4EDOBJ) -o $@ $(LDLIBS)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(POST_PROCESS)
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
69f5c4dd44b76696be7d8d27f4059d420bd98bcccilix$(XPG6): edobjs.xpg6 $(XPG6EDOBJ) $(MAPFILE.INT)
69f5c4dd44b76696be7d8d27f4059d420bd98bcccilix $(LINK.c) $(XPG6EDOBJ) -o $@ $(LDLIBS)
13223d251a0eca100512280a15dc9b2213a28809cilix $(POST_PROCESS)
13223d251a0eca100512280a15dc9b2213a28809cilix
13223d251a0eca100512280a15dc9b2213a28809cilixcompile.o: ../expr/compile.c
13223d251a0eca100512280a15dc9b2213a28809cilix $(COMPILE.c) -o $@ ../expr/compile.c
71dea9c6fbd2fd6d73cce6f1ed96151d51ada58fcilix
71dea9c6fbd2fd6d73cce6f1ed96151d51ada58fcilixedobjs.xpg4/%.o: %.c
13223d251a0eca100512280a15dc9b2213a28809cilix $(COMPILE.c) -o $@ $<
e2d40573e3eece043a9e2607f851ed1d32251242cilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixedobjs.xpg4/%.o: ../expr/compile.c
13095970af601fa273fa8a6ca4ed548a01c84e70buliabyak $(COMPILE.c) -o $@ $<
32461c0cc717f51ba84908e1eea5b1ee150cf27ecilix
7ed5165239990ad860859dd38806e0ac1736b8eecilixedobjs.xpg6/%.o: %.c
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(COMPILE.c) -o $@ $<
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixedobjs.xpg6/%.o: ../expr/compile.c
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix $(COMPILE.c) -o $@ $<
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixedobjs.xpg4:
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix -@mkdir -p $@
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilixedobjs.xpg6:
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix -@mkdir -p $@
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix
4358ff6156766a315e38e72a5c3c83d6d5f7486bcilix$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
$(RM) $(ROOTBIN)/red
$(LN) $(ROOTBIN)/ed $(ROOTBIN)/red
values-xpg4.o: ../../lib/common/common/values-xpg4.c
$(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
values-xpg6.o: ../../lib/common/common/values-xpg6.c
$(COMPILE.c) -o $@ ../../lib/common/common/values-xpg6.c
clean:
-@rm -rf $(OBJS) $(XPG4) $(XPG6) edobjs.xpg4 edobjs.xpg6 \
compile.c.i
lint: lint_PROG
include ../Makefile.targ