2023-05-04 22:27:47 +02:00
|
|
|
VERSION=v0.2.3
|
2023-05-03 22:09:59 +02:00
|
|
|
|
|
|
|
CXX := g++
|
|
|
|
# CXX := clang++
|
|
|
|
CPPFLAGS := -g -Wall -std=c++17
|
2023-04-29 17:06:02 +02:00
|
|
|
LFLAGS := -lX11 -lXrandr -lXtst -lglfw -lGL
|
2023-05-04 22:27:47 +02:00
|
|
|
OVR := -Llib -lopenvr_api
|
2023-05-03 22:09:59 +02:00
|
|
|
TARGET := ./sinpin_vr
|
2023-04-02 14:34:52 +02:00
|
|
|
|
|
|
|
build:
|
2023-05-04 22:27:47 +02:00
|
|
|
$(CXX) src/*.cpp $(CPPFLAGS) $(LFLAGS) -Wl,-rpath,'$$ORIGIN/lib' $(OVR) -o $(TARGET)
|
2023-04-13 21:45:21 +02:00
|
|
|
|
2023-04-22 20:02:09 +02:00
|
|
|
release: build
|
2023-05-04 22:27:47 +02:00
|
|
|
mkdir -p sinpin-vr/lib
|
|
|
|
cp lib/libopenvr_api.so sinpin-vr/lib
|
|
|
|
cp -r bindings sinpin-vr
|
|
|
|
cp sinpin_vr sinpin-vr
|
|
|
|
tar -caf sinpin-vr-$(VERSION).tar.xz sinpin-vr
|
|
|
|
rm -rf sinpin-vr
|
2023-04-02 14:34:52 +02:00
|
|
|
|
|
|
|
run: build
|
2023-05-03 22:09:59 +02:00
|
|
|
$(TARGET)
|
2023-04-02 14:34:52 +02:00
|
|
|
|