Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/usr.bin/nvi No need to compile in ip_*.c an...
details: https://anonhg.NetBSD.org/src/rev/7474644e9c55
branches: trunk
changeset: 357327:7474644e9c55
user: rin <rin%NetBSD.org@localhost>
date: Mon Nov 06 03:37:52 2017 +0000
description:
No need to compile in ip_*.c and ipc_*.c to nvi, although they are
necessary for generation of header files.
Reduce 5% of binary size on amd64.
diffstat:
external/bsd/nvi/usr.bin/nvi/Makefile | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 47d46c0436b3 -r 7474644e9c55 external/bsd/nvi/usr.bin/nvi/Makefile
--- a/external/bsd/nvi/usr.bin/nvi/Makefile Mon Nov 06 03:27:34 2017 +0000
+++ b/external/bsd/nvi/usr.bin/nvi/Makefile Mon Nov 06 03:37:52 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2017/11/06 03:27:34 rin Exp $
+# $NetBSD: Makefile,v 1.9 2017/11/06 03:37:52 rin Exp $
.include <bsd.own.mk>
@@ -34,8 +34,6 @@
ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c ex_tcl.c \
ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
ex_write.c ex_yank.c ex_z.c exf.c getc.c gs.c \
- ip_funcs.c ip_read.c ip_screen.c ip_term.c \
- ip_run.c ip_send.c ip_trans.c ipc_cmd.c ipc_method.c \
key.c trace.c \
main.c mark.c msg.c nothread.c options.c options_f.c put.c recover.c \
screen.c search.c seq.c util.c v_at.c v_ch.c v_cmd.c v_delete.c \
@@ -46,6 +44,9 @@
v_z.c v_zexit.c vi.c vs_line.c vs_msg.c vs_refresh.c \
vs_relative.c vs_smap.c vs_split.c
+NOTUSED=ip_funcs.c ip_read.c ip_screen.c ip_term.c \
+ ip_run.c ip_send.c ip_trans.c ipc_cmd.c ipc_method.c
+
# For wide char support
.if ${USE_WIDECHAR} == "yes"
SRCS+= regcomp.c regerror.c regexec.c regfree.c
@@ -85,7 +86,7 @@
CLEANFILES+=${i}_extern.h
# does not work, DIST isn't set yet here
#_${i}_SRCS != echo ${DIST}/${i}/*.c ${DIST}/${i}/*.xs
-${i}_extern.h: ${SRCS}
+${i}_extern.h: ${SRCS} ${NOTUSED}
${_MKTARGET_CREATE}
@${TOOL_SED} -n "s/^ \* PUBLIC: \(.*\)/\1/p" ${.ALLSRC:M${DIST}/$i/*} > ${.TARGET}.tmp
@if cmp -s ${.TARGET}.tmp ${.TARGET}; then \
Home |
Main Index |
Thread Index |
Old Index