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