test/Makefile.os2
author Sam Lantinga <slouken@libsdl.org>
Thu, 23 May 2019 14:19:00 -0700
changeset 12756 4116bf232fe7
parent 12425 266c5fbe0bbd
permissions -rw-r--r--
Added a function to get the current Android SDK version at runtime
sezeroz@12425
     1
BINPATH = .
sezeroz@12425
     2
sezeroz@12425
     3
TARGETS = testatomic.exe testdisplayinfo.exe testbounds.exe testdraw2.exe &
sezeroz@12425
     4
          testdrawchessboard.exe testdropfile.exe testerror.exe testfile.exe &
sezeroz@12425
     5
          testfilesystem.exe testgamecontroller.exe testgesture.exe &
sezeroz@12425
     6
          testhittesting.exe testhotplug.exe testiconv.exe testime.exe &
sezeroz@12425
     7
          testintersections.exe testjoystick.exe testkeys.exe testloadso.exe &
sezeroz@12425
     8
          testlock.exe testmessage.exe testoverlay2.exe testplatform.exe &
sezeroz@12425
     9
          testpower.exe testsensor.exe testrelative.exe testrendercopyex.exe &
sezeroz@12425
    10
          testrendertarget.exe testrumble.exe testscale.exe testsem.exe &
sezeroz@12425
    11
          testshader.exe testshape.exe testsprite2.exe testspriteminimal.exe &
sezeroz@12425
    12
          teststreaming.exe testthread.exe testtimer.exe testver.exe &
sezeroz@12425
    13
          testviewport.exe testwm2.exe torturethread.exe checkkeys.exe &
sezeroz@12425
    14
          controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
sezeroz@12425
    15
          testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
sezeroz@12425
    16
          testyuv.exe testgl2.exe testvulkan.exe testautomation.exe
sezeroz@12425
    17
sezeroz@12425
    18
# SDL2test.lib sources (../src/test)
sezeroz@12425
    19
sezeroz@12425
    20
CSRCS = SDL_test_assert.c SDL_test_common.c SDL_test_compare.c &
sezeroz@12425
    21
        SDL_test_crc32.c SDL_test_font.c SDL_test_fuzzer.c SDL_test_harness.c &
sezeroz@12425
    22
        SDL_test_imageBlit.c SDL_test_imageBlitBlend.c SDL_test_imageFace.c &
sezeroz@12425
    23
        SDL_test_imagePrimitives.c SDL_test_imagePrimitivesBlend.c &
sezeroz@12425
    24
        SDL_test_log.c SDL_test_md5.c SDL_test_random.c SDL_test_memory.c
sezeroz@12425
    25
TESTLIB = SDL2test.lib
sezeroz@12425
    26
sezeroz@12425
    27
# testautomation sources
sezeroz@12425
    28
sezeroz@12425
    29
TASRCS = testautomation.c testautomation_audio.c testautomation_clipboard.c &
sezeroz@12425
    30
         testautomation_events.c testautomation_hints.c &
sezeroz@12425
    31
         testautomation_keyboard.c testautomation_main.c &
sezeroz@12425
    32
         testautomation_mouse.c testautomation_pixels.c &
sezeroz@12425
    33
         testautomation_platform.c testautomation_rect.c &
sezeroz@12425
    34
         testautomation_render.c testautomation_rwops.c &
sezeroz@12425
    35
         testautomation_sdltest.c testautomation_stdlib.c &
sezeroz@12425
    36
         testautomation_surface.c testautomation_syswm.c &
sezeroz@12425
    37
         testautomation_timer.c testautomation_video.c
sezeroz@12425
    38
sezeroz@12425
    39
OBJS = $(TARGETS:.exe=.obj)
sezeroz@12425
    40
COBJS = $(CSRCS:.c=.obj)
sezeroz@12425
    41
TAOBJS = $(TASRCS:.c=.obj)
sezeroz@12425
    42
sezeroz@12425
    43
all: $(TARGETS)
sezeroz@12425
    44
sezeroz@12425
    45
INCPATH = -I$(%WATCOM)/h/os2 -I$(%WATCOM)/h -I../include
sezeroz@12425
    46
sezeroz@12425
    47
CFLAGS = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
sezeroz@12425
    48
sezeroz@12425
    49
LIBPATH = ..
sezeroz@12425
    50
LIBS    = SDL2.lib $(TESTLIB)
sezeroz@12425
    51
sezeroz@12425
    52
#CFLAGS+= -DHAVE_SDL_TTF
sezeroz@12425
    53
#LIBS_TTF = SDL2ttf.lib
sezeroz@12425
    54
sezeroz@12425
    55
.c: ../src/test
sezeroz@12425
    56
sezeroz@12425
    57
$(TESTLIB): $(COBJS)
sezeroz@12425
    58
  wlib -q -b -n $@ $(COBJS)
sezeroz@12425
    59
sezeroz@12425
    60
.obj.exe:
sezeroz@12425
    61
  @%make $(TESTLIB)
sezeroz@12425
    62
  wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
sezeroz@12425
    63
sezeroz@12425
    64
.c.obj:
sezeroz@12425
    65
  wcc386 $(CFLAGS) -wcd=107 -fo=$^@ $<
sezeroz@12425
    66
sezeroz@12425
    67
# specials
sezeroz@12425
    68
testautomation.exe: $(TAOBJS)
sezeroz@12425
    69
  @%make $(TESTLIB)
sezeroz@12425
    70
  wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
sezeroz@12425
    71
sezeroz@12425
    72
testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
sezeroz@12425
    73
  @%make $(TESTLIB)
sezeroz@12425
    74
  wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
sezeroz@12425
    75
sezeroz@12425
    76
testyuv.exe: testyuv.obj testyuv_cvt.obj
sezeroz@12425
    77
  @%make $(TESTLIB)
sezeroz@12425
    78
  wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
sezeroz@12425
    79
sezeroz@12425
    80
testime.exe: testime.obj
sezeroz@12425
    81
  @%make $(TESTLIB)
sezeroz@12425
    82
  wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS) $(LIBS_TTF)} op q op el file {$<} name $@
sezeroz@12425
    83
sezeroz@12425
    84
clean: .SYMBOLIC
sezeroz@12425
    85
  @echo * Clean tests in $(BINPATH)
sezeroz@12425
    86
  @if exist *.obj rm *.obj
sezeroz@12425
    87
  @if exist *.err rm *.err
sezeroz@12425
    88
sezeroz@12425
    89
distclean: .SYMBOLIC clean
sezeroz@12425
    90
  @if exist *.exe rm *.exe
sezeroz@12425
    91
  @if exist $(TESTLIB) rm $(TESTLIB)