a4cd5630b0
non-i386, non-unix, and generatable files have been trimmed, but can easily be added in later if needed. gcc-2.7.2.1 will follow shortly, it's a very small delta to this and it's handy to have both available for reference for such little cost. The freebsd-specific changes will then be committed, and once the dust has settled, the bmakefiles will be committed to use this code.
32 lines
947 B
Plaintext
32 lines
947 B
Plaintext
# Define CC and OLDCC as the same, so that the tests:
|
|
# if [ x"$(OLDCC)" = x"$(CC)" ] ...
|
|
#
|
|
# will succeed (if OLDCC != CC, it is assumed that GCC is
|
|
# being used in secondary stage builds).
|
|
|
|
BUILD =
|
|
CC = $(OLDCC)
|
|
CLIB = -lld
|
|
X_CFLAGS = $(DEB_OPT) $(MSTATS) $(SHLIB) $(X_DEFINES)
|
|
X_CFLAGS_NODEBUG = $(NO_DEBUG) $(MSTATS) $(OPT) $(PROFILE) $(SHLIB) $(X_DEFINES) $(XCFLAGS)
|
|
CPP_ABORT = # -Dabort=fancy_abort
|
|
CPPFLAGS = $(CPP_ABORT) $(SYSTEM_INCLUDES)
|
|
DEB_OPT = $(OPT) $(DEBUG) $(PROFILE)
|
|
DEBUG =
|
|
DEBUG_COLLECT = # -DDEBUG
|
|
CCLIBFLAGS = -O -DNO_HALF_PIC
|
|
GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -B./ -DPOSIX -DNO_HALF_PIC
|
|
INSTALL = installbsd -c
|
|
LDFLAGS =
|
|
MSTATS = # -mstats
|
|
OLDCC = /usr/ccs/gcc/gcc
|
|
OPT = -O
|
|
PROFILE =
|
|
SHLIB = -pic-none
|
|
SYSTEM_INCLUDES = # -I${BUILD}/usr/include
|
|
X_DEFINES = -Dvfork=fork
|
|
|
|
libdir = /usr/ccs
|
|
mandir = /usr/ccs/gcc/$(target)/$(version)
|
|
bindir = /usr/ccs/gcc/$(target)/$(version)
|