2023-05-01 21:02:05 +02:00
|
|
|
CXX = g++
|
|
|
|
CXXFLAGS = -shared -fPIC --no-gnu-unique -g -std=c++23
|
2023-05-05 22:04:54 +02:00
|
|
|
INCLUDES = -I "/usr/include/pixman-1" -I "/usr/include/libdrm" $(shell pkg-config --cflags hyprland pangocairo)
|
2023-05-01 21:02:05 +02:00
|
|
|
LIBS = $(shell pkg-config --libs pangocairo)
|
|
|
|
|
|
|
|
SRC = main.cpp barDeco.cpp
|
|
|
|
TARGET = hyprbars.so
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(SRC)
|
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
|
|
|
|
|
2023-02-28 21:30:51 +01:00
|
|
|
clean:
|
2023-05-01 21:02:05 +02:00
|
|
|
rm ./$(TARGET)
|
|
|
|
|
|
|
|
meson-build:
|
|
|
|
mkdir -p build
|
|
|
|
cd build && meson .. && ninja
|
|
|
|
|
|
|
|
.PHONY: all meson-build clean
|