2010-09-07 09:08:09 +00:00
|
|
|
GCC=g++ -I../ -Wall -Werror
|
2009-12-19 07:26:01 +00:00
|
|
|
|
2010-09-07 09:08:09 +00:00
|
|
|
all: ogre_client_test audiere_client_test memory_server_test buffer_filter_test file_server_test slice_filter_test file_write_test iostream_test
|
2009-12-19 07:26:01 +00:00
|
|
|
|
|
|
|
I_OGRE=$(shell pkg-config --cflags OGRE)
|
|
|
|
L_OGRE=$(shell pkg-config --libs OGRE)
|
2009-12-24 10:08:18 +00:00
|
|
|
L_AUDIERE=-laudiere
|
2009-12-19 07:26:01 +00:00
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
ogre_client_test: ogre_client_test.cpp ../stream.hpp ../clients/ogre_datastream.hpp
|
2009-12-19 07:26:01 +00:00
|
|
|
$(GCC) $< -o $@ $(I_OGRE) $(L_OGRE)
|
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
audiere_client_test: audiere_client_test.cpp ../stream.hpp ../clients/audiere_file.hpp ../clients/audiere_file.cpp
|
2009-12-28 13:09:17 +00:00
|
|
|
$(GCC) $< -o $@ ../clients/audiere_file.cpp $(L_AUDIERE)
|
2009-12-24 10:08:18 +00:00
|
|
|
|
2010-09-07 11:12:21 +00:00
|
|
|
iostream_test: iostream_test.cpp ../clients/io_stream.cpp
|
|
|
|
$(GCC) $^ -o $@
|
2010-09-07 09:08:09 +00:00
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
file_server_test: file_server_test.cpp ../stream.hpp ../servers/file_stream.hpp ../servers/std_stream.hpp
|
2009-12-19 07:26:01 +00:00
|
|
|
$(GCC) $< -o $@
|
|
|
|
|
2010-08-04 10:20:46 +00:00
|
|
|
file_write_test: file_write_test.cpp ../stream.hpp ../servers/outfile_stream.hpp ../servers/std_ostream.hpp
|
|
|
|
$(GCC) $< -o $@
|
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
memory_server_test: memory_server_test.cpp ../stream.hpp ../servers/memory_stream.hpp
|
2010-01-01 15:39:11 +00:00
|
|
|
$(GCC) $< -o $@
|
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
buffer_filter_test: buffer_filter_test.cpp ../stream.hpp ../servers/memory_stream.hpp ../filters/buffer_stream.hpp
|
2010-01-01 15:39:11 +00:00
|
|
|
$(GCC) $< -o $@
|
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
slice_filter_test: slice_filter_test.cpp ../stream.hpp ../servers/memory_stream.hpp ../filters/slice_stream.hpp
|
2009-12-30 10:50:21 +00:00
|
|
|
$(GCC) $< -o $@
|
|
|
|
|
2009-12-19 07:26:01 +00:00
|
|
|
clean:
|
|
|
|
rm *_test
|