diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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) |