aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-01-29 11:26:54 -0500
committerKevin O'Connor <kevin@koconnor.net>2011-01-29 14:48:53 -0500
commit3dba4c236d1f25dfeb88b01c13b1e87e407a5b11 (patch)
treeb9e521c8231323347df9315f5494a7474e63dbf7 /Makefile
parent42d977125110305704ad5794ba4da163faeed382 (diff)
downloadseabios-3dba4c236d1f25dfeb88b01c13b1e87e407a5b11.zip
seabios-3dba4c236d1f25dfeb88b01c13b1e87e407a5b11.tar.gz
seabios-3dba4c236d1f25dfeb88b01c13b1e87e407a5b11.tar.bz2
Support non-local build directory - allow "make OUT=abc/" to work.
Don't require the build directory to be the "out/" directory of the SeaBIOS source.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f8f8fc4..b19281d 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,8 @@ cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
/dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
# Default compiler flags
-COMMONCFLAGS = -Os -MD -Wall -Wno-strict-aliasing -Wold-style-definition \
+COMMONCFLAGS = -I$(OUT) -Os -MD \
+ -Wall -Wno-strict-aliasing -Wold-style-definition \
$(call cc-option,$(CC),-Wtype-limits,) \
-m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2 \
-mrtd -minline-all-stringops \