2006-02-20 02:09:49 +00:00
|
|
|
# Makefile to build the SDL tests
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
EXE = @EXE@
|
2013-10-12 11:21:40 -04:00
|
|
|
CFLAGS = @CFLAGS@ -g
|
2006-02-20 02:09:49 +00:00
|
|
|
LIBS = @LIBS@
|
|
|
|
|
2011-02-08 22:11:16 -08:00
|
|
|
TARGETS = \
|
|
|
|
checkkeys$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
controllermap$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
loopwave$(EXE) \
|
2014-07-22 21:41:49 -04:00
|
|
|
loopwavequeue$(EXE) \
|
2014-07-05 16:11:23 -07:00
|
|
|
testatomic$(EXE) \
|
2016-08-01 00:18:56 -04:00
|
|
|
testaudiocapture$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testaudiohotplug$(EXE) \
|
|
|
|
testaudioinfo$(EXE) \
|
2012-12-22 17:24:42 -08:00
|
|
|
testautomation$(EXE) \
|
2016-01-04 23:52:40 -05:00
|
|
|
testbounds$(EXE) \
|
2016-07-13 09:41:43 -07:00
|
|
|
testcustomcursor$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testdisplayinfo$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testdraw2$(EXE) \
|
2013-07-27 03:48:23 -07:00
|
|
|
testdrawchessboard$(EXE) \
|
2013-10-12 11:21:40 -04:00
|
|
|
testdropfile$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testerror$(EXE) \
|
|
|
|
testfile$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testfilesystem$(EXE) \
|
2012-11-26 16:37:54 -08:00
|
|
|
testgamecontroller$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testgesture$(EXE) \
|
|
|
|
testhaptic$(EXE) \
|
2014-05-28 01:22:47 -04:00
|
|
|
testhittesting$(EXE) \
|
2014-02-03 22:52:18 -05:00
|
|
|
testhotplug$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testiconv$(EXE) \
|
|
|
|
testime$(EXE) \
|
|
|
|
testintersections$(EXE) \
|
|
|
|
testjoystick$(EXE) \
|
|
|
|
testkeys$(EXE) \
|
|
|
|
testloadso$(EXE) \
|
|
|
|
testlock$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testmessage$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testmultiaudio$(EXE) \
|
2012-01-07 16:57:09 -05:00
|
|
|
testnative$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testoverlay2$(EXE) \
|
|
|
|
testplatform$(EXE) \
|
|
|
|
testpower$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testqsort$(EXE) \
|
|
|
|
testrelative$(EXE) \
|
|
|
|
testrendercopyex$(EXE) \
|
2012-01-18 22:45:49 -05:00
|
|
|
testrendertarget$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testresample$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testrumble$(EXE) \
|
2011-02-09 15:37:07 -08:00
|
|
|
testscale$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testsem$(EXE) \
|
2018-08-21 12:11:34 -07:00
|
|
|
testsensor$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testshape$(EXE) \
|
|
|
|
testsprite2$(EXE) \
|
|
|
|
testspriteminimal$(EXE) \
|
2011-02-11 12:24:59 -08:00
|
|
|
teststreaming$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testthread$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testtimer$(EXE) \
|
|
|
|
testver$(EXE) \
|
2013-11-15 22:05:26 -08:00
|
|
|
testviewport$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testvulkan$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
testwm2$(EXE) \
|
2017-11-12 22:51:12 -08:00
|
|
|
testyuv$(EXE) \
|
2011-02-08 22:11:16 -08:00
|
|
|
torturethread$(EXE) \
|
2019-05-18 23:47:57 -04:00
|
|
|
|
2013-12-02 19:35:04 -03:00
|
|
|
|
2019-05-18 23:47:57 -04:00
|
|
|
@OPENGL_TARGETS@ += testgl2$(EXE) testshader$(EXE)
|
|
|
|
@OPENGLES1_TARGETS@ += testgles$(EXE)
|
|
|
|
@OPENGLES2_TARGETS@ += testgles2$(EXE)
|
|
|
|
|
|
|
|
|
2017-05-29 18:24:06 -04:00
|
|
|
all: Makefile $(TARGETS) copydatafiles
|
2006-07-18 07:49:51 +00:00
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in
|
|
|
|
$(SHELL) config.status $@
|
2006-02-20 02:09:49 +00:00
|
|
|
|
|
|
|
checkkeys$(EXE): $(srcdir)/checkkeys.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
|
|
|
loopwave$(EXE): $(srcdir)/loopwave.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2014-07-22 21:41:49 -04:00
|
|
|
loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2009-01-11 04:05:28 +00:00
|
|
|
testresample$(EXE): $(srcdir)/testresample.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2009-01-11 04:05:28 +00:00
|
|
|
|
2006-10-17 09:15:21 +00:00
|
|
|
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-10-17 09:15:21 +00:00
|
|
|
|
2012-12-22 17:24:42 -08:00
|
|
|
testautomation$(EXE): $(srcdir)/testautomation.c \
|
2013-05-24 03:23:21 -07:00
|
|
|
$(srcdir)/testautomation_audio.c \
|
2012-12-22 17:24:42 -08:00
|
|
|
$(srcdir)/testautomation_clipboard.c \
|
2013-05-24 03:23:21 -07:00
|
|
|
$(srcdir)/testautomation_events.c \
|
|
|
|
$(srcdir)/testautomation_keyboard.c \
|
2013-02-12 11:47:31 -08:00
|
|
|
$(srcdir)/testautomation_main.c \
|
2013-05-24 03:23:21 -07:00
|
|
|
$(srcdir)/testautomation_mouse.c \
|
|
|
|
$(srcdir)/testautomation_pixels.c \
|
2012-12-22 17:24:42 -08:00
|
|
|
$(srcdir)/testautomation_platform.c \
|
|
|
|
$(srcdir)/testautomation_rect.c \
|
|
|
|
$(srcdir)/testautomation_render.c \
|
2012-12-24 14:43:57 -08:00
|
|
|
$(srcdir)/testautomation_rwops.c \
|
2013-05-24 03:23:21 -07:00
|
|
|
$(srcdir)/testautomation_sdltest.c \
|
|
|
|
$(srcdir)/testautomation_stdlib.c \
|
2013-01-06 15:17:59 -08:00
|
|
|
$(srcdir)/testautomation_surface.c \
|
2013-01-06 18:19:30 -08:00
|
|
|
$(srcdir)/testautomation_syswm.c \
|
2013-05-01 22:14:29 -07:00
|
|
|
$(srcdir)/testautomation_timer.c \
|
2014-03-19 21:39:55 -07:00
|
|
|
$(srcdir)/testautomation_video.c \
|
|
|
|
$(srcdir)/testautomation_hints.c
|
2013-06-05 21:14:26 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2012-12-22 17:24:42 -08:00
|
|
|
|
2006-10-17 09:15:21 +00:00
|
|
|
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-10-17 09:15:21 +00:00
|
|
|
|
2015-03-16 02:11:39 -04:00
|
|
|
testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-08-01 00:18:56 -04:00
|
|
|
testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2011-02-11 12:24:59 -08:00
|
|
|
testatomic$(EXE): $(srcdir)/testatomic.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testintersections$(EXE): $(srcdir)/testintersections.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2009-01-04 19:33:21 +00:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testrelative$(EXE): $(srcdir)/testrelative.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2012-05-30 11:25:35 -04:00
|
|
|
|
2014-05-28 01:22:47 -04:00
|
|
|
testhittesting$(EXE): $(srcdir)/testhittesting.c
|
2014-05-27 01:27:42 -04:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testdraw2$(EXE): $(srcdir)/testdraw2.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2008-12-24 13:04:18 +00:00
|
|
|
|
2013-07-27 03:48:23 -07:00
|
|
|
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2013-10-12 11:21:40 -04:00
|
|
|
testdropfile$(EXE): $(srcdir)/testdropfile.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2006-02-20 02:09:49 +00:00
|
|
|
testerror$(EXE): $(srcdir)/testerror.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2006-02-27 19:19:22 +00:00
|
|
|
testfile$(EXE): $(srcdir)/testfile.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-27 19:19:22 +00:00
|
|
|
|
2012-11-26 16:37:54 -08:00
|
|
|
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2011-02-11 12:24:59 -08:00
|
|
|
testgesture$(EXE): $(srcdir)/testgesture.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testgl2$(EXE): $(srcdir)/testgl2.c
|
2013-12-14 20:18:43 -03:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2009-03-04 15:10:47 +00:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testgles$(EXE): $(srcdir)/testgles.c
|
2013-10-09 11:30:01 -03:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
|
2006-07-18 07:49:51 +00:00
|
|
|
|
2013-11-19 10:56:38 -03:00
|
|
|
testgles2$(EXE): $(srcdir)/testgles2.c
|
2013-12-14 20:18:43 -03:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2013-11-19 10:56:38 -03:00
|
|
|
|
2011-02-11 12:24:59 -08:00
|
|
|
testhaptic$(EXE): $(srcdir)/testhaptic.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2014-02-03 22:52:18 -05:00
|
|
|
testhotplug$(EXE): $(srcdir)/testhotplug.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2011-02-20 10:54:44 -08:00
|
|
|
testrumble$(EXE): $(srcdir)/testrumble.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2011-02-20 10:54:44 -08:00
|
|
|
|
2011-03-25 11:09:57 -07:00
|
|
|
testthread$(EXE): $(srcdir)/testthread.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2006-03-13 01:08:00 +00:00
|
|
|
testiconv$(EXE): $(srcdir)/testiconv.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-03-13 01:08:00 +00:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testime$(EXE): $(srcdir)/testime.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testjoystick$(EXE): $(srcdir)/testjoystick.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
|
|
|
testkeys$(EXE): $(srcdir)/testkeys.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2011-02-11 12:24:59 -08:00
|
|
|
testloadso$(EXE): $(srcdir)/testloadso.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2006-02-20 02:09:49 +00:00
|
|
|
testlock$(EXE): $(srcdir)/testlock.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2012-08-09 14:28:45 -04:00
|
|
|
ifeq (@ISMACOSX@,true)
|
2012-01-07 16:57:09 -05:00
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
2013-07-21 12:47:47 -07:00
|
|
|
$(srcdir)/testnativecocoa.m \
|
|
|
|
$(srcdir)/testnativex11.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
|
2012-08-09 14:28:45 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (@ISWINDOWS@,true)
|
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
|
|
|
$(srcdir)/testnativew32.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2012-08-09 14:28:45 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (@ISUNIX@,true)
|
|
|
|
testnative$(EXE): $(srcdir)/testnative.c \
|
|
|
|
$(srcdir)/testnativex11.c
|
2013-07-21 12:47:47 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
|
2012-08-09 14:28:45 -04:00
|
|
|
endif
|
2012-01-07 16:57:09 -05:00
|
|
|
|
Initial merge of Emscripten port!
With this commit, you can compile SDL2 with Emscripten
( http://emscripten.org/ ), and make your SDL-based C/C++ program
into a web app.
This port was due to the efforts of several people, including: Charlie Birks,
Sathyanarayanan Gunasekaran, Jukka Jylänki, Alon Zakai, Edward Rudd,
Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)
--HG--
extra : rebase_source : 97af74c8a5121e926ebe89f123536b5dd6681695
2014-12-18 00:19:52 -05:00
|
|
|
#there's probably a better way of doing this
|
|
|
|
ifeq (@ISMACOSX@,false)
|
|
|
|
ifeq (@ISWINDOWS@,false)
|
|
|
|
ifeq (@ISUNIX@,false)
|
|
|
|
testnative$(EXE): ;
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2017-11-17 10:54:46 -08:00
|
|
|
testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2006-02-24 06:49:31 +00:00
|
|
|
testplatform$(EXE): $(srcdir)/testplatform.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-24 06:49:31 +00:00
|
|
|
|
2011-02-11 12:24:59 -08:00
|
|
|
testpower$(EXE): $(srcdir)/testpower.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2013-08-20 19:57:11 -04:00
|
|
|
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2012-01-18 22:45:49 -05:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testscale$(EXE): $(srcdir)/testscale.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2011-02-09 15:37:07 -08:00
|
|
|
|
2006-02-20 02:09:49 +00:00
|
|
|
testsem$(EXE): $(srcdir)/testsem.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2018-08-21 12:11:34 -07:00
|
|
|
|
|
|
|
testsensor$(EXE): $(srcdir)/testsensor.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2011-02-08 22:11:16 -08:00
|
|
|
testshader$(EXE): $(srcdir)/testshader.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
|
2011-02-08 22:11:16 -08:00
|
|
|
|
2010-07-18 21:31:22 -04:00
|
|
|
testshape$(EXE): $(srcdir)/testshape.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2010-07-18 21:31:22 -04:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testsprite2$(EXE): $(srcdir)/testsprite2.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-07-10 21:04:37 +00:00
|
|
|
|
2011-02-11 12:24:59 -08:00
|
|
|
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2011-02-11 12:24:59 -08:00
|
|
|
|
|
|
|
teststreaming$(EXE): $(srcdir)/teststreaming.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2011-02-11 12:24:59 -08:00
|
|
|
|
2006-02-20 02:09:49 +00:00
|
|
|
testtimer$(EXE): $(srcdir)/testtimer.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
|
|
|
testver$(EXE): $(srcdir)/testver.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2013-11-15 22:05:26 -08:00
|
|
|
testviewport$(EXE): $(srcdir)/testviewport.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testwm2$(EXE): $(srcdir)/testwm2.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-07-10 21:04:37 +00:00
|
|
|
|
2017-11-17 10:54:46 -08:00
|
|
|
testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
|
2017-11-12 22:51:12 -08:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2006-02-20 02:09:49 +00:00
|
|
|
torturethread$(EXE): $(srcdir)/torturethread.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2006-02-20 02:09:49 +00:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
|
2012-10-23 17:10:09 -07:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
|
2012-10-30 10:11:25 -07:00
|
|
|
|
|
|
|
testmessage$(EXE): $(srcdir)/testmessage.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2015-07-14 21:28:26 -04:00
|
|
|
testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-03-10 01:50:43 -05:00
|
|
|
testqsort$(EXE): $(srcdir)/testqsort.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-01-04 23:52:40 -05:00
|
|
|
testbounds$(EXE): $(srcdir)/testbounds.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2016-07-13 09:41:43 -07:00
|
|
|
testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2013-12-02 19:35:04 -03:00
|
|
|
controllermap$(EXE): $(srcdir)/controllermap.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2017-08-27 22:15:57 -04:00
|
|
|
testvulkan$(EXE): $(srcdir)/testvulkan.c
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
2013-12-02 19:35:04 -03:00
|
|
|
|
2006-02-20 02:09:49 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
rm -f config.status config.cache config.log
|
|
|
|
rm -rf $(srcdir)/autom4te*
|
2017-05-29 18:24:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
%.bmp: $(srcdir)/%.bmp
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
%.wav: $(srcdir)/%.wav
|
|
|
|
cp $< $@
|
|
|
|
|
2018-09-02 00:35:11 -04:00
|
|
|
%.dat: $(srcdir)/%.dat
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
copydatafiles: copybmpfiles copywavfiles copydatfiles
|
2017-05-29 18:24:06 -04:00
|
|
|
.PHONY : copydatafiles
|
|
|
|
|
|
|
|
copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
|
|
|
|
.PHONY : copybmpfiles
|
|
|
|
|
|
|
|
copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
|
|
|
|
.PHONY : copywavfiles
|
|
|
|
|
2018-09-02 00:35:11 -04:00
|
|
|
copydatfiles: $(foreach dat,$(wildcard $(srcdir)/*.dat),$(notdir $(dat)))
|
|
|
|
.PHONY : copydatfiles
|
|
|
|
|