From 935d52e12b5d2d4fa69d267e719244f70f8f9bee Mon Sep 17 00:00:00 2001 From: ole00 Date: Tue, 22 Jun 2021 19:53:40 +0100 Subject: [PATCH] moved the PC app source to the src_pc directory This fixes an issue with Arduino IDE which opens all .c files (even unrelated) in the same directory when the .ino file is opened. Fixes compilation error described in issue #10 --- compile.sh | 2 +- compile_win32.sh | 2 +- compile_win64.sh | 2 +- afterburner.c => src_pc/afterburner.c | 0 serial_port.h => src_pc/serial_port.h | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename afterburner.c => src_pc/afterburner.c (100%) rename serial_port.h => src_pc/serial_port.h (100%) diff --git a/compile.sh b/compile.sh index 2033c68..9ed23ec 100755 --- a/compile.sh +++ b/compile.sh @@ -1 +1 @@ -gcc -g3 -O0 -o afterburner afterburner.c +gcc -g3 -O0 -o afterburner src_pc/afterburner.c diff --git a/compile_win32.sh b/compile_win32.sh index d078b44..e23837f 100755 --- a/compile_win32.sh +++ b/compile_win32.sh @@ -1,4 +1,4 @@ # path to your win32 cross-compiler CC=~/opt/mingw32/bin/i686-w64-mingw32-gcc -$CC -g3 -O0 -o afterburner_w32.exe afterburner.c -D_USE_WIN_API_ +$CC -g3 -O0 -o afterburner_w32.exe src_pc/afterburner.c -D_USE_WIN_API_ diff --git a/compile_win64.sh b/compile_win64.sh index e562220..5fd26f1 100755 --- a/compile_win64.sh +++ b/compile_win64.sh @@ -1,4 +1,4 @@ # path to your Win64 cross-compiler CC=~/opt/mingw64/bin/x86_64-w64-mingw32-gcc -$CC -g3 -O0 -o afterburner_w64.exe afterburner.c -D_USE_WIN_API_ +$CC -g3 -O0 -o afterburner_w64.exe src_pc/afterburner.c -D_USE_WIN_API_ diff --git a/afterburner.c b/src_pc/afterburner.c similarity index 100% rename from afterburner.c rename to src_pc/afterburner.c diff --git a/serial_port.h b/src_pc/serial_port.h similarity index 100% rename from serial_port.h rename to src_pc/serial_port.h