Import('env') env_embedded = env.Clone() # Bindings. env_embedded.add_source_files(env.modules_sources, "*.cpp") # Append CCFLAGS flags for both C and C++ code. # If you need to, you can: # - Append CFLAGS for C code only. # - Append CXXFLAGS for C++ code only. env_embedded.Append(CCFLAGS=['-g', '-O2'])