Makefile (452B)
1 CC=cc 2 CFLAGS=-Werror -Wall -Wextra -pedantic 3 LIBS=-I/opt/homebrew/Cellar/raylib/5.0/include -L/opt/homebrew/Cellar/raylib/5.0/lib -lraylib 4 5 build: src/*.c 6 mkdir -p ./build 7 $(CC) -o ./build/freezo $(CFLAGS) $(LIBS) $^ 8 9 web: src/*.c 10 mkdir -p ./build 11 emcc -o ./build/freezo.js $^ -Os -Wall ../raylib/src/libraylib.a -I. -L. -Lpath-to-libraylib-a -s USE_GLFW=3 -DPLATFORM_WEB --preload-file ./assets 12 13 run: build 14 ./build/freezo 15 16 clean: 17 rm -rf ./build