# Watcom Makefile for SDL test applications

INCPATH=-I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h" -I"../include"
cflags = -bm -bt=OS2 -5 -fpi -sg -otexan -wx -ei $(INCPATH)

.extensions:
.extensions: .exe .obj .c

all :   testalpha.exe     &
        testbitmap.exe    &
        testcdrom.exe     &
        testgamma.exe     &
        testjoystick.exe  &
        testkeys.exe      &
        testlock.exe      &
        testsem.exe       &
        testsprite.exe    &
        testhread.exe     &
        testtimer.exe     &
        testplatform.exe  &
        testver.exe       &
        testvidinfo.exe   &
        testwin.exe       &
        testwm.exe        &
        threadwin.exe     &
        torturethread.exe &
        checkkeys.exe

.c.obj : .AUTODEPEND
    wcc386 $(cflags) -fo=$^@ $<

.obj.exe : .AUTODEPEND
    wlink SYS os2v2 L "../SDL12.lib" OPTION QUIET F {$<} name $*

clean: .SYMBOLIC
        @if exist *.obj rm *.obj
        @if exist *.err rm *.err
        @if exist *.exe rm *.exe
