summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-05 13:22:34 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-05 13:22:34 +0100
commit1f8da4902761fc6f6eaf39b8711107c6b48a9c9a (patch)
treea0a4f0a1c164080fc313fe37cbb5a91f6ce883d1 /Makefile
parent770540693fd4a5f9b64c1b2bc8183be3f72ab314 (diff)
Debian build, colors, config filename
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 93e322a..a7709eb 100644
--- a/Makefile
+++ b/Makefile
@@ -25,11 +25,23 @@ OBJS=$(SRCS:.cpp=.o)
CXXLIBS=$(shell pkg-config --libs alsa) -lreichwein -lfmt
CXX=clang++
+ifeq ($(CXXFLAGS),)
+CXXFLAGS=-O2 -g
+endif
+
+CXXFLAGS+=-std=c++20 -Wall -Wpedantic
+# workaround for Debian dh_dwz:
+CXXFLAGS+=-gdwarf-4
+
$(TARGET): $(OBJS)
$(CXX) $^ -o $@ $(CXXLIBS)
%.o: %.cpp
- $(CXX) $(CXXFLAGS) -std=c++20 -O2 -g -Wall -Wpedantic -o $@ -c $<
+ $(CXX) $(CXXFLAGS) -o $@ -c $<
+
+install:
+ mkdir -p $(DESTDIR)/usr/bin
+ cp $(TARGET) $(DESTDIR)/usr/bin
clean:
rm -f $(TARGET) $(OBJS)