diff options
| author | Andrew Scheller | 2014-04-16 22:10:33 +0100 |
|---|---|---|
| committer | Andrew Scheller | 2014-04-16 22:16:28 +0100 |
| commit | 70a7d7a94397cbe01fd5457e34f3d3368300f2ac (patch) | |
| tree | 50ffda62cc15f607d543e76aaf0c23a614dd5618 /bare-arm/Makefile | |
| parent | a1c67206c88fe0c0712c99d6181cff9b99b07b33 (diff) | |
build directory can now be renamed
The autogenerated header files have been moved about, and an extra
include dir has been added, which means you can give a custom
BUILD=newbuilddir option to make, and everything "just works"
Also tidied up the way the different Makefiles build their include-
directory flags
Diffstat (limited to 'bare-arm/Makefile')
| -rw-r--r-- | bare-arm/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bare-arm/Makefile b/bare-arm/Makefile index 0e9f1f7c3..ace508ebd 100644 --- a/bare-arm/Makefile +++ b/bare-arm/Makefile @@ -8,8 +8,12 @@ include ../py/py.mk CROSS_COMPILE = arm-none-eabi- +INC = -I. +INC += -I$(PY_SRC) +INC += -I$(BUILD)/includes + CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion -CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 $(CFLAGS_CORTEX_M4) $(COPT) +CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 $(CFLAGS_CORTEX_M4) $(COPT) #Debugging/Optimization ifeq ($(DEBUG), 1) |
