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