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