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