Add proxy root Makefile

Some systems come with an old version of Make that is not compatible
with the projects built in this repo. To work around this issue, a
previous CL moved the root Makefile to Makefile.root, and this CL adds
a proxy Makefile that forwards all calls to Makefile.root run with
a prebuilt of GNU Make.

Test: make test
Change-Id: I1ac0bfd2ab13971dfb1141e7c49491da47c234f3
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f10f842
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+# Copyright 2021 The Android KVM Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# This Makefile only serves as a launcher of the root Makefile with
+# the GNU Make prebuilt. This way we avoid the need to put the prebuilt
+# in PATH prior to running `make`.
+# We use a prebuilt of Make because some systems come with an old version
+# that is not compatible with some of the projects built in this repo.
+
+ROOTDIR := $(CURDIR)
+MAKE := $(ROOTDIR)/prebuilts/linux-x86/make/bin/make
+MAKEFILE := $(ROOTDIR)/build/Makefile.root
+
+.PHONY: all %
+
+# At least one target must be defined for `make` (no arguments) to succeed.
+all:
+	$(MAKE) -f $(MAKEFILE) $@
+
+# Catch-all target that propagates the call to the root Makefile.
+%:
+	$(MAKE) -f $(MAKEFILE) $@