[linux]
cppflags = -Wall -Os -ffunction-sections -fdata-sections -std=c++20 -Isource
libs = -Wl,--gc-sections -lSDL3
executable = atari2600
sourcepath = source+
buildpath = build
exclude = z80*

[linux_debug] default
cppflags = -D DEBUG -g -std=c++20 -O0 -fsanitize=address -fno-omit-frame-pointer -Isource
libs = -lSDL3 -fsanitize=address -fno-omit-frame-pointer
executable = atari2600_debug
sourcepath = source+
buildpath = build
exclude = z80*

[windows]
cppflags = -Wall -Os -ffunction-sections -fdata-sections -std=c++20 -Isource
libs = icon.res -Wl,--gc-sections -lmingw32 -lSDL3 -lopengl32 -mwindows -static-libstdc++ -static-libgcc -lpthread -mwindows
executable = atari2600.exe
sourcepath = source+
buildpath = build

[windows_debug]
cppflags = -D DEBUG -g -Wall -std=c++20 -Isource
libs = -lmingw32 -lSDL3
executable = atari2600_debug.exe
sourcepath = source+
buildpath = build

[macos]
compiler = clang++
cppflags = -Wall -Os -Wno-deprecated -ffunction-sections -fdata-sections -std=c++20 -Isource
libs = -lSDL3
executable = atari2600
sourcepath = source+
buildpath = build

[macos_debug]
compiler = clang++
cppflags = -D DEBUG -g -Wall -Wno-deprecated -std=c++20 -Isource
libs = -lSDL3
executable = atari2600_debug
sourcepath = source+
buildpath = build
