# Makefile for rbo/utils/cpp/sample
# Satofumi KAMIMURA
# $Id$

# Compile options
CC = ${CXX}
CXXFLAGS = -g -O0 -Wall -Werror ${INCLUDES} `sdl-config --cflags`
INCLUDES = -I..
LDFLAGS =
LDLIBS = `sdl-config --libs` -lSDL_net

# Target
UTILS_CPP_LIB = ../utils.a
TARGET = \
	peerConnect \
	ownIPAddress \
	ipView \
	getHostInfo \

all : ${TARGET}

clean :
	${RM} ${TARGET} *.o

depend :
	makedepend -Y -- ${INCLUDES} -- ${wildcard *.cpp}

.PHONY : all clean depend
######################################################################
${UTILS_CPP_LIB} :
	cd ${@D}/ && ${MAKE} ${@F}

${TARGET} : ${UTILS_CPP_LIB}# DO NOT DELETE

peerConnect.o: ../peerConnection.h ../tcpipDevice.h ../sdlBase.h
peerConnect.o: ../connectionDevice.h ../ringBufferTemplate.h
# DO NOT DELETE

ownIPAddress.o: ../tcpipServer.h ../tcpipDevice.h ../sdlBase.h
ownIPAddress.o: ../connectionDevice.h ../ringBufferTemplate.h
peerConnect.o: ../peerConnection.h ../tcpipDevice.h ../sdlBase.h
peerConnect.o: ../connectionDevice.h ../ringBufferTemplate.h
