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