summaryrefslogtreecommitdiff
path: root/gcc/build-make
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-21 22:18:09 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-21 22:18:09 +0000
commit8081e5039ba03474b09816e2f11d2e7038e4a0eb (patch)
tree7baa66f4d1a9915b58fca16d8eea723448a19597 /gcc/build-make
parent55bd8855f6965bcff02f8857d66a420f16cbc3ce (diff)
downloadgcc-8081e5039ba03474b09816e2f11d2e7038e4a0eb.tar.gz
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2546 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/build-make')
-rw-r--r--gcc/build-make28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/build-make b/gcc/build-make
new file mode 100644
index 00000000000..95453be4591
--- /dev/null
+++ b/gcc/build-make
@@ -0,0 +1,28 @@
+# We have to use the cross-compiler we just built to compile it.
+CC = gcc -b $(target) -V $(version)
+
+# 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)
+
+
+# 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