Lots of small but important changes to undertone detection:
[pitch] / Makefile
index 5cbb2cc..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
+       $(RM) pitch glpitch pitch.o glpitch.o pitchdetector.o linux_audio.o
 
-pitch: pitch.o
-       $(CXX) -o pitch pitch.o -lfftw3
+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