summaryrefslogtreecommitdiff
blob: cb1521947a7c0ecad1691157a271edbb2f861258 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+PKGCONFIG ?= pkg-config
+LIBS += $(shell $(PKGCONFIG) --libs ncurses) -lpthread
 all:
-	g++ -O3 -Wall -o clockywock clockywock.cpp -lncurses -lpthread
+	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o clockywock clockywock.cpp $(LIBS)
 
 # install is done completely lazily
 install: