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.
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@5232
    26
	testgesture$(EXE) \
slouken@5232
    27
	testgl$(EXE) \
slouken@5232
    28
	testgl2$(EXE) \
slouken@5232
    29
	testgles$(EXE) \
slouken@5232
    30
	testhaptic$(EXE) \
slouken@5232
    31
	testhread$(EXE) \
slouken@5232
    32
	testiconv$(EXE) \
slouken@5232
    33
	testime$(EXE) \
slouken@5232
    34
	testintersections$(EXE) \
slouken@5232
    35
	testjoystick$(EXE) \
slouken@5232
    36
	testkeys$(EXE) \
slouken@5232
    37
	testloadso$(EXE) \
slouken@5232
    38
	testlock$(EXE) \
slouken@5232
    39
	testmultiaudio$(EXE) \
slouken@5232
    40
	testoverlay$(EXE) \
slouken@5232
    41
	testoverlay2$(EXE) \
slouken@5232
    42
	testplatform$(EXE) \
slouken@5232
    43
	testpower$(EXE) \
slouken@5232
    44
	testresample$(EXE) \
slouken@5240
    45
	testscale$(EXE) \
slouken@5232
    46
	testsem$(EXE) \
slouken@5232
    47
	testshader$(EXE) \
slouken@5232
    48
	testshape$(EXE) \
slouken@5232
    49
	testsprite$(EXE) \
slouken@5232
    50
	testsprite2$(EXE) \
slouken@5232
    51
	testspriteminimal$(EXE) \
slouken@5232
    52
	testtimer$(EXE) \
slouken@5232
    53
	testver$(EXE) \
slouken@5232
    54
	testvidinfo$(EXE) \
slouken@5232
    55
	testwin$(EXE) \
slouken@5232
    56
	testwm$(EXE) \
slouken@5232
    57
	testwm2$(EXE) \
slouken@5232
    58
	threadwin$(EXE) \
slouken@5232
    59
	torturethread$(EXE) \
slouken@1380
    60
slouken@1914
    61
all: Makefile $(TARGETS)
slouken@1914
    62
slouken@1914
    63
Makefile: $(srcdir)/Makefile.in
slouken@1914
    64
	$(SHELL) config.status $@
slouken@1380
    65
slouken@1380
    66
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@1380
    67
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    68
slouken@1380
    69
graywin$(EXE): $(srcdir)/graywin.c
slouken@1380
    70
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    71
slouken@1380
    72
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@1380
    73
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    74
icculus@3017
    75
testresample$(EXE): $(srcdir)/testresample.c
icculus@3017
    76
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3017
    77
icculus@2049
    78
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
icculus@2049
    79
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    80
icculus@2049
    81
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
icculus@2049
    82
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    83
icculus@3170
    84
testpower$(EXE): $(srcdir)/testpower.c
icculus@3170
    85
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3170
    86
slouken@1380
    87
testalpha$(EXE): $(srcdir)/testalpha.c
slouken@1380
    88
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
    89
slouken@1380
    90
testbitmap$(EXE): $(srcdir)/testbitmap.c
slouken@1380
    91
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    92
slouken@1380
    93
testblitspeed$(EXE): $(srcdir)/testblitspeed.c
slouken@1380
    94
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    95
patmandin@1858
    96
testcursor$(EXE): $(srcdir)/testcursor.c
patmandin@1858
    97
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
patmandin@1858
    98
slouken@2994
    99
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@2994
   100
	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2994
   101
slouken@2914
   102
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@2914
   103
	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2914
   104
slouken@1380
   105
testdyngl$(EXE): $(srcdir)/testdyngl.c
slouken@1380
   106
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   107
slouken@3087
   108
testdyngles$(EXE): $(srcdir)/testdyngles.c
slouken@3087
   109
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@3087
   110
slouken@1380
   111
testerror$(EXE): $(srcdir)/testerror.c
slouken@1380
   112
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   113
slouken@1453
   114
testfile$(EXE): $(srcdir)/testfile.c
slouken@1453
   115
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1453
   116
slouken@3576
   117
testfill$(EXE): $(srcdir)/testfill.c
slouken@3576
   118
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@3576
   119
slouken@1380
   120
testgamma$(EXE): $(srcdir)/testgamma.c
slouken@1380
   121
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
   122
slouken@1380
   123
testgl$(EXE): $(srcdir)/testgl.c
slouken@1380
   124
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1380
   125
slouken@1915
   126
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@1915
   127
	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
   128
slouken@3087
   129
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@3087
   130
	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
   131
slouken@1380
   132
testhread$(EXE): $(srcdir)/testhread.c
slouken@1380
   133
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   134
slouken@1501
   135
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@1501
   136
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1501
   137
slouken@1380
   138
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@1380
   139
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   140
slouken@1380
   141
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@1380
   142
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   143
slouken@1380
   144
testlock$(EXE): $(srcdir)/testlock.c
slouken@1380
   145
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   146
slouken@1380
   147
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@1380
   148
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   149
slouken@1380
   150
testoverlay$(EXE): $(srcdir)/testoverlay.c
slouken@1380
   151
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   152
slouken@1421
   153
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@1421
   154
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1421
   155
slouken@5240
   156
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@5240
   157
	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@5240
   158
slouken@1380
   159
testsem$(EXE): $(srcdir)/testsem.c
slouken@1380
   160
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   161
slouken@5232
   162
testshader$(EXE): $(srcdir)/testshader.c
slouken@5232
   163
	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   164
eligottlieb@4799
   165
testshape$(EXE): $(srcdir)/testshape.c
eligottlieb@4799
   166
	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
eligottlieb@4799
   167
slouken@3417
   168
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@3417
   169
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@3417
   170
slouken@1380
   171
testsprite$(EXE): $(srcdir)/testsprite.c
slouken@1380
   172
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
   173
slouken@1914
   174
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@1914
   175
	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   176
slouken@1380
   177
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@1380
   178
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   179
slouken@1380
   180
testver$(EXE): $(srcdir)/testver.c
slouken@1380
   181
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   182
slouken@1380
   183
testvidinfo$(EXE): $(srcdir)/testvidinfo.c
slouken@1380
   184
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   185
slouken@1380
   186
testwin$(EXE): $(srcdir)/testwin.c
slouken@1380
   187
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   188
slouken@1380
   189
testwm$(EXE): $(srcdir)/testwm.c
slouken@1380
   190
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   191
slouken@1933
   192
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@1933
   193
	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@1895
   194
slouken@1380
   195
threadwin$(EXE): $(srcdir)/threadwin.c
slouken@1380
   196
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   197
slouken@1380
   198
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@1380
   199
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   200
icculus@2067
   201
testloadso$(EXE): $(srcdir)/testloadso.c
icculus@2067
   202
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2067
   203
slouken@2713
   204
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@2713
   205
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@2713
   206
slouken@3576
   207
testatomic$(EXE): $(srcdir)/testatomic.c
kazeuser@2734
   208
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   209
jim@4689
   210
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@4946
   211
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
bob@3180
   212
 
slouken@3280
   213
testime$(EXE): $(srcdir)/testime.c
slouken@3280
   214
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@3280
   215
slouken@1380
   216
clean:
slouken@1380
   217
	rm -f $(TARGETS)
slouken@1380
   218
slouken@1380
   219
distclean: clean
slouken@1380
   220
	rm -f Makefile
slouken@1380
   221
	rm -f config.status config.cache config.log
slouken@1380
   222
	rm -rf $(srcdir)/autom4te*