aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b41b05c9387363f8d7eea20c42b7cac7a51ae2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-
CXX = g++ -std=c++11

base_CXXFLAGS = -Wall -Wextra -pedantic -O2 -g
base_LIBS = -lm

libpulse_CXXFLAGS = $(shell pkg-config --cflags libpulse)
libpulse_LIBS = $(shell pkg-config --libs libpulse)

CXXFLAGS := \
	$(base_CXXFLAGS) \
	$(libpulse_CXXFLAGS) \
	$(CXXFLAGS)

LDLIBS := \
	$(base_LIBS) \
	$(libpulse_LIBS)

all: ponymix

ponymix: ponymix.cc pulse.o
pulse.o: pulse.cc pulse.h

install: ponymix
	install -Dm755 ponymix $(DESTDIR)/usr/bin/ponymix
	install -Dm644 ponymix.1 $(DESTDIR)/usr/share/man/man1/ponymix.1

clean:
	$(RM) ponymix pulse.o