test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Fri, 11 Mar 2011 08:49:20 -0800
changeset 5466 006883d5fa51
parent 5360 220d3af9121f
child 5508 60b63c32f06d
permissions -rw-r--r--
Gamma support is back!

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