35 lines
755 B
Makefile
35 lines
755 B
Makefile
name := "freling_netatmo_algo"
|
|
exe_cli := "./packing_cli"
|
|
exe_gui := "./packing_gui"
|
|
build_sh := "build.sh"
|
|
|
|
build-raylib:
|
|
cd src/3rd-party/raylib-4.0.0/src && \
|
|
make CC=clang \
|
|
PLATFORM=PLATFORM_DESKTOP \
|
|
RAYLIB_MODULE_AUDIO=FALSE \
|
|
RAYLIB_MODULE_MODELS=FALSE
|
|
|
|
build-cli:
|
|
tup {{exe_cli}}
|
|
|
|
build-gui: build-raylib
|
|
tup {{exe_gui}}
|
|
|
|
run-cli: build-cli
|
|
{{exe_cli}} lenna.png 0 0 64 64 100 100 200 164 80 200 150 420
|
|
|
|
run-gui: build-gui
|
|
nixGL {{exe_gui}} lenna.png 0 0 64 64 100 100 200 164 80 200 150 420
|
|
|
|
generate-build:
|
|
git clean -xf src/
|
|
rm --force {{exe_cli}} {{exe_gui}}
|
|
tup generate {{build_sh}}
|
|
|
|
debug: build-cli
|
|
lldb {{exe_cli}}
|
|
|
|
archive: generate-build
|
|
git archive --add-file={{build_sh}} --output={{name}}.zip --prefix={{name}}/ HEAD
|