2023-05-03 20:57:32 +02:00
|
|
|
VERSION=v0.2.2
|
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-03 22:09:59 +02:00
|
|
|
OVR := -Lopenvr -lopenvr_api
|
|
|
|
TARGET := ./sinpin_vr
|
2023-04-02 14:34:52 +02:00
|
|
|
|
|
|
|
build:
|
2023-05-03 22:09:59 +02:00
|
|
|
$(CXX) src/*.cpp $(CPPFLAGS) $(LFLAGS) -Wl,-rpath,'$$ORIGIN/openvr' $(OVR) -o $(TARGET)
|
2023-04-13 21:45:21 +02:00
|
|
|
|
2023-04-22 20:02:09 +02:00
|
|
|
release: build
|
|
|
|
zip -r sinpin_vr-$(VERSION).zip sinpin_vr bindings openvr/libopenvr_api.so
|
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
|
|
|
|