Files
Interferometre-de-Michelson/Makefile
2025-12-29 13:49:27 +01:00

16 lines
418 B
Makefile

michelson: main.c
gcc main.c -o michelson -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
clean:
rm -f michelson
rm -r web
run:
./michelson
web: main.c
mkdir -p web && emcc -o web/index.html main.c -Os -Wall -std=c99 -DPLATFORM_WEB -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 -I. --shell-file minshell.html --preload-file glsl/michelson_web.frag libraylib.web.a
webrun:
cd web && python -m http.server 8000 && cd ..