test/Makefile.wat
author Ryan C. Gordon <icculus@icculus.org>
Fri, 13 Jan 2006 02:32:07 +0000
changeset 1246 ca51a76a7328
parent 1190 173c063d4f55
permissions -rw-r--r--
Make error message meaningful if dlopen() fails on libX11.
icculus@1190
     1
#=============================================================================
icculus@1190
     2
#          This is a Watcom makefile to build SDL.DLL for OS/2
icculus@1190
     3
#
icculus@1190
     4
# Makefile for test applications
icculus@1190
     5
#=============================================================================
icculus@1190
     6
icculus@1190
     7
# Create debug build or not?
icculus@1190
     8
debug_build=defined
icculus@1190
     9
icculus@1190
    10
#-----------------------------------------------------------------------------
icculus@1190
    11
# The next part is somewhat general, for creation of EXE files.
icculus@1190
    12
#-----------------------------------------------------------------------------
icculus@1190
    13
icculus@1190
    14
cflags = $(debugflags) -bm -bt=OS2 -5 -fpi -sg -otexan -wx -ei
icculus@1190
    15
icculus@1190
    16
.before
icculus@1190
    17
    set include=$(%os2tk)\h;$(%include);../include
icculus@1190
    18
icculus@1190
    19
.extensions:
icculus@1190
    20
.extensions: .exe .obj .c
icculus@1190
    21
icculus@1190
    22
all :   testalpha.exe     &
icculus@1190
    23
        testbitmap.exe    &
icculus@1190
    24
        testcdrom.exe     &
icculus@1190
    25
        testcpuinfo.exe   &
icculus@1190
    26
        testjoystick.exe  &
icculus@1190
    27
        testkeys.exe      &
icculus@1190
    28
        testlock.exe      &
icculus@1190
    29
        testsem.exe       &
icculus@1190
    30
        testsprite.exe    &
icculus@1190
    31
        testtimer.exe     &
icculus@1190
    32
        testtypes.exe     &
icculus@1190
    33
        testver.exe       &
icculus@1190
    34
        testvidinfo.exe   &
icculus@1190
    35
        testwin.exe       &
icculus@1190
    36
        testwm.exe        &
icculus@1190
    37
        threadwin.exe     &
icculus@1190
    38
        torturethread.exe &
icculus@1190
    39
        checkkeys.exe
icculus@1190
    40
icculus@1190
    41
.c.obj : .AUTODEPEND
icculus@1190
    42
    wcc386 -zq -bm -5s -ei -oteaxan -wx $[* $(cflags)
icculus@1190
    43
icculus@1190
    44
.obj.exe : .AUTODEPEND
icculus@1190
    45
    wlink system os2v2 F $* L ..\src\sdl.lib name $@ op quiet
icculus@1190
    46
icculus@1190
    47
clean : .SYMBOLIC
icculus@1190
    48
        @if exist *.exe del *.exe
icculus@1190
    49
        @if exist *.obj del *.obj
icculus@1190
    50
        @if exist *.map del *.map
icculus@1190
    51
        @if exist *.res del *.res
icculus@1190
    52
        @if exist *.lst del *.lst