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