# This is the Makefile for the SDL test programs

# The location of the SDL library
SDL = ..

# Flags for building the test programs
debug	= true
USEMATH = true

# Allow the configure script to set the default target
ifeq ($(target), )
target := $(shell if [ -f ../.target ]; then cat ../.target; fi )
endif

# The collection of test programs
TARGET	= testtypes testver testkeys testhread testlock testerror testtimer \
          testvidinfo testwin graywin testalpha testsprite testbitmap testwm \
          checkkeys loopwave testcdrom threadwin

# include the GNU magic Makefile
include GNUmake

# Dependencies -- ignore these
testtypes testtypes.exe: testtypes.o
testver testver.exe: testver.o
testhread testhread.exe: testhread.o
testkeys testkeys.exe: testkeys.o
testlock testlock.exe: testlock.o
testerror testerror.exe: testerror.o
testtimer testtimer.exe: testtimer.o
loopwave loopwave.exe: loopwave.o
testvidinfo testvidinfo.exe: testvidinfo.o
testwin testwin.exe: testwin.o
graywin graywin.exe: graywin.o
testalpha testalpha.exe: testalpha.o
testbitmap testbitmap.exe: testbitmap.o
testsprite testsprite.exe: testsprite.o
testwm testwm.exe: testwm.o
checkkeys checkkeys.exe: checkkeys.o
testcdrom testcdrom.exe: testcdrom.o
threadwin threadwin.exe: threadwin.o
