mirror of
https://github.com/Trensa-Organization/split-monitor-workspaces.git
synced 2025-03-15 19:23:39 +01:00
Update Makefile
This commit is contained in:
parent
feb6ab9a49
commit
c45277034c
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -6,6 +6,14 @@ PLUGIN_NAME=split-monitor-workspaces
|
||||||
|
|
||||||
SOURCE_FILES=$(wildcard src/*.cpp)
|
SOURCE_FILES=$(wildcard src/*.cpp)
|
||||||
|
|
||||||
|
COMPILE_FLAGS=-g -fPIC --no-gnu-unique -std=c++23
|
||||||
|
COMPILE_FLAGS+=-I "/usr/include/pixman-1"
|
||||||
|
COMPILE_FLAGS+=-I "/usr/include/libdrm"
|
||||||
|
COMPILE_FLAGS+=-I "${HYPRLAND_HEADERS}"
|
||||||
|
COMPILE_FLAGS+=-I "${HYPRLAND_HEADERS}/subprojects/wlroots/include"
|
||||||
|
COMPILE_FLAGS+=-I "${HYPRLAND_HEADERS}/subprojects/wlroots/build/include"
|
||||||
|
COMPILE_FLAGS+=-Iinclude
|
||||||
|
|
||||||
.PHONY: clean clangd
|
.PHONY: clean clangd
|
||||||
|
|
||||||
all: check_env $(PLUGIN_NAME).so
|
all: check_env $(PLUGIN_NAME).so
|
||||||
|
@ -19,7 +27,7 @@ ifndef HYPRLAND_HEADERS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(PLUGIN_NAME).so: $(SOURCE_FILES) $(INCLUDE_FILES)
|
$(PLUGIN_NAME).so: $(SOURCE_FILES) $(INCLUDE_FILES)
|
||||||
g++ -shared -fPIC --no-gnu-unique $(SOURCE_FILES) -o $(PLUGIN_NAME).so -g -I "/usr/include/pixman-1" -I "/usr/include/libdrm" -I "${HYPRLAND_HEADERS}" -Iinclude -std=c++23
|
g++ -shared $(COMPILE_FLAGS) $(SOURCE_FILES) -o $(PLUGIN_NAME).so
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ./$(PLUGIN_NAME).so
|
rm -f ./$(PLUGIN_NAME).so
|
||||||
|
|
Loading…
Add table
Reference in a new issue