-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
33 lines (29 loc) · 974 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
build_raylib:
@sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
@sudo apt-get install libglfw3
@sudo apt-get install libglfw3-dev
@if [ ! -d "build_raylib" ]; then \
mkdir build_raylib; \
cd build_raylib && cmake .. && make; \
else \
echo "Directory 'build_raylib' already exists."; \
fi
@echo 'Raylib and Raygui successfully integrated to MSASS!'
build:
@mkdir ./build
@mkdir ./build/algorithms
@chmod +x ./script.sh
@./script.sh
@RAYLIB_PATH="./build_raylib/_deps/raylib-build/raylib"; \
gcc -I"$$RAYLIB_PATH/include" -L"$$RAYLIB_PATH" -o ./build/main ./src/main.c -lraylib -lm -lglfw -ldl -lpthread -w
@echo 'MSASS has been built successfully !'
remove:
@rm -rf ./build
@chmod -x ./script.sh
@echo 'MSASS has been removed successfully !'
update:
@./script.sh
@echo 'MSASS has been updated successfully !'
run:
@echo 'Welcome to MSASS !'
@./build/main