Module Name: src
Committed By: rin
Date: Mon Nov 6 03:37:52 UTC 2017
Modified Files:
src/external/bsd/nvi/usr.bin/nvi: Makefile
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/nvi/usr.bin/nvi/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/nvi/usr.bin/nvi/Makefile
diff -u src/external/bsd/nvi/usr.bin/nvi/Makefile:1.8 src/external/bsd/nvi/usr.bin/nvi/Makefile:1.9
--- src/external/bsd/nvi/usr.bin/nvi/Makefile:1.8 Mon Nov 6 03:27:34 2017
+++ src/external/bsd/nvi/usr.bin/nvi/Makefile Mon Nov 6 03:37:52 2017
@@ -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 @@ SRCS= api.c cl_bsd.c cl_funcs.c cl_main.
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 @@ SRCS= api.c cl_bsd.c cl_funcs.c cl_main.
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 @@ DPSRCS+=${i}_extern.h
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 \