2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2010-2014 Intel Corporation
5 # Auto-generate a Makefile in build directory
7 # $1: path of project src root
9 echo "# Automatically generated by gen-build-mk.sh"
12 echo "ifeq (\"\$(origin O)\", \"command line\")"
13 echo "\$(error \"Cannot specify O= as you are already in a build directory\")"
17 echo "MAKEFLAGS += --no-print-directory"
20 echo " @\$(MAKE) -C $1 O=\$(CURDIR)"
23 echo " @\$(MAKE) -C $1 O=\$(CURDIR) \$@"