diff options
author | peter <peter@FreeBSD.org> | 1996-09-18 05:35:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-18 05:35:50 +0000 |
commit | d4691e641ba47cb86eef80f5c879e13f9d961724 (patch) | |
tree | 5b7ea73fc49c8998d9dc87d3eeff5b96439e6856 /contrib/gcc/build-make | |
download | FreeBSD-src-d4691e641ba47cb86eef80f5c879e13f9d961724.zip FreeBSD-src-d4691e641ba47cb86eef80f5c879e13f9d961724.tar.gz |
Import of unmodified (but trimmed) gcc-2.7.2. The bigger parts of the
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.
Diffstat (limited to 'contrib/gcc/build-make')
-rw-r--r-- | contrib/gcc/build-make | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/gcc/build-make b/contrib/gcc/build-make new file mode 100644 index 0000000..1d6e18b --- /dev/null +++ b/contrib/gcc/build-make @@ -0,0 +1,32 @@ +# We have to use the cross-compiler we just built to compile it. +CC = gcc -b $(target) + +# Need those to compile binaries running on host machine. +# It is configured by +# +# configure --host=target_cpu-target_os \ +# --target=host=target_cpu-target_os --build=host_cpu-host_os +# +# That HOST stuff has to be taken care of very carefully. +HOST_PREFIX=l- +HOST_PREFIX_1=$(HOST_PREFIX) +HOST_CC=$(CC) -b $(build) +HOST_CFLAGS=$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) +HOST_CLIB= +HOST_LDFLAGS=$(LDFLAGS) +HOST_CPPFLAGS=$(ALL_CPPFLAGS) +HOST_ALLOCA=$(ALLOCA) +HOST_MALLOC=$(MALLOC) +HOST_OBSTACK=$(OBSTACK) + +# To build the native compiler with the cross compiler, the headers +# for the target are already fixed. And /usr/include is for host, not +# target. +FIXINCLUDES=Makefile.in + +# Cause installation using install-build. We do nothing here. +INSTALL_TARGET = install-build + +# Don't try to compile the things we can't compile or we have made +# while making gcc with the cross-compiler. +ALL = all.build |