26 lines
606 B
Makefile
26 lines
606 B
Makefile
# Build the project
|
|
build:
|
|
lake build
|
|
patchelf --set-interpreter /usr/lib/ld-linux-x86-64.so.2 .lake/build/bin/LeanDoomed
|
|
patchelf --set-rpath '$ORIGIN:/usr/lib' .lake/build/bin/LeanDoomed
|
|
|
|
# Run LeanDoomed
|
|
run: build
|
|
.lake/build/bin/LeanDoomed
|
|
|
|
# Run with X11 explicitly (for Wayland systems)
|
|
run-x11: build
|
|
SDL_VIDEODRIVER=x11 .lake/build/bin/LeanDoomed
|
|
|
|
# Run with Wayland explicitly
|
|
run-wayland: build
|
|
SDL_VIDEODRIVER=wayland .lake/build/bin/LeanDoomed
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
lake clean
|
|
rm -rf .lake/build/bin/*.so*
|
|
|
|
# Rebuild from scratch
|
|
rebuild: clean build
|