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