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