test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sat, 07 Jan 2012 16:57:09 -0500
changeset 6175 42c40787f382
parent 5508 60b63c32f06d
child 6232 37e8d0736366
permissions -rw-r--r--
Added testnative to the Makefile and fixed building on Mac OS X
     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 	testresample$(EXE) \
    48 	testscale$(EXE) \
    49 	testsem$(EXE) \
    50 	testshader$(EXE) \
    51 	testshape$(EXE) \
    52 	testsprite$(EXE) \
    53 	testsprite2$(EXE) \
    54 	testspriteminimal$(EXE) \
    55 	teststreaming$(EXE) \
    56 	testtimer$(EXE) \
    57 	testver$(EXE) \
    58 	testvidinfo$(EXE) \
    59 	testwin$(EXE) \
    60 	testwm$(EXE) \
    61 	testwm2$(EXE) \
    62 	threadwin$(EXE) \
    63 	torturethread$(EXE) \
    64 
    65 all: Makefile $(TARGETS)
    66 
    67 Makefile: $(srcdir)/Makefile.in
    68 	$(SHELL) config.status $@
    69 
    70 checkkeys$(EXE): $(srcdir)/checkkeys.c
    71 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    72 
    73 graywin$(EXE): $(srcdir)/graywin.c
    74 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    75 
    76 loopwave$(EXE): $(srcdir)/loopwave.c
    77 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    78 
    79 testresample$(EXE): $(srcdir)/testresample.c
    80 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    81 
    82 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    83 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    84 
    85 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    86 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    87 
    88 testalpha$(EXE): $(srcdir)/testalpha.c
    89 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    90 
    91 testatomic$(EXE): $(srcdir)/testatomic.c
    92 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    93 
    94 testbitmap$(EXE): $(srcdir)/testbitmap.c
    95 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    96 
    97 testblitspeed$(EXE): $(srcdir)/testblitspeed.c
    98 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    99 
   100 testcursor$(EXE): $(srcdir)/testcursor.c
   101 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   102 
   103 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
   104 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   105 
   106 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
   107 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   108 
   109 testdyngl$(EXE): $(srcdir)/testdyngl.c
   110 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   111 
   112 testdyngles$(EXE): $(srcdir)/testdyngles.c
   113 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   114 
   115 testerror$(EXE): $(srcdir)/testerror.c
   116 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   117 
   118 testfile$(EXE): $(srcdir)/testfile.c
   119 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   120 
   121 testfill$(EXE): $(srcdir)/testfill.c
   122 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   123 
   124 testgamma$(EXE): $(srcdir)/testgamma.c
   125 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   126  
   127 testgesture$(EXE): $(srcdir)/testgesture.c
   128 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   129  
   130 testgl$(EXE): $(srcdir)/testgl.c
   131 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   132 
   133 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
   134 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   135 
   136 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
   137 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @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 testnative$(EXE): $(srcdir)/testnative.c \
   167 			$(srcdir)/testnativecocoa.m \
   168 			$(srcdir)/testnativew32.c \
   169 			$(srcdir)/testnativex11.c
   170 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   171 
   172 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   173 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   174 
   175 testoverlay$(EXE): $(srcdir)/testoverlay.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 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   185 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   186 
   187 testsem$(EXE): $(srcdir)/testsem.c
   188 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   189 
   190 testshader$(EXE): $(srcdir)/testshader.c
   191 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   192 
   193 testshape$(EXE): $(srcdir)/testshape.c
   194 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   195 
   196 testsprite$(EXE): $(srcdir)/testsprite.c
   197 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   198 
   199 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   200 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   201 
   202 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   203 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   204 
   205 teststreaming$(EXE): $(srcdir)/teststreaming.c
   206 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   207 
   208 testtimer$(EXE): $(srcdir)/testtimer.c
   209 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   210 
   211 testver$(EXE): $(srcdir)/testver.c
   212 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   213 
   214 testvidinfo$(EXE): $(srcdir)/testvidinfo.c
   215 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   216 
   217 testwin$(EXE): $(srcdir)/testwin.c
   218 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   219 
   220 testwm$(EXE): $(srcdir)/testwm.c
   221 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   222 
   223 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   224 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   225 
   226 threadwin$(EXE): $(srcdir)/threadwin.c
   227 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   228 
   229 torturethread$(EXE): $(srcdir)/torturethread.c
   230 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   231 
   232 clean:
   233 	rm -f $(TARGETS)
   234 
   235 distclean: clean
   236 	rm -f Makefile
   237 	rm -f config.status config.cache config.log
   238 	rm -rf $(srcdir)/autom4te*