Add some nice but not so useful color to glpitch (showing audio volume).
[pitch] / Makefile
index 9f3a83f..3ba2c2f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
 CXXFLAGS=-g -Wall
-CPPFLAGS=
+CPPFLAGS=$(shell sdl-config --cflags)
 
-all: pitch
+all: pitch glpitch
 clean:
-       $(RM) pitch pitch.o pitchdetector.o linux_audio.o
+       $(RM) pitch glpitch pitch.o glpitch.o pitchdetector.o linux_audio.o
 
 pitch: pitch.o pitchdetector.o linux_audio.o
        $(CXX) -o pitch pitch.o pitchdetector.o linux_audio.o -lfftw3
 
+glpitch: glpitch.o pitchdetector.o linux_audio.o
+       $(CXX) -o glpitch glpitch.o pitchdetector.o linux_audio.o $(shell sdl-config --libs) -lfftw3 -lGL
+
 .PHONY: clean