# Makefile for range_sensor/samples
# Satofumi KAMIMURA
# $Id: Makefile 1140 2009-07-13 21:41:41Z satofumi $

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -Werror $(INCLUDES) `sdl-config --cflags`
INCLUDES = -I/usr/include/lua5.1 -I.. -I../../lua -I../../network -I../../connection/sdl -I../../connection -I../../gui -I../../geometry -I../../system
LDFLAGS =
LDLIBS = -llua5.1 -lluabind `sdl-config --libs` -lSDL_net -lSDL_ttf -lSDL_image -lGL -lboost_signals

# Target
TARGET = \
	client server \

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET) error_log.txt

depend :
	makedepend -Y -- $(INCLUDES) -- $(wildcard *.h *.cpp)

.PHONY : all clean depend
######################################################################
#../../common/common.a ../../geometry/geometry.a

REQUIRE_LIBS = ../../lua/lua_luabind.a ../../lua/lua.a ../sync_gui_master.a ../sync_gui_slave.a ../../gui/gui.a ../../network/network.a ../../connection/sdl/connection_sdl.a ../../geometry/geometry.a ../../system/system.a ../../system/sdl/system_sdl.a

$(REQUIRE_LIBS) :
	cd $(@D)/ && $(MAKE) $(@F)

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

client.o: port.h ../../gui/Screen.h ../../geometry/Rect.h
client.o: ../../gui/LayerManager.h ../../gui/LayerInterface.h
client.o: ../../geometry/Point.h ../SlaveLayer.h ../../network/Packet.h
client.o: ../../connection/Connection.h ../../gui/CallbackEvent.h
client.o: ../../gui/Event.h ../../gui/EventUtils.h
client.o: ../../network/PacketUtils.h ../../connection/TcpipSocket.h
client.o: ../../system/CycleTimer.h ../../system/delay.h
server.o: port.h ../../lua/luabindSyncGui_master.h ../MasterLayer.h
server.o: ../../gui/LayerInterface.h ../../network/Packet.h
server.o: ../../connection/Connection.h ../../connection/TcpipSocket.h
server.o: ../../connection/TcpipAccepter.h ../../lua/luabindInit.h
server.o: ../../lua/luabindCommon.h ../../lua/luabindGeometry.h
server.o: ../../lua/luabindGui.h ../../lua/LuaHandler.h
