test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Tue, 12 Dec 2017 22:25:39 -0500
changeset 11775 c5ecf88a2ddc
parent 11703 e8cd7b48dc0a
child 12130 24142c5073a4
permissions -rw-r--r--
windows: Fixed a comment.
     1 # Makefile to build the SDL tests
     2 
     3 srcdir  = @srcdir@
     4 
     5 CC      = @CC@
     6 EXE	= @EXE@
     7 CFLAGS  = @CFLAGS@ -g
     8 LIBS	= @LIBS@
     9 
    10 TARGETS = \
    11 	checkkeys$(EXE) \
    12 	controllermap$(EXE) \
    13 	loopwave$(EXE) \
    14 	loopwavequeue$(EXE) \
    15 	testatomic$(EXE) \
    16 	testaudiocapture$(EXE) \
    17 	testaudiohotplug$(EXE) \
    18 	testaudioinfo$(EXE) \
    19 	testautomation$(EXE) \
    20 	testbounds$(EXE) \
    21 	testcustomcursor$(EXE) \
    22 	testdisplayinfo$(EXE) \
    23 	testdraw2$(EXE) \
    24 	testdrawchessboard$(EXE) \
    25 	testdropfile$(EXE) \
    26 	testerror$(EXE) \
    27 	testfile$(EXE) \
    28 	testfilesystem$(EXE) \
    29 	testgamecontroller$(EXE) \
    30 	testgesture$(EXE) \
    31 	testgl2$(EXE) \
    32 	testgles$(EXE) \
    33 	testgles2$(EXE) \
    34 	testhaptic$(EXE) \
    35 	testhittesting$(EXE) \
    36 	testhotplug$(EXE) \
    37 	testiconv$(EXE) \
    38 	testime$(EXE) \
    39 	testintersections$(EXE) \
    40 	testjoystick$(EXE) \
    41 	testkeys$(EXE) \
    42 	testloadso$(EXE) \
    43 	testlock$(EXE) \
    44 	testmessage$(EXE) \
    45 	testmultiaudio$(EXE) \
    46 	testnative$(EXE) \
    47 	testoverlay2$(EXE) \
    48 	testplatform$(EXE) \
    49 	testpower$(EXE) \
    50 	testqsort$(EXE) \
    51 	testrelative$(EXE) \
    52 	testrendercopyex$(EXE) \
    53 	testrendertarget$(EXE) \
    54 	testresample$(EXE) \
    55 	testrumble$(EXE) \
    56 	testscale$(EXE) \
    57 	testsem$(EXE) \
    58 	testshader$(EXE) \
    59 	testshape$(EXE) \
    60 	testsprite2$(EXE) \
    61 	testspriteminimal$(EXE) \
    62 	teststreaming$(EXE) \
    63 	testthread$(EXE) \
    64 	testtimer$(EXE) \
    65 	testver$(EXE) \
    66 	testviewport$(EXE) \
    67 	testvulkan$(EXE) \
    68 	testwm2$(EXE) \
    69 	testyuv$(EXE) \
    70 	torturethread$(EXE) \
    71 	
    72 all: Makefile $(TARGETS) copydatafiles
    73 
    74 Makefile: $(srcdir)/Makefile.in
    75 	$(SHELL) config.status $@
    76 
    77 checkkeys$(EXE): $(srcdir)/checkkeys.c
    78 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    79 
    80 loopwave$(EXE): $(srcdir)/loopwave.c
    81 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    82 
    83 loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
    84 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    85 
    86 testresample$(EXE): $(srcdir)/testresample.c
    87 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    88 
    89 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    90 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    91 
    92 testautomation$(EXE): $(srcdir)/testautomation.c \
    93 		      $(srcdir)/testautomation_audio.c \
    94 		      $(srcdir)/testautomation_clipboard.c \
    95 		      $(srcdir)/testautomation_events.c \
    96 		      $(srcdir)/testautomation_keyboard.c \
    97 		      $(srcdir)/testautomation_main.c \
    98 		      $(srcdir)/testautomation_mouse.c \
    99 		      $(srcdir)/testautomation_pixels.c \
   100 		      $(srcdir)/testautomation_platform.c \
   101 		      $(srcdir)/testautomation_rect.c \
   102 		      $(srcdir)/testautomation_render.c \
   103 		      $(srcdir)/testautomation_rwops.c \
   104 		      $(srcdir)/testautomation_sdltest.c \
   105 		      $(srcdir)/testautomation_stdlib.c \
   106 		      $(srcdir)/testautomation_surface.c \
   107 		      $(srcdir)/testautomation_syswm.c \
   108 		      $(srcdir)/testautomation_timer.c \
   109 		      $(srcdir)/testautomation_video.c \
   110 		      $(srcdir)/testautomation_hints.c
   111 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
   112 
   113 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
   114 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   115 
   116 testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
   117 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   118 
   119 testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
   120 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   121 
   122 testatomic$(EXE): $(srcdir)/testatomic.c
   123 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   124 
   125 testintersections$(EXE): $(srcdir)/testintersections.c
   126 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   127 
   128 testrelative$(EXE): $(srcdir)/testrelative.c
   129 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   130 
   131 testhittesting$(EXE): $(srcdir)/testhittesting.c
   132 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   133 
   134 testdraw2$(EXE): $(srcdir)/testdraw2.c
   135 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   136 
   137 testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
   138 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   139 
   140 testdropfile$(EXE): $(srcdir)/testdropfile.c
   141 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   142 
   143 testerror$(EXE): $(srcdir)/testerror.c
   144 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   145 
   146 testfile$(EXE): $(srcdir)/testfile.c
   147 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   148 
   149 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
   150 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   151  
   152 testgesture$(EXE): $(srcdir)/testgesture.c
   153 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   154  
   155 testgl2$(EXE): $(srcdir)/testgl2.c
   156 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   157 
   158 testgles$(EXE): $(srcdir)/testgles.c
   159 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
   160 
   161 testgles2$(EXE): $(srcdir)/testgles2.c
   162 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   163 
   164 testhaptic$(EXE): $(srcdir)/testhaptic.c
   165 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   166 
   167 testhotplug$(EXE): $(srcdir)/testhotplug.c
   168 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   169 
   170 testrumble$(EXE): $(srcdir)/testrumble.c
   171 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   172 
   173 testthread$(EXE): $(srcdir)/testthread.c
   174 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   175 
   176 testiconv$(EXE): $(srcdir)/testiconv.c
   177 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   178 
   179 testime$(EXE): $(srcdir)/testime.c
   180 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   181 
   182 testjoystick$(EXE): $(srcdir)/testjoystick.c
   183 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   184 
   185 testkeys$(EXE): $(srcdir)/testkeys.c
   186 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   187 
   188 testloadso$(EXE): $(srcdir)/testloadso.c
   189 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   190 
   191 testlock$(EXE): $(srcdir)/testlock.c
   192 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   193 
   194 ifeq (@ISMACOSX@,true)
   195 testnative$(EXE): $(srcdir)/testnative.c \
   196 			$(srcdir)/testnativecocoa.m \
   197 			$(srcdir)/testnativex11.c
   198 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
   199 endif
   200 
   201 ifeq (@ISWINDOWS@,true)
   202 testnative$(EXE): $(srcdir)/testnative.c \
   203 			$(srcdir)/testnativew32.c
   204 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   205 endif
   206 
   207 ifeq (@ISUNIX@,true)
   208 testnative$(EXE): $(srcdir)/testnative.c \
   209 			$(srcdir)/testnativex11.c
   210 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
   211 endif
   212 
   213 #there's probably a better way of doing this
   214 ifeq (@ISMACOSX@,false)
   215 ifeq (@ISWINDOWS@,false)
   216 ifeq (@ISUNIX@,false)
   217 testnative$(EXE): ;
   218 endif
   219 endif
   220 endif
   221 
   222 testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
   223 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   224 
   225 testplatform$(EXE): $(srcdir)/testplatform.c
   226 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   227 
   228 testpower$(EXE): $(srcdir)/testpower.c
   229 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   230 
   231 testfilesystem$(EXE): $(srcdir)/testfilesystem.c
   232 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   233 
   234 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
   235 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   236 
   237 testscale$(EXE): $(srcdir)/testscale.c
   238 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   239 
   240 testsem$(EXE): $(srcdir)/testsem.c
   241 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   242 
   243 testshader$(EXE): $(srcdir)/testshader.c
   244 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   245 
   246 testshape$(EXE): $(srcdir)/testshape.c
   247 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   248 
   249 testsprite2$(EXE): $(srcdir)/testsprite2.c
   250 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   251 
   252 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   253 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   254 
   255 teststreaming$(EXE): $(srcdir)/teststreaming.c
   256 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   257 
   258 testtimer$(EXE): $(srcdir)/testtimer.c
   259 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   260 
   261 testver$(EXE): $(srcdir)/testver.c
   262 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   263 
   264 testviewport$(EXE): $(srcdir)/testviewport.c
   265 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   266 
   267 testwm2$(EXE): $(srcdir)/testwm2.c
   268 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   269 
   270 testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
   271 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   272 
   273 torturethread$(EXE): $(srcdir)/torturethread.c
   274 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   275 
   276 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
   277 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   278 
   279 testmessage$(EXE): $(srcdir)/testmessage.c
   280 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   281 
   282 testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
   283 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   284 
   285 testqsort$(EXE): $(srcdir)/testqsort.c
   286 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   287 
   288 testbounds$(EXE): $(srcdir)/testbounds.c
   289 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   290 
   291 testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
   292 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   293 
   294 controllermap$(EXE): $(srcdir)/controllermap.c
   295 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   296 
   297 testvulkan$(EXE): $(srcdir)/testvulkan.c
   298 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   299 
   300 
   301 clean:
   302 	rm -f $(TARGETS)
   303 
   304 distclean: clean
   305 	rm -f Makefile
   306 	rm -f config.status config.cache config.log
   307 	rm -rf $(srcdir)/autom4te*
   308 
   309 
   310 %.bmp: $(srcdir)/%.bmp
   311 	cp $< $@
   312 
   313 %.wav: $(srcdir)/%.wav
   314 	cp $< $@
   315 
   316 copydatafiles: copybmpfiles copywavfiles
   317 .PHONY : copydatafiles
   318 
   319 copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
   320 .PHONY : copybmpfiles
   321 
   322 copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
   323 .PHONY : copywavfiles
   324