test/Makefile.in
author Gabriel Jacobo <gabomdq@gmail.com>
Sat, 14 Dec 2013 20:18:43 -0300
changeset 8062 4fc5f66d63cc
parent 8043 74fcbf6987ba
child 8164 478fbe1f032f
permissions -rw-r--r--
Wayland support

Based on the original port to Wayland by: Joel Teichroeb, Benjamin Franzke, Scott Moreau, et al.

Additional changes in this commit, done by me:

* Wayland uses the common EGL framework
* EGL can now create a desktop OpenGL context
* testgl2 loads GL functions dynamically, no need to link to libGL anymore
* Assorted fixes to the Wayland backend

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