From 41f8931571d84917b32a9538b509d4d7c5456ca8 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sun, 31 Aug 2003 15:20:17 +0000 Subject: Whitespace diff reduction between bsd.prog.mk and bsd.lib.mk outputs. --- share/mk/bsd.lib.mk | 2 ++ share/mk/bsd.prog.mk | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 4ad78316247b..58bce19512b8 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -21,7 +21,9 @@ SHLIB_LINK?= ${SHLIB_NAME:R} SONAME?= ${SHLIB_NAME} .endif +.if defined(CRUNCH_CFLAGS) CFLAGS+= ${CRUNCH_CFLAGS} +.endif .if defined(DEBUG_FLAGS) CFLAGS+= ${DEBUG_FLAGS} diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 43bb9e8e2c47..8ae4063a3b65 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -5,8 +5,17 @@ .SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm -CFLAGS+=${COPTS} ${DEBUG_FLAGS} +.if defined(COPTS) +CFLAGS+=${COPTS} +.endif + +.if defined(DEBUG_FLAGS) +CFLAGS+=${DEBUG_FLAGS} +.endif + +.if defined(CRUNCH_CFLAGS) CFLAGS+=${CRUNCH_CFLAGS} +.endif .if !defined(DEBUG_FLAGS) STRIP?= -s @@ -79,7 +88,13 @@ all: objwarn ${PROG} ${SCRIPTS} all: _manpages .endif -CLEANFILES+= ${PROG} ${OBJS} +.if defined(PROG) +CLEANFILES+= ${PROG} +.endif + +.if defined(OBJS) +CLEANFILES+= ${OBJS} +.endif .if defined(PROG) _EXTRADEPEND: -- cgit v1.2.3