-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
33 lines (21 loc) · 970 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PLUGIN_NAME=riverLayoutPlugin
INSTALL_LOCATION=${HOME}/.local/share/hyprload/plugins/bin
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
CXXFLAGS=-shared -Wall -fPIC --no-gnu-unique -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b
OBJS=riverLayout.o RiverLayoutProtocolManager.o river-layout-v3-protocol.o main.o
river-layout-v3-protocol.h: protocol/river-layout-v3.xml
$(WAYLAND_SCANNER) server-header protocol/river-layout-v3.xml $@
river-layout-v3-protocol.c: protocol/river-layout-v3.xml
$(WAYLAND_SCANNER) public-code protocol/river-layout-v3.xml $@
river-layout-v3-protocol.o: river-layout-v3-protocol.h
protocol: river-layout-v3-protocol.o
all: protocol $(OBJS)
g++ -shared -fPIC -o $(PLUGIN_NAME).so -g $(OBJS)
install: all
mkdir -p ${INSTALL_LOCATION}
cp $(PLUGIN_NAME).so ${INSTALL_LOCATION}
clean:
rm ./$(PLUGIN_NAME).so
rm $(OBJS)
rm river-layout-v3-protocol.h
rm river-layout-v3-protocol.c