# 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 =
LDLIBS = `sdl-config --libs` -lSDL_ttf -lGL -lboost_signals
#LDLIBS = `sdl-config --libs` -lSDL_ttf -lopengl32 -lboost_signals-mgw34-mt


# Target
TARGET = \
	simpleScreen \
	glScreen \
	glTextureDraw \
	drawText \
	handleEvent \
	inputDraw \
	chatMessageSample \
	captionAndIcon \
	rectMove \
	toggleScreen \
	buttonSample \
	menuSample \

all : $(TARGET)

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

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

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

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

PROGRAMS = drawText handleEvent inputDraw chatMessageSample rectMove buttonSample menuSample
$(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
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
drawText.o: ../Screen.h ../../geometry/Rect.h ../Font.h ../../common/Color.h
drawText.o: ../TextSurface.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
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
