2023-04-22 20:02:09 +02:00
|
|
|
VERSION=v0.1.0
|
2023-04-13 21:45:21 +02:00
|
|
|
# CC := g++
|
|
|
|
CC := clang++
|
2023-04-29 17:06:02 +02:00
|
|
|
LFLAGS := -lX11 -lXrandr -lXtst -lglfw -lGL
|
2023-04-13 21:45:21 +02:00
|
|
|
LIBS := openvr/libopenvr_api.so
|
|
|
|
SRC := src/*.cpp
|
2023-04-22 19:21:56 +02:00
|
|
|
OUT := ./sinpin_vr
|
2023-04-13 21:45:21 +02:00
|
|
|
CPPFLAGS := -Wall -std=c++17 $(LFLAGS) $(LIBS) $(SRC) -o $(OUT)
|
2023-04-02 14:34:52 +02:00
|
|
|
|
|
|
|
build:
|
2023-04-13 21:45:21 +02:00
|
|
|
$(CC) -g $(CPPFLAGS)
|
|
|
|
|
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-04-22 19:21:56 +02:00
|
|
|
$(OUT)
|
2023-04-02 14:34:52 +02:00
|
|
|
|