2010-08-13 14:52:29 +00:00
|
|
|
GCC=g++ -I../ -Wall
|
2009-11-17 17:33:19 +00:00
|
|
|
|
2010-08-13 14:12:57 +00:00
|
|
|
all: audiere_source_test ffmpeg_source_test openal_output_test openal_audiere_test openal_ffmpeg_test
|
2009-11-17 17:33:19 +00:00
|
|
|
|
2010-01-01 19:18:11 +00:00
|
|
|
L_FFMPEG=$(shell pkg-config --libs libavcodec libavformat)
|
2010-08-13 17:27:45 +00:00
|
|
|
I_FFMPEG=-I/usr/include/libavcodec -I/usr/include/libavformat
|
2009-11-17 17:33:19 +00:00
|
|
|
L_OPENAL=$(shell pkg-config --libs openal)
|
|
|
|
L_AUDIERE=-laudiere
|
|
|
|
|
2010-01-01 17:42:35 +00:00
|
|
|
openal_audiere_test: openal_audiere_test.cpp ../sources/audiere_source.cpp ../outputs/openal_out.cpp ../../stream/clients/audiere_file.cpp
|
2009-12-21 20:51:57 +00:00
|
|
|
$(GCC) $^ -o $@ $(L_AUDIERE) $(L_OPENAL)
|
|
|
|
|
2010-08-13 14:12:57 +00:00
|
|
|
openal_ffmpeg_test: openal_ffmpeg_test.cpp ../sources/ffmpeg_source.cpp ../outputs/openal_out.cpp
|
2010-08-13 17:27:45 +00:00
|
|
|
$(GCC) $^ -o $@ $(L_FFMPEG) $(L_OPENAL) $(I_FFMPEG)
|
2010-08-13 14:12:57 +00:00
|
|
|
|
2010-01-01 18:48:04 +00:00
|
|
|
openal_output_test: openal_output_test.cpp ../outputs/openal_out.cpp
|
|
|
|
$(GCC) $^ -o $@ $(L_OPENAL)
|
|
|
|
|
|
|
|
audiere_source_test: audiere_source_test.cpp ../sources/audiere_source.cpp ../../stream/clients/audiere_file.cpp
|
|
|
|
$(GCC) $^ -o $@ $(L_AUDIERE)
|
|
|
|
|
2010-01-01 19:18:11 +00:00
|
|
|
ffmpeg_source_test: ffmpeg_source_test.cpp ../sources/ffmpeg_source.cpp
|
2010-08-13 17:27:45 +00:00
|
|
|
$(GCC) $^ -o $@ $(L_FFMPEG) $(I_FFMPEG)
|
2010-01-01 19:18:11 +00:00
|
|
|
|
2009-11-17 17:33:19 +00:00
|
|
|
clean:
|
|
|
|
rm *_test
|