test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Thu, 10 Feb 2011 11:39:08 -0800
changeset 5243 3a8a452b49f0
parent 5240 a9eb73f21e3a
child 5254 f650566b2f51
permissions -rw-r--r--
Removed gamma support since it wasn't widely used and not well supported.
     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 	testgesture$(EXE) \
    27 	testgl$(EXE) \
    28 	testgl2$(EXE) \
    29 	testgles$(EXE) \
    30 	testhaptic$(EXE) \
    31 	testhread$(EXE) \
    32 	testiconv$(EXE) \
    33 	testime$(EXE) \
    34 	testintersections$(EXE) \
    35 	testjoystick$(EXE) \
    36 	testkeys$(EXE) \
    37 	testloadso$(EXE) \
    38 	testlock$(EXE) \
    39 	testmultiaudio$(EXE) \
    40 	testoverlay$(EXE) \
    41 	testoverlay2$(EXE) \
    42 	testplatform$(EXE) \
    43 	testpower$(EXE) \
    44 	testresample$(EXE) \
    45 	testscale$(EXE) \
    46 	testsem$(EXE) \
    47 	testshader$(EXE) \
    48 	testshape$(EXE) \
    49 	testsprite$(EXE) \
    50 	testsprite2$(EXE) \
    51 	testspriteminimal$(EXE) \
    52 	testtimer$(EXE) \
    53 	testver$(EXE) \
    54 	testvidinfo$(EXE) \
    55 	testwin$(EXE) \
    56 	testwm$(EXE) \
    57 	testwm2$(EXE) \
    58 	threadwin$(EXE) \
    59 	torturethread$(EXE) \
    60 
    61 all: Makefile $(TARGETS)
    62 
    63 Makefile: $(srcdir)/Makefile.in
    64 	$(SHELL) config.status $@
    65 
    66 checkkeys$(EXE): $(srcdir)/checkkeys.c
    67 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    68 
    69 graywin$(EXE): $(srcdir)/graywin.c
    70 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    71 
    72 loopwave$(EXE): $(srcdir)/loopwave.c
    73 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    74 
    75 testresample$(EXE): $(srcdir)/testresample.c
    76 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    77 
    78 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    79 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    80 
    81 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    82 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    83 
    84 testpower$(EXE): $(srcdir)/testpower.c
    85 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    86 
    87 testalpha$(EXE): $(srcdir)/testalpha.c
    88 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    89 
    90 testbitmap$(EXE): $(srcdir)/testbitmap.c
    91 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    92 
    93 testblitspeed$(EXE): $(srcdir)/testblitspeed.c
    94 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    95 
    96 testcursor$(EXE): $(srcdir)/testcursor.c
    97 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    98 
    99 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
   100 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   101 
   102 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
   103 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   104 
   105 testdyngl$(EXE): $(srcdir)/testdyngl.c
   106 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   107 
   108 testdyngles$(EXE): $(srcdir)/testdyngles.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 testfill$(EXE): $(srcdir)/testfill.c
   118 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   119 
   120 testgamma$(EXE): $(srcdir)/testgamma.c
   121 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   122 
   123 testgl$(EXE): $(srcdir)/testgl.c
   124 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   125 
   126 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
   127 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   128 
   129 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
   130 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   131 
   132 testhread$(EXE): $(srcdir)/testhread.c
   133 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   134 
   135 testiconv$(EXE): $(srcdir)/testiconv.c
   136 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   137 
   138 testjoystick$(EXE): $(srcdir)/testjoystick.c
   139 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   140 
   141 testkeys$(EXE): $(srcdir)/testkeys.c
   142 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   143 
   144 testlock$(EXE): $(srcdir)/testlock.c
   145 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   146 
   147 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   148 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   149 
   150 testoverlay$(EXE): $(srcdir)/testoverlay.c
   151 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   152 
   153 testplatform$(EXE): $(srcdir)/testplatform.c
   154 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   155 
   156 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   157 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   158 
   159 testsem$(EXE): $(srcdir)/testsem.c
   160 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   161 
   162 testshader$(EXE): $(srcdir)/testshader.c
   163 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   164 
   165 testshape$(EXE): $(srcdir)/testshape.c
   166 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   167 
   168 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   169 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   170 
   171 testsprite$(EXE): $(srcdir)/testsprite.c
   172 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   173 
   174 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   175 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   176 
   177 testtimer$(EXE): $(srcdir)/testtimer.c
   178 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   179 
   180 testver$(EXE): $(srcdir)/testver.c
   181 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   182 
   183 testvidinfo$(EXE): $(srcdir)/testvidinfo.c
   184 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   185 
   186 testwin$(EXE): $(srcdir)/testwin.c
   187 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   188 
   189 testwm$(EXE): $(srcdir)/testwm.c
   190 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   191 
   192 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   193 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   194 
   195 threadwin$(EXE): $(srcdir)/threadwin.c
   196 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   197 
   198 torturethread$(EXE): $(srcdir)/torturethread.c
   199 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   200 
   201 testloadso$(EXE): $(srcdir)/testloadso.c
   202 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   203 
   204 testhaptic$(EXE): $(srcdir)/testhaptic.c
   205 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   206 
   207 testatomic$(EXE): $(srcdir)/testatomic.c
   208 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   209 
   210 testgesture$(EXE): $(srcdir)/testgesture.c
   211 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   212  
   213 testime$(EXE): $(srcdir)/testime.c
   214 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   215 
   216 clean:
   217 	rm -f $(TARGETS)
   218 
   219 distclean: clean
   220 	rm -f Makefile
   221 	rm -f config.status config.cache config.log
   222 	rm -rf $(srcdir)/autom4te*