2010-08-13 14:52:29 +00:00
|
|
|
GCC=g++ -I../ -Wall
|
2009-12-19 19:53:53 +00:00
|
|
|
|
2009-12-26 12:35:34 +00:00
|
|
|
all: dummy_test ogre_client_test ogre_resource_test ogre_server_test physfs_server_test
|
2009-12-19 19:53:53 +00:00
|
|
|
|
|
|
|
I_OGRE=$(shell pkg-config --cflags OGRE)
|
|
|
|
L_OGRE=$(shell pkg-config --libs OGRE)
|
2009-12-26 12:35:34 +00:00
|
|
|
L_PHYSFS=-lphysfs
|
2009-12-19 19:53:53 +00:00
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
ogre_client_test: ogre_client_test.cpp dummy_vfs.cpp ../vfs.hpp ../clients/ogre_archive.hpp ../clients/ogre_archive.cpp
|
2009-12-28 13:09:17 +00:00
|
|
|
$(GCC) $< ../clients/ogre_archive.cpp -o $@ $(I_OGRE) $(L_OGRE)
|
2009-12-19 19:53:53 +00:00
|
|
|
|
2009-12-26 09:52:10 +00:00
|
|
|
ogre_resource_test: ogre_resource_test.cpp
|
|
|
|
$(GCC) $< -o $@ $(I_OGRE) $(L_OGRE)
|
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
ogre_server_test: ogre_server_test.cpp ../vfs.hpp ../servers/ogre_vfs.hpp ../servers/ogre_vfs.cpp
|
2009-12-28 13:09:17 +00:00
|
|
|
$(GCC) $< -o $@ $(I_OGRE) $(L_OGRE) ../servers/ogre_vfs.cpp
|
2009-12-26 11:13:31 +00:00
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
physfs_server_test: physfs_server_test.cpp ../vfs.hpp ../servers/physfs_vfs.hpp
|
2009-12-26 12:35:34 +00:00
|
|
|
$(GCC) $< -o $@ $(L_PHYSFS)
|
|
|
|
|
2010-06-03 18:13:27 +00:00
|
|
|
dummy_test: dummy_test.cpp dummy_vfs.cpp ../vfs.hpp
|
2009-12-19 19:53:53 +00:00
|
|
|
$(GCC) $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm *_test
|