# Makefile gui/samples
# $Id$

# Compile options
CC = $(CXX)
CXXFLAGS = -g -O0 -Wall -W -Werror $(INCLUDES) `sdl-config --cflags`
INCLUDES = -I.. -I../../geometry -I../../system -I../../common
LDFLAGS = -L/usr/X11/lib
LDLIBS = `sdl-config --libs` -lSDL_ttf -lSDL_image -lGL -lboost_signals-mt
#LDLIBS = `sdl-config --libs` -lSDL_ttf -lSDL_image -lglew32 -lopengl32 /mingw/lib/libboost_signals-mgw45-mt.lib


# Target
TARGET = \
	checkBoxSample \
	rubiDraw \
	canvasDraw \
	fadeText \
	simpleScreen \
	glScreen \
	glTextureDraw \
	drawText \
	handleEvent \
	inputDraw \
	chatMessageSample \
	captionAndIcon \
	rectMove \
	toggleScreen \
	buttonSample \
	menuSample \
	drawColorSurface \
	horizontalMenu \
#	changeSelect \
#	slideSelect \

all : $(TARGET)

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

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

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../gui.a ../../input/input.a ../../geometry/geometry.a ../../system/system.a ../../system/sdl/system_sdl.a

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

PROGRAMS = drawText handleEvent inputDraw chatMessageSample rectMove buttonSample menuSample drawColorSurface fadeText canvasDraw rubiDraw checkBoxSample horizontalMenu
$(PROGRAMS) : $(REQUIRE_LIBS)

# DO NOT DELETE

buttonSample.o: ../Button.h ../Component.h ../../geometry/Rect.h
buttonSample.o: ../../geometry/Point.h ../Screen.h ../LayerManager.h
buttonSample.o: ../LayerInterface.h ../Layer.h ../Font.h ../../common/Color.h
buttonSample.o: ../TextSurface.h ../Surface.h ../CallbackEvent.h ../Event.h
buttonSample.o: ../EventUtils.h ../../system/delay.h
canvasDraw.o: ../Screen.h ../../geometry/Rect.h ../CanvasSurface.h
canvasDraw.o: ../Surface.h ../../geometry/Point.h ../../common/Color.h
canvasDraw.o: ../Label.h ../Component.h
chatMessageSample.o: ../ChatMessage.h ../Component.h ../../geometry/Rect.h
chatMessageSample.o: ../../geometry/Point.h ../Screen.h ../LayerManager.h
chatMessageSample.o: ../LayerInterface.h ../Layer.h ../Font.h
chatMessageSample.o: ../../common/Color.h ../ColorSurface.h ../Surface.h
chatMessageSample.o: ../Label.h ../CallbackEvent.h ../Event.h ../EventUtils.h
chatMessageSample.o: ../../system/delay.h
checkBoxSample.o: ../Screen.h ../../geometry/Rect.h ../CheckBox.h
checkBoxSample.o: ../Component.h ../../geometry/Point.h
drawColorSurface.o: ../Screen.h ../../geometry/Rect.h ../ColorSurface.h
drawColorSurface.o: ../Surface.h ../ImageSurface.h ../../common/Color.h
drawText.o: ../Screen.h ../../geometry/Rect.h ../Font.h ../../common/Color.h
drawText.o: ../TextSurface.h ../Surface.h
fadeText.o: ../Screen.h ../../geometry/Rect.h ../Font.h ../../common/Color.h
fadeText.o: ../TextFadeSurface.h ../Surface.h
handleEvent.o: ../Screen.h ../../geometry/Rect.h ../CallbackEvent.h
handleEvent.o: ../Event.h ../../geometry/Point.h ../LayerManager.h
handleEvent.o: ../LayerInterface.h ../../system/delay.h
horizontalMenu.o: ../Menu.h ../Component.h ../../geometry/Rect.h
horizontalMenu.o: ../../geometry/Point.h ../Screen.h ../LayerManager.h
horizontalMenu.o: ../LayerInterface.h ../Layer.h ../Font.h
horizontalMenu.o: ../../common/Color.h ../TextSurface.h ../Surface.h
horizontalMenu.o: ../Button.h ../CallbackEvent.h ../Event.h ../EventUtils.h
horizontalMenu.o: ../../system/delay.h
inputDraw.o: ../Font.h ../../common/Color.h ../Screen.h ../../geometry/Rect.h
inputDraw.o: ../LayerManager.h ../LayerInterface.h ../../geometry/Point.h
inputDraw.o: ../Layer.h ../TextSurface.h ../Surface.h ../Label.h
inputDraw.o: ../Component.h ../TextInput.h ../Event.h ../CallbackEvent.h
inputDraw.o: ../EventUtils.h ../../system/delay.h
menuSample.o: ../Menu.h ../Component.h ../../geometry/Rect.h
menuSample.o: ../../geometry/Point.h ../Screen.h ../LayerManager.h
menuSample.o: ../LayerInterface.h ../Layer.h ../Font.h ../../common/Color.h
menuSample.o: ../TextSurface.h ../Surface.h ../Button.h ../CallbackEvent.h
menuSample.o: ../Event.h ../EventUtils.h ../../system/delay.h
rectMove.o: ../Screen.h ../../geometry/Rect.h ../../common/Color.h
rectMove.o: ../ColorSurface.h ../Surface.h ../Label.h ../Component.h
rectMove.o: ../../geometry/Point.h ../LayerManager.h ../LayerInterface.h
rectMove.o: ../Layer.h ../CallbackEvent.h ../Event.h ../EventUtils.h
rectMove.o: ../../system/delay.h
rubiDraw.o: ../Screen.h ../../geometry/Rect.h ../Font.h ../../common/Color.h
rubiDraw.o: ../TextRubiFadeSurface.h ../Surface.h
