Recover improvements in 4.4lite version that were clobbered by the
previous commit: + Everything is initialized using ?= instead of =. + Nicer formatting (more white space). + .c: rule. Add macros ECHO and ECHODIR. Both are normally `echo', but when the make flags include -s, ECHO is set to `true' and when the make flags include two or more -s's ECHODIR is set to `true'. @${ECHO} should be used instead of @echo in most cases. ${ECHODIR} is intended to be used mainly for messages about directory names.
This commit is contained in:
parent
825be05ec4
commit
415bccaa8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2340
@ -1,52 +1,72 @@
|
|||||||
# from: @(#)sys.mk 5.11 (Berkeley) 3/13/91
|
# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94
|
||||||
# $Id: sys.mk,v 1.7 1994/06/13 21:02:48 csgr Exp $
|
# $Id: sys.mk,v 1.2 1994/08/04 21:09:27 wollman Exp $
|
||||||
|
|
||||||
unix= We run FreeBSD, not UNIX.
|
unix ?= We run FreeBSD, not UNIX.
|
||||||
|
|
||||||
.SUFFIXES: .out .a .ln .o .c .cc .cxx .C .F .f .e .r .y .l .s .cl .p .h
|
.SUFFIXES: .out .a .ln .o .c .cc .cxx .C .F .f .e .r .y .l .s .cl .p .h
|
||||||
|
|
||||||
.LIBS: .a
|
.LIBS: .a
|
||||||
|
|
||||||
AR= ar
|
AR ?= ar
|
||||||
ARFLAGS= rl
|
ARFLAGS ?= rl
|
||||||
RANLIB= ranlib
|
RANLIB ?= ranlib
|
||||||
|
|
||||||
AS= as
|
AS ?= as
|
||||||
AFLAGS=
|
AFLAGS ?=
|
||||||
|
|
||||||
CC= cc
|
CC ?= cc
|
||||||
CFLAGS= -O
|
|
||||||
|
|
||||||
CXX= g++
|
.if ${MACHINE} == "sparc"
|
||||||
CXXFLAGS= ${CXXINCLUDES} ${CFLAGS}
|
CFLAGS ?= -O4
|
||||||
|
.else
|
||||||
|
CFLAGS ?= -O
|
||||||
|
.endif
|
||||||
|
|
||||||
CPP= cpp
|
CXX ?= g++
|
||||||
|
CXXFLAGS ?= ${CXXINCLUDES} ${CFLAGS}
|
||||||
|
|
||||||
FC= f77
|
CPP ?= cpp
|
||||||
FFLAGS= -O
|
|
||||||
EFLAGS=
|
|
||||||
|
|
||||||
LEX= lex
|
.if ${.MAKEFLAGS:M-s} == ""
|
||||||
LFLAGS=
|
ECHO ?= echo
|
||||||
|
ECHODIR ?= echo
|
||||||
|
.else
|
||||||
|
ECHO ?= true
|
||||||
|
.if ${.MAKEFLAGS:M-s} == "-s"
|
||||||
|
ECHODIR ?= echo
|
||||||
|
.else
|
||||||
|
ECHODIR ?= true
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
LD= ld
|
FC ?= f77
|
||||||
LDFLAGS=
|
FFLAGS ?= -O
|
||||||
|
EFLAGS ?=
|
||||||
|
|
||||||
LINT= lint
|
LEX ?= lex
|
||||||
LINTFLAGS= -chapbx
|
LFLAGS ?=
|
||||||
|
|
||||||
MAKE= make
|
LD ?= ld
|
||||||
|
LDFLAGS ?=
|
||||||
|
|
||||||
PC= pc
|
LINT ?= lint
|
||||||
PFLAGS=
|
LINTFLAGS ?= -chapbx
|
||||||
|
|
||||||
RC= f77
|
MAKE ?= make
|
||||||
RFLAGS=
|
|
||||||
|
|
||||||
SHELL= sh
|
PC ?= pc
|
||||||
|
PFLAGS ?=
|
||||||
|
|
||||||
YACC= yacc
|
RC ?= f77
|
||||||
YFLAGS=-d
|
RFLAGS ?=
|
||||||
|
|
||||||
|
SHELL ?= sh
|
||||||
|
|
||||||
|
YACC ?= yacc
|
||||||
|
YFLAGS ?= -d
|
||||||
|
|
||||||
|
.c:
|
||||||
|
${CC} ${CFLAGS} ${.IMPSRC} -o ${.TARGET}
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
${CC} ${CFLAGS} -c ${.IMPSRC}
|
${CC} ${CFLAGS} -c ${.IMPSRC}
|
||||||
|
Loading…
Reference in New Issue
Block a user