test/Makefile.in
author Andreas Schiffler <aschiffler@ferzkopp.net>
Wed, 19 Mar 2014 21:39:55 -0700
changeset 8645 d69fdbefeecf
parent 8164 478fbe1f032f
child 8931 44d8a2f4b431
permissions -rw-r--r--
Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
     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 	testaudioinfo$(EXE) \
    14 	testautomation$(EXE) \
    15 	testdraw2$(EXE) \
    16 	testdrawchessboard$(EXE) \
    17 	testdropfile$(EXE) \
    18 	testerror$(EXE) \
    19 	testfile$(EXE) \
    20 	testgamecontroller$(EXE) \
    21 	testgesture$(EXE) \
    22 	testgl2$(EXE) \
    23 	testgles$(EXE) \
    24 	testgles2$(EXE) \
    25 	testhaptic$(EXE) \
    26 	testrumble$(EXE) \
    27 	testhotplug$(EXE) \
    28 	testthread$(EXE) \
    29 	testiconv$(EXE) \
    30 	testime$(EXE) \
    31 	testintersections$(EXE) \
    32 	testrelative$(EXE) \
    33 	testjoystick$(EXE) \
    34 	testkeys$(EXE) \
    35 	testloadso$(EXE) \
    36 	testlock$(EXE) \
    37 	testmultiaudio$(EXE) \
    38 	testnative$(EXE) \
    39 	testoverlay2$(EXE) \
    40 	testplatform$(EXE) \
    41 	testpower$(EXE) \
    42 	testfilesystem$(EXE) \
    43 	testrendertarget$(EXE) \
    44 	testresample$(EXE) \
    45 	testscale$(EXE) \
    46 	testsem$(EXE) \
    47 	testshader$(EXE) \
    48 	testshape$(EXE) \
    49 	testsprite2$(EXE) \
    50 	testspriteminimal$(EXE) \
    51 	teststreaming$(EXE) \
    52 	testtimer$(EXE) \
    53 	testver$(EXE) \
    54 	testviewport$(EXE) \
    55 	testwm2$(EXE) \
    56 	torturethread$(EXE) \
    57 	testrendercopyex$(EXE) \
    58 	testmessage$(EXE) \
    59 	controllermap$(EXE) \
    60 	
    61 all: Makefile $(TARGETS)
    62 
    63 Makefile: $(srcdir)/Makefile.in
    64 	$(SHELL) config.status $@
    65 
    66 checkkeys$(EXE): $(srcdir)/checkkeys.c
    67 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    68 
    69 loopwave$(EXE): $(srcdir)/loopwave.c
    70 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    71 
    72 testresample$(EXE): $(srcdir)/testresample.c
    73 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    74 
    75 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    76 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    77 
    78 testautomation$(EXE): $(srcdir)/testautomation.c \
    79 		      $(srcdir)/testautomation_audio.c \
    80 		      $(srcdir)/testautomation_clipboard.c \
    81 		      $(srcdir)/testautomation_events.c \
    82 		      $(srcdir)/testautomation_keyboard.c \
    83 		      $(srcdir)/testautomation_main.c \
    84 		      $(srcdir)/testautomation_mouse.c \
    85 		      $(srcdir)/testautomation_pixels.c \
    86 		      $(srcdir)/testautomation_platform.c \
    87 		      $(srcdir)/testautomation_rect.c \
    88 		      $(srcdir)/testautomation_render.c \
    89 		      $(srcdir)/testautomation_rwops.c \
    90 		      $(srcdir)/testautomation_sdltest.c \
    91 		      $(srcdir)/testautomation_stdlib.c \
    92 		      $(srcdir)/testautomation_surface.c \
    93 		      $(srcdir)/testautomation_syswm.c \
    94 		      $(srcdir)/testautomation_timer.c \
    95 		      $(srcdir)/testautomation_video.c \
    96 		      $(srcdir)/testautomation_hints.c
    97 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
    98 
    99 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
   100 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   101 
   102 testatomic$(EXE): $(srcdir)/testatomic.c
   103 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   104 
   105 testintersections$(EXE): $(srcdir)/testintersections.c
   106 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   107 
   108 testrelative$(EXE): $(srcdir)/testrelative.c
   109 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   110 
   111 testdraw2$(EXE): $(srcdir)/testdraw2.c
   112 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   113 
   114 testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
   115 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   116 
   117 testdropfile$(EXE): $(srcdir)/testdropfile.c
   118 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   119 
   120 testerror$(EXE): $(srcdir)/testerror.c
   121 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   122 
   123 testfile$(EXE): $(srcdir)/testfile.c
   124 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   125 
   126 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
   127 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   128  
   129 testgesture$(EXE): $(srcdir)/testgesture.c
   130 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   131  
   132 testgl2$(EXE): $(srcdir)/testgl2.c
   133 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   134 
   135 testgles$(EXE): $(srcdir)/testgles.c
   136 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
   137 
   138 testgles2$(EXE): $(srcdir)/testgles2.c
   139 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   140 
   141 testhaptic$(EXE): $(srcdir)/testhaptic.c
   142 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   143 
   144 testhotplug$(EXE): $(srcdir)/testhotplug.c
   145 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   146 
   147 testrumble$(EXE): $(srcdir)/testrumble.c
   148 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   149 
   150 testthread$(EXE): $(srcdir)/testthread.c
   151 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   152 
   153 testiconv$(EXE): $(srcdir)/testiconv.c
   154 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   155 
   156 testime$(EXE): $(srcdir)/testime.c
   157 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   158 
   159 testjoystick$(EXE): $(srcdir)/testjoystick.c
   160 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   161 
   162 testkeys$(EXE): $(srcdir)/testkeys.c
   163 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   164 
   165 testloadso$(EXE): $(srcdir)/testloadso.c
   166 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   167 
   168 testlock$(EXE): $(srcdir)/testlock.c
   169 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   170 
   171 ifeq (@ISMACOSX@,true)
   172 testnative$(EXE): $(srcdir)/testnative.c \
   173 			$(srcdir)/testnativecocoa.m \
   174 			$(srcdir)/testnativex11.c
   175 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
   176 endif
   177 
   178 ifeq (@ISWINDOWS@,true)
   179 testnative$(EXE): $(srcdir)/testnative.c \
   180 			$(srcdir)/testnativew32.c
   181 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   182 endif
   183 
   184 ifeq (@ISUNIX@,true)
   185 testnative$(EXE): $(srcdir)/testnative.c \
   186 			$(srcdir)/testnativex11.c
   187 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
   188 endif
   189 
   190 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   191 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   192 
   193 testplatform$(EXE): $(srcdir)/testplatform.c
   194 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   195 
   196 testpower$(EXE): $(srcdir)/testpower.c
   197 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   198 
   199 testfilesystem$(EXE): $(srcdir)/testfilesystem.c
   200 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   201 
   202 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
   203 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   204 
   205 testscale$(EXE): $(srcdir)/testscale.c
   206 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   207 
   208 testsem$(EXE): $(srcdir)/testsem.c
   209 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   210 
   211 testshader$(EXE): $(srcdir)/testshader.c
   212 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   213 
   214 testshape$(EXE): $(srcdir)/testshape.c
   215 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   216 
   217 testsprite2$(EXE): $(srcdir)/testsprite2.c
   218 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   219 
   220 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   221 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   222 
   223 teststreaming$(EXE): $(srcdir)/teststreaming.c
   224 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   225 
   226 testtimer$(EXE): $(srcdir)/testtimer.c
   227 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   228 
   229 testver$(EXE): $(srcdir)/testver.c
   230 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   231 
   232 testviewport$(EXE): $(srcdir)/testviewport.c
   233 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   234 
   235 testwm2$(EXE): $(srcdir)/testwm2.c
   236 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   237 
   238 torturethread$(EXE): $(srcdir)/torturethread.c
   239 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   240 
   241 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
   242 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   243 
   244 testmessage$(EXE): $(srcdir)/testmessage.c
   245 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   246 
   247 controllermap$(EXE): $(srcdir)/controllermap.c
   248 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   249 
   250 
   251 clean:
   252 	rm -f $(TARGETS)
   253 
   254 distclean: clean
   255 	rm -f Makefile
   256 	rm -f config.status config.cache config.log
   257 	rm -rf $(srcdir)/autom4te*