sinpin-vr/Makefile

24 lines
481 B
Makefile
Raw Permalink Normal View History

2023-05-04 22:27:47 +02:00
VERSION=v0.2.3
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
TARGET := ./sinpin_vr
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
run: build
$(TARGET)