This commit is contained in:
Kaley, Fischer 2024-04-01 21:51:38 +02:00
parent 7abc6f72a9
commit aa50c3e82d

25
Makefile Normal file
View file

@ -0,0 +1,25 @@
NAME = hy3
PREFIX = /usr
all:
$(MAKE) clear
$(MAKE) release
release:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DLEGACY_RENDERER:BOOL=true -S . -B ./build -G Ninja
cmake --build ./build
chmod -R 777 ./build
clear:
rm -rf build
install.core:
@if [ ! -f ./build/libhy3.so ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
@echo -en "!NOTE: Please note make install does not compile Hy3 and only installs the already built files."
mkdir -p ${PREFIX}/lib
cp -f ./build/libhy3.so ${PREFIX}/lib
chmod 755 ${PREFIX}/lib/libhy3.so
install: install.core
uninstall: