test/Makefile.in
author Gabriel Jacobo <gabomdq@gmail.com>
Tue, 19 Nov 2013 10:56:38 -0300
changeset 8014 0a4b6dec7de5
parent 7994 37c48b4ecb0c
child 8043 74fcbf6987ba
permissions -rw-r--r--
Adds testgles2

Source code copied from: https://github.com/fantasydr/sdl-2.0-gles (thanks!)

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