diff options
Diffstat (limited to 'gui/wxmain_devdata.cpp')
-rw-r--r-- | gui/wxmain_devdata.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gui/wxmain_devdata.cpp b/gui/wxmain_devdata.cpp index 0862f63..0f384fa 100644 --- a/gui/wxmain_devdata.cpp +++ b/gui/wxmain_devdata.cpp @@ -17,20 +17,25 @@ const std::array<unsigned int, 6> srateNums { 96000 }; -#ifdef WIN32 +#ifdef STMDSP_WIN32 #define NEWLINE "\r\n" +#define COPY "copy" #else #define NEWLINE "\n" +#define COPY "cp" #endif // $0 = temp file name const char *makefile_text_h7 = +#ifdef STMDSP_WIN32 + "echo off" NEWLINE +#endif "arm-none-eabi-g++ -x c++ -Os -std=c++20 -fno-exceptions -fno-rtti " "-mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-d16 -mtune=cortex-m7 " "-nostartfiles " "-Wl,-Ttext-segment=0x00000000 -Wl,-zmax-page-size=512 -Wl,-eprocess_data_entry " "$0 -o $0.o" NEWLINE - "cp $0.o $0.orig.o" NEWLINE + COPY " $0.o $0.orig.o" NEWLINE "arm-none-eabi-strip -s -S --strip-unneeded $0.o" NEWLINE "arm-none-eabi-objcopy --remove-section .ARM.attributes " "--remove-section .comment " @@ -38,12 +43,15 @@ const char *makefile_text_h7 = "$0.o" NEWLINE "arm-none-eabi-size $0.o" NEWLINE; const char *makefile_text_l4 = +#ifdef STMDSP_WIN32 + "echo off" NEWLINE +#endif "arm-none-eabi-g++ -x c++ -Os -std=c++20 -fno-exceptions -fno-rtti " "-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mtune=cortex-m4 " "-nostartfiles " "-Wl,-Ttext-segment=0x10000000 -Wl,-zmax-page-size=512 -Wl,-eprocess_data_entry " "$0 -o $0.o" NEWLINE - "cp $0.o $0.orig.o" NEWLINE + COPY " $0.o $0.orig.o" NEWLINE "arm-none-eabi-strip -s -S --strip-unneeded $0.o" NEWLINE "arm-none-eabi-objcopy --remove-section .ARM.attributes " "--remove-section .comment " |