diff options
Diffstat (limited to 'daemon/Makefile')
-rw-r--r-- | daemon/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/daemon/Makefile b/daemon/Makefile index b62a223..5562db7 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -3,7 +3,11 @@ # # Uncomment and define CROSS_COMPILE if it is not already defined -# CROSS_COMPILE=/path/to/cross-compiler/arm-none-linux-gnueabi- +# CROSS_COMPILE=/path/to/cross-compiler/arm-linux-gnueabihf- +# NOTE: This toolchain uses the hardfloat abi by default. For non-hardfloat +# targets it is necessary to add options +# '-marm -march=armv4t -mfloat-abi=soft'. + ARCH=arm CPP=$(CROSS_COMPILE)g++ @@ -17,7 +21,10 @@ GCC=$(CROSS_COMPILE)gcc # -std=c++0x is the planned new c++ standard # -std=c++98 is the 1998 c++ standard # -mthumb-interwork is required for interworking to ARM or Thumb stdlibc -CFLAGS=-O3 -Wall -Werror -Wno-error=sequence-point -mthumb-interwork +CFLAGS=-O3 -Wall -mthumb-interwork +ifeq ($(WERROR),1) + CFLAGS += -Werror +endif # -s strips the binary of debug info LDFLAGS=-s TARGET=gatord |