# Makefile for common/samples
# Satofumi KAMIMURA
# $Id$

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

# Target
TARGET = \
	accessPropertySample \
	getUserNameSample \
	lockGuardSample \
	cycleTimerSample \
	delaySample \
	findFilesSample \

all : ${TARGET}
	cp original_property.txt property.txt

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

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

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../common.a
${REQUIRE_LIBS} :
	cd ${@D}/ && ${MAKE} ${@F}

${TARGET} : ${REQUIRE_LIBS}

# DO NOT DELETE

accessPropertySample.o: ../AccessProperty.h
cycleTimerSample.o: ../CycleTimer.h
delaySample.o: ../Delay.h
findFilesSample.o: ../FindFiles.h
getUserNameSample.o: ../GetAccountName.h
lockGuardSample.o: ../LockGuard.h
