From 2a529357b7516922c600e5e95815da9f32dda3c9 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 31 Dec 2012 17:05:35 -0500 Subject: initial commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e6cb6ca --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CXX = g++ -std=c++11 + +base_CFLAGS = -Wall -Wextra -pedantic -O2 -g +base_LIBS = -lm + +libpulse_CFLAGS = $(shell pkg-config --cflags libpulse) +libpulse_LIBS = $(shell pkg-config --libs libpulse) + +CXXFLAGS := $(base_CFLAGS) $(libpulse_CFLAGS) $(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 -- cgit v1.2.3 From fa689e0995b6c31f2cf529916399c4d9db299495 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 1 Jan 2013 22:49:04 -0500 Subject: makefile: CFLAGS -> CXXFLAGS --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e6cb6ca..b41b05c 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,19 @@ CXX = g++ -std=c++11 -base_CFLAGS = -Wall -Wextra -pedantic -O2 -g +base_CXXFLAGS = -Wall -Wextra -pedantic -O2 -g base_LIBS = -lm -libpulse_CFLAGS = $(shell pkg-config --cflags libpulse) +libpulse_CXXFLAGS = $(shell pkg-config --cflags libpulse) libpulse_LIBS = $(shell pkg-config --libs libpulse) -CXXFLAGS := $(base_CFLAGS) $(libpulse_CFLAGS) $(CXXFLAGS) -LDLIBS := $(base_LIBS) $(libpulse_LIBS) +CXXFLAGS := \ + $(base_CXXFLAGS) \ + $(libpulse_CXXFLAGS) \ + $(CXXFLAGS) + +LDLIBS := \ + $(base_LIBS) \ + $(libpulse_LIBS) all: ponymix -- cgit v1.2.3