A simple bit of code in multiple languages that lets you calculate useful statistics without storing every sample.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
magic_stats/cpp/Makefile

47 lines
970 B

R_SCRIPT=C:/Users/lcthw/AppData/Local/Programs/R/R-4.6.0/bin/Rscript.exe
all: build
reset:
ifeq '$(OS)' 'Windows_NT'
powershell -executionpolicy bypass .\scripts\reset_build.ps1
else
sh -x ./scripts/reset_build.sh
endif
build:
meson compile -j 10 -C builddir
release_build:
meson --wipe builddir -Db_ndebug=true --buildtype release
meson compile -j 10 -C builddir
debug_build:
meson setup --wipe builddir -Db_ndebug=true --buildtype debugoptimized
meson compile -j 10 -C builddir
test: build
./builddir/fuc2it -v
r_test:
$(R_SCRIPT) tests/confirm.r
run: build test
ifeq '$(OS)' 'Windows_NT'
powershell "cp ./builddir/fuc2it.exe ."
./fuc2it
else
./builddir/fuc2it
endif
debug: build
gdb --nx -x .gdbinit --ex run --args builddir/fuc2it
debug_run: build
gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/fuc2it
clean:
meson compile --clean -C builddir
debug_test: build
gdb --nx -x .gdbinit --ex run --args builddir/fuc2it -e