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