2021-09-20 14:50:02 -06:00
|
|
|
# Open Watcom makefile to build SDL2 tests for OS/2
|
|
|
|
# wmake -f Makefile.os2
|
|
|
|
|
2021-11-12 13:55:40 -07:00
|
|
|
INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h" -I"../include"
|
2021-09-20 14:50:02 -06:00
|
|
|
|
|
|
|
CFLAGS = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
|
|
|
|
CFLAGS+= -wx -wcd=303
|
|
|
|
|
|
|
|
LIBPATH = ..
|
2022-04-12 06:07:18 -06:00
|
|
|
LIBS = SDL2.lib SDL2test.lib testutils.lib
|
2021-09-20 14:50:02 -06:00
|
|
|
|
|
|
|
#CFLAGS+= -DHAVE_SDL_TTF
|
|
|
|
#TTFLIBS = SDL2ttf.lib
|
|
|
|
|
2018-11-20 00:55:00 -07:00
|
|
|
TARGETS = testatomic.exe testdisplayinfo.exe testbounds.exe testdraw2.exe &
|
|
|
|
testdrawchessboard.exe testdropfile.exe testerror.exe testfile.exe &
|
2021-04-06 13:49:23 -06:00
|
|
|
testfilesystem.exe testgamecontroller.exe testgeometry.exe testgesture.exe &
|
2020-10-11 11:00:20 -06:00
|
|
|
testhittesting.exe testhotplug.exe testiconv.exe testime.exe testlocale.exe &
|
2018-11-20 00:55:00 -07:00
|
|
|
testintersections.exe testjoystick.exe testkeys.exe testloadso.exe &
|
|
|
|
testlock.exe testmessage.exe testoverlay2.exe testplatform.exe &
|
|
|
|
testpower.exe testsensor.exe testrelative.exe testrendercopyex.exe &
|
|
|
|
testrendertarget.exe testrumble.exe testscale.exe testsem.exe &
|
|
|
|
testshader.exe testshape.exe testsprite2.exe testspriteminimal.exe &
|
|
|
|
teststreaming.exe testthread.exe testtimer.exe testver.exe &
|
|
|
|
testviewport.exe testwm2.exe torturethread.exe checkkeys.exe &
|
2021-09-09 14:33:35 -06:00
|
|
|
checkkeysthreads.exe testmouse.exe &
|
2018-11-20 00:55:00 -07:00
|
|
|
controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
|
|
|
|
testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
|
2021-11-12 13:55:40 -07:00
|
|
|
testsurround.exe testyuv.exe testgl2.exe testvulkan.exe testnative.exe &
|
|
|
|
testautomation.exe
|
2018-11-20 00:55:00 -07:00
|
|
|
|
|
|
|
# testautomation sources
|
|
|
|
TASRCS = testautomation.c testautomation_audio.c testautomation_clipboard.c &
|
|
|
|
testautomation_events.c testautomation_hints.c &
|
|
|
|
testautomation_keyboard.c testautomation_main.c &
|
|
|
|
testautomation_mouse.c testautomation_pixels.c &
|
|
|
|
testautomation_platform.c testautomation_rect.c &
|
|
|
|
testautomation_render.c testautomation_rwops.c &
|
|
|
|
testautomation_sdltest.c testautomation_stdlib.c &
|
|
|
|
testautomation_surface.c testautomation_syswm.c &
|
|
|
|
testautomation_timer.c testautomation_video.c
|
|
|
|
|
|
|
|
OBJS = $(TARGETS:.exe=.obj)
|
|
|
|
COBJS = $(CSRCS:.c=.obj)
|
|
|
|
TAOBJS = $(TASRCS:.c=.obj)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
all: testutils.lib $(TARGETS)
|
2018-11-20 00:55:00 -07:00
|
|
|
|
|
|
|
.c: ../src/test
|
|
|
|
|
|
|
|
.obj.exe:
|
|
|
|
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
|
|
|
|
|
|
|
|
.c.obj:
|
2019-09-10 01:03:20 -06:00
|
|
|
wcc386 $(CFLAGS) -fo=$^@ $<
|
2018-11-20 00:55:00 -07:00
|
|
|
|
|
|
|
# specials
|
|
|
|
testautomation.exe: $(TAOBJS)
|
|
|
|
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
|
|
|
|
|
2020-10-14 14:01:06 -06:00
|
|
|
testnative.exe: testnative.obj testnativeos2.obj
|
|
|
|
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
|
|
|
|
|
2018-11-20 00:55:00 -07:00
|
|
|
testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
|
|
|
|
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
|
|
|
|
|
|
|
|
testyuv.exe: testyuv.obj testyuv_cvt.obj
|
|
|
|
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
|
|
|
|
|
|
|
|
testime.exe: testime.obj
|
2021-09-20 14:50:02 -06:00
|
|
|
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS) $(TTFLIBS)} op q op el file {$<} name $@
|
2018-11-20 00:55:00 -07:00
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testutils.lib: testutils.obj
|
|
|
|
wlib -q -b -n -c -pa -s -t -zld -ii -io $@ $<
|
|
|
|
|
2018-11-20 00:55:00 -07:00
|
|
|
clean: .SYMBOLIC
|
2022-04-12 06:07:18 -06:00
|
|
|
rm -f *.obj *.err
|
2018-11-20 00:55:00 -07:00
|
|
|
distclean: .SYMBOLIC clean
|
2022-04-12 06:07:18 -06:00
|
|
|
rm -f *.exe *.lib
|