test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Wed, 18 Jan 2012 22:45:49 -0500
changeset 6232 37e8d0736366
parent 6175 42c40787f382
child 6256 1d905b13b102
permissions -rw-r--r--
Implementation of render targets, by Mason Wheeler and Gabriel Jacobo

Thanks guys!
     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 	graywin$(EXE) \
    13 	loopwave$(EXE) \
    14 	testalpha$(EXE) \
    15 	testatomic$(EXE) \
    16 	testaudioinfo$(EXE) \
    17 	testbitmap$(EXE) \
    18 	testblitspeed$(EXE) \
    19 	testcursor$(EXE) \
    20 	testdraw2$(EXE) \
    21 	testdyngl$(EXE) \
    22 	testdyngles$(EXE) \
    23 	testerror$(EXE) \
    24 	testfile$(EXE) \
    25 	testfill$(EXE) \
    26 	testgamma$(EXE) \
    27 	testgesture$(EXE) \
    28 	testgl$(EXE) \
    29 	testgl2$(EXE) \
    30 	testgles$(EXE) \
    31 	testhaptic$(EXE) \
    32 	testrumble$(EXE) \
    33 	testthread$(EXE) \
    34 	testiconv$(EXE) \
    35 	testime$(EXE) \
    36 	testintersections$(EXE) \
    37 	testjoystick$(EXE) \
    38 	testkeys$(EXE) \
    39 	testloadso$(EXE) \
    40 	testlock$(EXE) \
    41 	testmultiaudio$(EXE) \
    42 	testnative$(EXE) \
    43 	testoverlay$(EXE) \
    44 	testoverlay2$(EXE) \
    45 	testplatform$(EXE) \
    46 	testpower$(EXE) \
    47 	testrendertarget$(EXE) \
    48 	testresample$(EXE) \
    49 	testscale$(EXE) \
    50 	testsem$(EXE) \
    51 	testshader$(EXE) \
    52 	testshape$(EXE) \
    53 	testsprite$(EXE) \
    54 	testsprite2$(EXE) \
    55 	testspriteminimal$(EXE) \
    56 	teststreaming$(EXE) \
    57 	testtimer$(EXE) \
    58 	testver$(EXE) \
    59 	testvidinfo$(EXE) \
    60 	testwin$(EXE) \
    61 	testwm$(EXE) \
    62 	testwm2$(EXE) \
    63 	threadwin$(EXE) \
    64 	torturethread$(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 graywin$(EXE): $(srcdir)/graywin.c
    75 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    76 
    77 loopwave$(EXE): $(srcdir)/loopwave.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 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    87 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    88 
    89 testalpha$(EXE): $(srcdir)/testalpha.c
    90 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    91 
    92 testatomic$(EXE): $(srcdir)/testatomic.c
    93 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    94 
    95 testbitmap$(EXE): $(srcdir)/testbitmap.c
    96 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    97 
    98 testblitspeed$(EXE): $(srcdir)/testblitspeed.c
    99 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   100 
   101 testcursor$(EXE): $(srcdir)/testcursor.c
   102 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   103 
   104 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
   105 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   106 
   107 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
   108 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   109 
   110 testdyngl$(EXE): $(srcdir)/testdyngl.c
   111 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   112 
   113 testdyngles$(EXE): $(srcdir)/testdyngles.c
   114 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   115 
   116 testerror$(EXE): $(srcdir)/testerror.c
   117 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   118 
   119 testfile$(EXE): $(srcdir)/testfile.c
   120 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   121 
   122 testfill$(EXE): $(srcdir)/testfill.c
   123 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   124 
   125 testgamma$(EXE): $(srcdir)/testgamma.c
   126 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   127  
   128 testgesture$(EXE): $(srcdir)/testgesture.c
   129 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   130  
   131 testgl$(EXE): $(srcdir)/testgl.c
   132 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   133 
   134 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
   135 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   136 
   137 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
   138 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   139 
   140 testhaptic$(EXE): $(srcdir)/testhaptic.c
   141 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   142 
   143 testrumble$(EXE): $(srcdir)/testrumble.c
   144 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   145 
   146 testthread$(EXE): $(srcdir)/testthread.c
   147 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   148 
   149 testiconv$(EXE): $(srcdir)/testiconv.c
   150 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   151 
   152 testime$(EXE): $(srcdir)/testime.c
   153 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   154 
   155 testjoystick$(EXE): $(srcdir)/testjoystick.c
   156 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   157 
   158 testkeys$(EXE): $(srcdir)/testkeys.c
   159 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   160 
   161 testloadso$(EXE): $(srcdir)/testloadso.c
   162 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   163 
   164 testlock$(EXE): $(srcdir)/testlock.c
   165 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   166 
   167 testnative$(EXE): $(srcdir)/testnative.c \
   168 			$(srcdir)/testnativecocoa.m \
   169 			$(srcdir)/testnativew32.c \
   170 			$(srcdir)/testnativex11.c
   171 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   172 
   173 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   174 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   175 
   176 testoverlay$(EXE): $(srcdir)/testoverlay.c
   177 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   178 
   179 testplatform$(EXE): $(srcdir)/testplatform.c
   180 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   181 
   182 testpower$(EXE): $(srcdir)/testpower.c
   183 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   184 
   185 testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
   186 	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   187 
   188 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   189 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   190 
   191 testsem$(EXE): $(srcdir)/testsem.c
   192 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   193 
   194 testshader$(EXE): $(srcdir)/testshader.c
   195 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   196 
   197 testshape$(EXE): $(srcdir)/testshape.c
   198 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   199 
   200 testsprite$(EXE): $(srcdir)/testsprite.c
   201 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   202 
   203 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   204 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   205 
   206 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   207 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   208 
   209 teststreaming$(EXE): $(srcdir)/teststreaming.c
   210 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   211 
   212 testtimer$(EXE): $(srcdir)/testtimer.c
   213 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   214 
   215 testver$(EXE): $(srcdir)/testver.c
   216 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   217 
   218 testvidinfo$(EXE): $(srcdir)/testvidinfo.c
   219 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   220 
   221 testwin$(EXE): $(srcdir)/testwin.c
   222 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   223 
   224 testwm$(EXE): $(srcdir)/testwm.c
   225 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   226 
   227 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   228 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   229 
   230 threadwin$(EXE): $(srcdir)/threadwin.c
   231 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   232 
   233 torturethread$(EXE): $(srcdir)/torturethread.c
   234 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   235 
   236 clean:
   237 	rm -f $(TARGETS)
   238 
   239 distclean: clean
   240 	rm -f Makefile
   241 	rm -f config.status config.cache config.log
   242 	rm -rf $(srcdir)/autom4te*