test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Wed, 28 May 2014 01:22:47 -0400
changeset 8935 9d2f0236322b
parent 8931 44d8a2f4b431
child 8979 1e283b7a1580
permissions -rw-r--r--
Changed drag area API to a hit-testing API.

There were several good arguments for this: it's how Windows works with
WM_NCHITTEST, SDL doesn't need to manage a list of rects, it allows more
control over the regions (how do you use rects to cleanly surround a circular
button?), the callback can be more optimized than a iterating a list of
rects, and you don't have to send an updated list of rects whenever the
window resizes or layout changes.
     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 	testhittesting$(EXE) \
    27 	testrumble$(EXE) \
    28 	testhotplug$(EXE) \
    29 	testthread$(EXE) \
    30 	testiconv$(EXE) \
    31 	testime$(EXE) \
    32 	testintersections$(EXE) \
    33 	testrelative$(EXE) \
    34 	testjoystick$(EXE) \
    35 	testkeys$(EXE) \
    36 	testloadso$(EXE) \
    37 	testlock$(EXE) \
    38 	testmultiaudio$(EXE) \
    39 	testnative$(EXE) \
    40 	testoverlay2$(EXE) \
    41 	testplatform$(EXE) \
    42 	testpower$(EXE) \
    43 	testfilesystem$(EXE) \
    44 	testrendertarget$(EXE) \
    45 	testresample$(EXE) \
    46 	testscale$(EXE) \
    47 	testsem$(EXE) \
    48 	testshader$(EXE) \
    49 	testshape$(EXE) \
    50 	testsprite2$(EXE) \
    51 	testspriteminimal$(EXE) \
    52 	teststreaming$(EXE) \
    53 	testtimer$(EXE) \
    54 	testver$(EXE) \
    55 	testviewport$(EXE) \
    56 	testwm2$(EXE) \
    57 	torturethread$(EXE) \
    58 	testrendercopyex$(EXE) \
    59 	testmessage$(EXE) \
    60 	controllermap$(EXE) \
    61 	
    62 all: Makefile $(TARGETS)
    63 
    64 Makefile: $(srcdir)/Makefile.in
    65 	$(SHELL) config.status $@
    66 
    67 checkkeys$(EXE): $(srcdir)/checkkeys.c
    68 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    69 
    70 loopwave$(EXE): $(srcdir)/loopwave.c
    71 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    72 
    73 testresample$(EXE): $(srcdir)/testresample.c
    74 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    75 
    76 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    77 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    78 
    79 testautomation$(EXE): $(srcdir)/testautomation.c \
    80 		      $(srcdir)/testautomation_audio.c \
    81 		      $(srcdir)/testautomation_clipboard.c \
    82 		      $(srcdir)/testautomation_events.c \
    83 		      $(srcdir)/testautomation_keyboard.c \
    84 		      $(srcdir)/testautomation_main.c \
    85 		      $(srcdir)/testautomation_mouse.c \
    86 		      $(srcdir)/testautomation_pixels.c \
    87 		      $(srcdir)/testautomation_platform.c \
    88 		      $(srcdir)/testautomation_rect.c \
    89 		      $(srcdir)/testautomation_render.c \
    90 		      $(srcdir)/testautomation_rwops.c \
    91 		      $(srcdir)/testautomation_sdltest.c \
    92 		      $(srcdir)/testautomation_stdlib.c \
    93 		      $(srcdir)/testautomation_surface.c \
    94 		      $(srcdir)/testautomation_syswm.c \
    95 		      $(srcdir)/testautomation_timer.c \
    96 		      $(srcdir)/testautomation_video.c \
    97 		      $(srcdir)/testautomation_hints.c
    98 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
    99 
   100 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
   101 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   102 
   103 testatomic$(EXE): $(srcdir)/testatomic.c
   104 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   105 
   106 testintersections$(EXE): $(srcdir)/testintersections.c
   107 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   108 
   109 testrelative$(EXE): $(srcdir)/testrelative.c
   110 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   111 
   112 testhittesting$(EXE): $(srcdir)/testhittesting.c
   113 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   114 
   115 testdraw2$(EXE): $(srcdir)/testdraw2.c
   116 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   117 
   118 testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
   119 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   120 
   121 testdropfile$(EXE): $(srcdir)/testdropfile.c
   122 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   123 
   124 testerror$(EXE): $(srcdir)/testerror.c
   125 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   126 
   127 testfile$(EXE): $(srcdir)/testfile.c
   128 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   129 
   130 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
   131 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   132  
   133 testgesture$(EXE): $(srcdir)/testgesture.c
   134 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   135  
   136 testgl2$(EXE): $(srcdir)/testgl2.c
   137 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   138 
   139 testgles$(EXE): $(srcdir)/testgles.c
   140 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
   141 
   142 testgles2$(EXE): $(srcdir)/testgles2.c
   143 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   144 
   145 testhaptic$(EXE): $(srcdir)/testhaptic.c
   146 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   147 
   148 testhotplug$(EXE): $(srcdir)/testhotplug.c
   149 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   150 
   151 testrumble$(EXE): $(srcdir)/testrumble.c
   152 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   153 
   154 testthread$(EXE): $(srcdir)/testthread.c
   155 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   156 
   157 testiconv$(EXE): $(srcdir)/testiconv.c
   158 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   159 
   160 testime$(EXE): $(srcdir)/testime.c
   161 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   162 
   163 testjoystick$(EXE): $(srcdir)/testjoystick.c
   164 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   165 
   166 testkeys$(EXE): $(srcdir)/testkeys.c
   167 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   168 
   169 testloadso$(EXE): $(srcdir)/testloadso.c
   170 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   171 
   172 testlock$(EXE): $(srcdir)/testlock.c
   173 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   174 
   175 ifeq (@ISMACOSX@,true)
   176 testnative$(EXE): $(srcdir)/testnative.c \
   177 			$(srcdir)/testnativecocoa.m \
   178 			$(srcdir)/testnativex11.c
   179 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
   180 endif
   181 
   182 ifeq (@ISWINDOWS@,true)
   183 testnative$(EXE): $(srcdir)/testnative.c \
   184 			$(srcdir)/testnativew32.c
   185 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   186 endif
   187 
   188 ifeq (@ISUNIX@,true)
   189 testnative$(EXE): $(srcdir)/testnative.c \
   190 			$(srcdir)/testnativex11.c
   191 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
   192 endif
   193 
   194 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   195 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   196 
   197 testplatform$(EXE): $(srcdir)/testplatform.c
   198 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   199 
   200 testpower$(EXE): $(srcdir)/testpower.c
   201 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   202 
   203 testfilesystem$(EXE): $(srcdir)/testfilesystem.c
   204 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   205 
   206 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
   207 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   208 
   209 testscale$(EXE): $(srcdir)/testscale.c
   210 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   211 
   212 testsem$(EXE): $(srcdir)/testsem.c
   213 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   214 
   215 testshader$(EXE): $(srcdir)/testshader.c
   216 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   217 
   218 testshape$(EXE): $(srcdir)/testshape.c
   219 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   220 
   221 testsprite2$(EXE): $(srcdir)/testsprite2.c
   222 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   223 
   224 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   225 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   226 
   227 teststreaming$(EXE): $(srcdir)/teststreaming.c
   228 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   229 
   230 testtimer$(EXE): $(srcdir)/testtimer.c
   231 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   232 
   233 testver$(EXE): $(srcdir)/testver.c
   234 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   235 
   236 testviewport$(EXE): $(srcdir)/testviewport.c
   237 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   238 
   239 testwm2$(EXE): $(srcdir)/testwm2.c
   240 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   241 
   242 torturethread$(EXE): $(srcdir)/torturethread.c
   243 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   244 
   245 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
   246 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   247 
   248 testmessage$(EXE): $(srcdir)/testmessage.c
   249 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   250 
   251 controllermap$(EXE): $(srcdir)/controllermap.c
   252 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   253 
   254 
   255 clean:
   256 	rm -f $(TARGETS)
   257 
   258 distclean: clean
   259 	rm -f Makefile
   260 	rm -f config.status config.cache config.log
   261 	rm -rf $(srcdir)/autom4te*