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