cc := "clang"
cc_flags := "-Wall -Wextra -ggdb"

@clean:
  rm -rf build

@mkdir-build: clean
  mkdir -p build

@build-editor: mkdir-build
    {{cc}} {{cc_flags}} -o build/main editor/main.c
    {{cc}} {{cc_flags}} -o build/editor editor/editor.c
    {{cc}} {{cc_flags}} -o build/analizer editor/analizer.c

@build-threads: mkdir-build
    {{cc}} {{cc_flags}} -o build/main threads/main.c

@build-matrix-calc: mkdir-build
    {{cc}} {{cc_flags}} -o build/main matrix-calc/main.c
