test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Tue, 08 Feb 2011 22:11:16 -0800
changeset 5232 74bc160186a8
parent 5151 8ef640410ac9
child 5240 a9eb73f21e3a
permissions -rw-r--r--
Added a simple GLSL example using SDL
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@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@1380
   156
testsem$(EXE): $(srcdir)/testsem.c
slouken@1380
   157
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   158
slouken@5232
   159
testshader$(EXE): $(srcdir)/testshader.c
slouken@5232
   160
	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   161
eligottlieb@4799
   162
testshape$(EXE): $(srcdir)/testshape.c
eligottlieb@4799
   163
	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
eligottlieb@4799
   164
slouken@3417
   165
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@3417
   166
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@3417
   167
slouken@1380
   168
testsprite$(EXE): $(srcdir)/testsprite.c
slouken@1380
   169
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
   170
slouken@1914
   171
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@1914
   172
	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   173
slouken@1380
   174
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@1380
   175
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   176
slouken@1380
   177
testver$(EXE): $(srcdir)/testver.c
slouken@1380
   178
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   179
slouken@1380
   180
testvidinfo$(EXE): $(srcdir)/testvidinfo.c
slouken@1380
   181
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   182
slouken@1380
   183
testwin$(EXE): $(srcdir)/testwin.c
slouken@1380
   184
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   185
slouken@1380
   186
testwm$(EXE): $(srcdir)/testwm.c
slouken@1380
   187
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   188
slouken@1933
   189
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@1933
   190
	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@1895
   191
slouken@1380
   192
threadwin$(EXE): $(srcdir)/threadwin.c
slouken@1380
   193
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   194
slouken@1380
   195
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@1380
   196
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   197
icculus@2067
   198
testloadso$(EXE): $(srcdir)/testloadso.c
icculus@2067
   199
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2067
   200
slouken@2713
   201
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@2713
   202
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@2713
   203
slouken@3576
   204
testatomic$(EXE): $(srcdir)/testatomic.c
kazeuser@2734
   205
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   206
jim@4689
   207
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@4946
   208
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
bob@3180
   209
 
slouken@3280
   210
testime$(EXE): $(srcdir)/testime.c
slouken@3280
   211
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@3280
   212
slouken@1380
   213
clean:
slouken@1380
   214
	rm -f $(TARGETS)
slouken@1380
   215
slouken@1380
   216
distclean: clean
slouken@1380
   217
	rm -f Makefile
slouken@1380
   218
	rm -f config.status config.cache config.log
slouken@1380
   219
	rm -rf $(srcdir)/autom4te*