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