22 lines
474 B
Makefile
22 lines
474 B
Makefile
CXX = g++
|
|
CXXFLAGS = -shared -fPIC --no-gnu-unique -g -std=c++23
|
|
INCLUDES = -I "/usr/include/pixman-1" -I "/usr/include/libdrm" -I $(shell pkg-config --cflags hyprland pangocairo)
|
|
LIBS = $(shell pkg-config --libs pangocairo)
|
|
|
|
SRC = main.cpp barDeco.cpp
|
|
TARGET = hyprbars.so
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC)
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
|
|
|
|
clean:
|
|
rm ./$(TARGET)
|
|
|
|
meson-build:
|
|
mkdir -p build
|
|
cd build && meson .. && ninja
|
|
|
|
.PHONY: all meson-build clean
|