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