Improve building of ASM files

This commit is contained in:
Valeriy Koval
2015-02-24 18:15:17 +02:00
parent d142b6e6d1
commit fedb7527f4
4 changed files with 23 additions and 19 deletions

View File

@@ -11,19 +11,18 @@ env = DefaultEnvironment()
env.Replace(
AR="avr-ar",
AS="avr-gcc",
AS="avr-as",
CC="avr-gcc",
CXX="avr-g++",
OBJCOPY="avr-objcopy",
RANLIB="avr-ranlib",
SIZETOOL="avr-size",
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
ARFLAGS=["rcs"],
CCFLAGS=[
ASPPFLAGS=["-x", "assembler-with-cpp"],
CPPFLAGS=[
"-g", # include debugging info (so errors include line numbers)
"-Os", # optimize for size
"-Wall", # show warnings
@@ -33,15 +32,15 @@ env.Replace(
"-mmcu=$BOARD_MCU"
],
CPPDEFINES=[
"F_CPU=$BOARD_F_CPU"
],
CXXFLAGS=[
"-fno-exceptions",
"-fno-threadsafe-statics"
],
CPPDEFINES=[
"F_CPU=$BOARD_F_CPU"
],
LINKFLAGS=[
"-Os",
"-mmcu=$BOARD_MCU",