summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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)