2015-06-21 09:33:46 -06:00
|
|
|
# Makefile to build the SDL tests
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
2020-11-25 06:30:29 -07:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
datarootdir = @datarootdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
CC = @CC@
|
|
|
|
EXE = @EXE@
|
|
|
|
CFLAGS = @CFLAGS@ -g
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
TARGETS = \
|
|
|
|
checkkeys$(EXE) \
|
2021-03-12 13:58:20 -07:00
|
|
|
checkkeysthreads$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
controllermap$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
loopwave$(EXE) \
|
|
|
|
loopwavequeue$(EXE) \
|
|
|
|
testatomic$(EXE) \
|
2016-07-31 22:18:56 -06:00
|
|
|
testaudiocapture$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testaudiohotplug$(EXE) \
|
|
|
|
testaudioinfo$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testautomation$(EXE) \
|
2016-01-04 21:52:40 -07:00
|
|
|
testbounds$(EXE) \
|
2016-07-13 10:41:43 -06:00
|
|
|
testcustomcursor$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testdisplayinfo$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testdraw2$(EXE) \
|
|
|
|
testdrawchessboard$(EXE) \
|
|
|
|
testdropfile$(EXE) \
|
|
|
|
testerror$(EXE) \
|
2020-11-11 20:15:43 -07:00
|
|
|
testevdev$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testfile$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testfilesystem$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testgamecontroller$(EXE) \
|
2021-04-06 13:49:23 -06:00
|
|
|
testgeometry$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testgesture$(EXE) \
|
2022-06-04 14:16:28 -06:00
|
|
|
testguid$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testhaptic$(EXE) \
|
|
|
|
testhittesting$(EXE) \
|
|
|
|
testhotplug$(EXE) \
|
|
|
|
testiconv$(EXE) \
|
|
|
|
testime$(EXE) \
|
|
|
|
testintersections$(EXE) \
|
|
|
|
testjoystick$(EXE) \
|
|
|
|
testkeys$(EXE) \
|
|
|
|
testloadso$(EXE) \
|
2020-05-04 00:27:29 -06:00
|
|
|
testlocale$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testlock$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testmessage$(EXE) \
|
2021-09-09 14:33:35 -06:00
|
|
|
testmouse$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testmultiaudio$(EXE) \
|
|
|
|
testnative$(EXE) \
|
|
|
|
testoverlay2$(EXE) \
|
|
|
|
testplatform$(EXE) \
|
|
|
|
testpower$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testqsort$(EXE) \
|
|
|
|
testrelative$(EXE) \
|
|
|
|
testrendercopyex$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testrendertarget$(EXE) \
|
|
|
|
testresample$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testrumble$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testscale$(EXE) \
|
|
|
|
testsem$(EXE) \
|
2018-08-21 13:11:34 -06:00
|
|
|
testsensor$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testshape$(EXE) \
|
|
|
|
testsprite2$(EXE) \
|
|
|
|
testspriteminimal$(EXE) \
|
|
|
|
teststreaming$(EXE) \
|
2021-10-29 00:11:59 -06:00
|
|
|
testsurround$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testthread$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testtimer$(EXE) \
|
2020-10-05 09:30:33 -06:00
|
|
|
testurl$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testver$(EXE) \
|
|
|
|
testviewport$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testvulkan$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
testwm2$(EXE) \
|
2017-11-12 23:51:12 -07:00
|
|
|
testyuv$(EXE) \
|
2015-06-21 09:33:46 -06:00
|
|
|
torturethread$(EXE) \
|
2019-05-18 21:47:57 -06:00
|
|
|
|
2021-11-20 11:55:20 -07:00
|
|
|
|
2019-05-18 21:47:57 -06:00
|
|
|
@OPENGL_TARGETS@ += testgl2$(EXE) testshader$(EXE)
|
|
|
|
@OPENGLES1_TARGETS@ += testgles$(EXE)
|
|
|
|
@OPENGLES2_TARGETS@ += testgles2$(EXE)
|
|
|
|
|
|
|
|
|
2022-05-04 06:53:15 -06:00
|
|
|
all: Makefile $(TARGETS) copydatafiles generatetestmeta
|
2015-06-21 09:33:46 -06:00
|
|
|
|
2020-11-25 06:30:29 -07:00
|
|
|
installedtestsdir = $(libexecdir)/installed-tests/SDL2
|
2022-05-04 06:53:15 -06:00
|
|
|
installedtestsmetadir = $(datadir)/installed-tests/SDL2
|
|
|
|
|
|
|
|
generatetestmeta:
|
|
|
|
rm -f *.test
|
|
|
|
set -e; for exe in $(noninteractive) $(needs_audio) $(needs_display); do \
|
|
|
|
sed \
|
|
|
|
-e 's#@installedtestsdir@#$(installedtestsdir)#g' \
|
|
|
|
-e "s#@exe@#$$exe#g" \
|
|
|
|
< $(srcdir)/template.test.in > $$exe.test; \
|
|
|
|
done
|
2020-11-25 06:30:29 -07:00
|
|
|
|
|
|
|
install: all
|
2022-05-20 12:43:02 -06:00
|
|
|
install -d $(DESTDIR)$(installedtestsdir)
|
|
|
|
install $(TARGETS) $(DESTDIR)$(installedtestsdir)
|
|
|
|
install -m644 $(DATA) $(DESTDIR)$(installedtestsdir)
|
|
|
|
install -d $(DESTDIR)$(installedtestsmetadir)
|
|
|
|
install -m644 *.test $(DESTDIR)$(installedtestsmetadir)
|
2020-11-25 06:30:29 -07:00
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
Makefile: $(srcdir)/Makefile.in
|
|
|
|
$(SHELL) config.status $@
|
|
|
|
|
|
|
|
checkkeys$(EXE): $(srcdir)/checkkeys.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2021-03-12 13:58:20 -07:00
|
|
|
|
|
|
|
checkkeysthreads$(EXE): $(srcdir)/checkkeysthreads.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2015-06-21 09:33:46 -06:00
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
loopwave$(EXE): $(srcdir)/loopwave.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2021-10-29 00:11:59 -06:00
|
|
|
testsurround$(EXE): $(srcdir)/testsurround.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testresample$(EXE): $(srcdir)/testresample.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testautomation$(EXE): $(srcdir)/testautomation.c \
|
|
|
|
$(srcdir)/testautomation_audio.c \
|
|
|
|
$(srcdir)/testautomation_clipboard.c \
|
|
|
|
$(srcdir)/testautomation_events.c \
|
|
|
|
$(srcdir)/testautomation_keyboard.c \
|
|
|
|
$(srcdir)/testautomation_main.c \
|
|
|
|
$(srcdir)/testautomation_mouse.c \
|
|
|
|
$(srcdir)/testautomation_pixels.c \
|
|
|
|
$(srcdir)/testautomation_platform.c \
|
|
|
|
$(srcdir)/testautomation_rect.c \
|
|
|
|
$(srcdir)/testautomation_render.c \
|
|
|
|
$(srcdir)/testautomation_rwops.c \
|
|
|
|
$(srcdir)/testautomation_sdltest.c \
|
|
|
|
$(srcdir)/testautomation_stdlib.c \
|
|
|
|
$(srcdir)/testautomation_surface.c \
|
|
|
|
$(srcdir)/testautomation_syswm.c \
|
|
|
|
$(srcdir)/testautomation_timer.c \
|
|
|
|
$(srcdir)/testautomation_video.c \
|
|
|
|
$(srcdir)/testautomation_hints.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-07-31 22:18:56 -06:00
|
|
|
testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testatomic$(EXE): $(srcdir)/testatomic.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testintersections$(EXE): $(srcdir)/testintersections.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testrelative$(EXE): $(srcdir)/testrelative.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testhittesting$(EXE): $(srcdir)/testhittesting.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testdraw2$(EXE): $(srcdir)/testdraw2.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testdropfile$(EXE): $(srcdir)/testdropfile.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testerror$(EXE): $(srcdir)/testerror.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2020-11-11 20:15:43 -07:00
|
|
|
testevdev$(EXE): $(srcdir)/testevdev.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testfile$(EXE): $(srcdir)/testfile.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2021-04-06 13:49:23 -06:00
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testgeometry$(EXE): $(srcdir)/testgeometry.c $(srcdir)/testutils.c
|
2021-04-06 13:49:23 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testgesture$(EXE): $(srcdir)/testgesture.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2022-06-04 14:16:28 -06:00
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testgl2$(EXE): $(srcdir)/testgl2.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
|
|
|
|
|
|
|
testgles$(EXE): $(srcdir)/testgles.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
|
|
|
|
|
|
|
|
testgles2$(EXE): $(srcdir)/testgles2.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testgles2_sdf$(EXE): $(srcdir)/testgles2_sdf.c $(srcdir)/testutils.c
|
2021-01-19 02:40:42 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
|
|
|
|
2022-06-04 14:16:28 -06:00
|
|
|
testguid$(EXE): $(srcdir)/testguid.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testhaptic$(EXE): $(srcdir)/testhaptic.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testhotplug$(EXE): $(srcdir)/testhotplug.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testrumble$(EXE): $(srcdir)/testrumble.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testthread$(EXE): $(srcdir)/testthread.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testiconv$(EXE): $(srcdir)/testiconv.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testime$(EXE): $(srcdir)/testime.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
|
|
|
|
|
|
|
|
testjoystick$(EXE): $(srcdir)/testjoystick.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testkeys$(EXE): $(srcdir)/testkeys.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testloadso$(EXE): $(srcdir)/testloadso.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testlock$(EXE): $(srcdir)/testlock.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
ifeq (@ISMACOSX@,true)
|
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
|
|
|
$(srcdir)/testnativecocoa.m \
|
2022-04-12 06:07:18 -06:00
|
|
|
$(srcdir)/testutils.c \
|
2015-06-21 09:33:46 -06:00
|
|
|
$(srcdir)/testnativex11.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (@ISWINDOWS@,true)
|
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
2022-04-12 06:07:18 -06:00
|
|
|
$(srcdir)/testutils.c \
|
2015-06-21 09:33:46 -06:00
|
|
|
$(srcdir)/testnativew32.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (@ISUNIX@,true)
|
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
2022-04-12 06:07:18 -06:00
|
|
|
$(srcdir)/testutils.c \
|
2015-06-21 09:33:46 -06:00
|
|
|
$(srcdir)/testnativex11.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
|
|
|
|
endif
|
|
|
|
|
2021-11-30 15:55:56 -07:00
|
|
|
ifeq (@ISOS2@,true)
|
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
|
|
|
$(srcdir)/testnativeos2.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
endif
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
#there's probably a better way of doing this
|
|
|
|
ifeq (@ISMACOSX@,false)
|
|
|
|
ifeq (@ISWINDOWS@,false)
|
|
|
|
ifeq (@ISUNIX@,false)
|
2021-11-30 15:55:56 -07:00
|
|
|
ifeq (@ISOS2@,false)
|
2015-06-21 09:33:46 -06:00
|
|
|
testnative$(EXE): ;
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2021-11-30 15:55:56 -07:00
|
|
|
endif
|
2015-06-21 09:33:46 -06:00
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testplatform$(EXE): $(srcdir)/testplatform.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testpower$(EXE): $(srcdir)/testpower.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testsem$(EXE): $(srcdir)/testsem.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2018-08-21 13:11:34 -06:00
|
|
|
|
|
|
|
testsensor$(EXE): $(srcdir)/testsensor.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2015-06-21 09:33:46 -06:00
|
|
|
|
|
|
|
testshader$(EXE): $(srcdir)/testshader.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
|
|
|
|
|
|
|
|
testshape$(EXE): $(srcdir)/testshape.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
teststreaming$(EXE): $(srcdir)/teststreaming.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
|
|
|
|
|
|
|
testtimer$(EXE): $(srcdir)/testtimer.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2020-10-05 09:30:33 -06:00
|
|
|
testurl$(EXE): $(srcdir)/testurl.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
testver$(EXE): $(srcdir)/testver.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testviewport$(EXE): $(srcdir)/testviewport.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testwm2$(EXE): $(srcdir)/testwm2.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2017-11-17 11:54:46 -07:00
|
|
|
testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
|
2017-11-12 23:51:12 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
torturethread$(EXE): $(srcdir)/torturethread.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
|
|
|
|
|
|
|
testmessage$(EXE): $(srcdir)/testmessage.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-07-14 19:28:26 -06:00
|
|
|
testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-03-09 23:50:43 -07:00
|
|
|
testqsort$(EXE): $(srcdir)/testqsort.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-01-04 21:52:40 -07:00
|
|
|
testbounds$(EXE): $(srcdir)/testbounds.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-07-13 10:41:43 -06:00
|
|
|
testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2022-04-12 06:07:18 -06:00
|
|
|
controllermap$(EXE): $(srcdir)/controllermap.c $(srcdir)/testutils.c
|
2015-06-21 09:33:46 -06:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2017-08-27 20:15:57 -06:00
|
|
|
testvulkan$(EXE): $(srcdir)/testvulkan.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2020-05-04 00:27:29 -06:00
|
|
|
testlocale$(EXE): $(srcdir)/testlocale.c
|
|
|
|
$(CC) -o $@ $? $(CFLAGS) $(LIBS)
|
|
|
|
|
2021-09-09 14:33:35 -06:00
|
|
|
testmouse$(EXE): $(srcdir)/testmouse.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2020-05-04 00:27:29 -06:00
|
|
|
|
2015-06-21 09:33:46 -06:00
|
|
|
clean:
|
2022-05-04 06:53:15 -06:00
|
|
|
rm -f $(TARGETS) *.test
|
2015-06-21 09:33:46 -06:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
rm -f config.status config.cache config.log
|
|
|
|
rm -rf $(srcdir)/autom4te*
|
2017-05-29 16:24:06 -06:00
|
|
|
|
2022-04-12 06:33:58 -06:00
|
|
|
noninteractive = \
|
|
|
|
testatomic$(EXE) \
|
|
|
|
testerror$(EXE) \
|
|
|
|
testevdev$(EXE) \
|
|
|
|
testfilesystem$(EXE) \
|
|
|
|
testkeys$(EXE) \
|
|
|
|
testlocale$(EXE) \
|
|
|
|
testplatform$(EXE) \
|
|
|
|
testpower$(EXE) \
|
|
|
|
testqsort$(EXE) \
|
|
|
|
testthread$(EXE) \
|
|
|
|
testtimer$(EXE) \
|
|
|
|
testver$(EXE) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
needs_audio = \
|
|
|
|
testaudioinfo$(EXE) \
|
|
|
|
testsurround$(EXE) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
needs_display = \
|
|
|
|
testbounds$(EXE) \
|
|
|
|
testdisplayinfo$(EXE) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
TESTS = $(noninteractive) $(needs_audio) $(needs_display)
|
|
|
|
|
|
|
|
check:
|
|
|
|
@set -e; \
|
|
|
|
status=0; \
|
|
|
|
export SDL_AUDIODRIVER=dummy; \
|
|
|
|
export SDL_VIDEODRIVER=dummy; \
|
|
|
|
for exe in $(TESTS); do \
|
|
|
|
echo "$$exe..."; \
|
|
|
|
if ./"$$exe"; then \
|
|
|
|
echo "$$exe: OK"; \
|
|
|
|
else \
|
|
|
|
echo "$$exe: FAILED: $$?"; \
|
|
|
|
status=1; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
exit "$$status"
|
|
|
|
|
2021-09-06 06:09:09 -06:00
|
|
|
DATA = \
|
|
|
|
axis.bmp \
|
|
|
|
button.bmp \
|
|
|
|
controllermap.bmp \
|
|
|
|
controllermap_back.bmp \
|
|
|
|
icon.bmp \
|
|
|
|
moose.dat \
|
|
|
|
sample.bmp \
|
|
|
|
sample.wav \
|
|
|
|
testgles2_sdf_img_normal.bmp \
|
|
|
|
testgles2_sdf_img_sdf.bmp \
|
|
|
|
testyuv.bmp \
|
2021-11-20 11:33:29 -07:00
|
|
|
unifont-13.0.06.hex \
|
2022-04-12 07:05:06 -06:00
|
|
|
utf8.txt \
|
2021-09-06 06:09:09 -06:00
|
|
|
$(NULL)
|
2017-05-29 16:24:06 -06:00
|
|
|
|
2021-09-06 06:09:09 -06:00
|
|
|
ifneq ($(srcdir), .)
|
|
|
|
$(DATA) : %: $(srcdir)/% Makefile
|
2018-09-01 22:35:11 -06:00
|
|
|
cp $< $@
|
2020-12-20 13:22:28 -07:00
|
|
|
endif
|
2018-09-01 22:35:11 -06:00
|
|
|
|
2021-09-06 06:09:09 -06:00
|
|
|
copydatafiles: $(DATA)
|
2017-05-29 16:24:06 -06:00
|
|
|
.PHONY : copydatafiles
|