diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 6a9aca303d..98507d979c 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -15,8 +15,10 @@ OC = sh-elf-objcopy | |||
15 | 15 | ||
16 | INCLUDES=-Iinclude -I. -Icommon -Idrivers | 16 | INCLUDES=-Iinclude -I. -Icommon -Idrivers |
17 | 17 | ||
18 | # store output files in this directory: | 18 | ifndef OBJDIR |
19 | OBJDIR = . | 19 | "Don't run make in the firmware dir!" |
20 | endif | ||
21 | |||
20 | TOOLSDIR = ../tools | 22 | TOOLSDIR = ../tools |
21 | 23 | ||
22 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) | 24 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) |