test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Mon, 01 Aug 2016 00:18:56 -0400
changeset 10231 4b0893d63092
parent 10196 6c8f3b478b45
child 10938 90e5cb81c483
permissions -rw-r--r--
audio: Initial bits to enable audio capture support.
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@
urkle@7807
     7
CFLAGS  = @CFLAGS@ -g
slouken@1380
     8
LIBS	= @LIBS@
slouken@1380
     9
slouken@5232
    10
TARGETS = \
slouken@5232
    11
	checkkeys$(EXE) \
slouken@5232
    12
	loopwave$(EXE) \
icculus@9012
    13
	loopwavequeue$(EXE) \
binarycrusader@8979
    14
	testatomic$(EXE) \
icculus@6412
    15
	testaudioinfo$(EXE) \
icculus@10231
    16
	testaudiocapture$(EXE) \
slouken@6769
    17
	testautomation$(EXE) \
icculus@10019
    18
	testbounds$(EXE) \
brandon@10196
    19
	testcustomcursor$(EXE) \
slouken@5232
    20
	testdraw2$(EXE) \
slouken@7529
    21
	testdrawchessboard$(EXE) \
urkle@7807
    22
	testdropfile$(EXE) \
slouken@5232
    23
	testerror$(EXE) \
slouken@5232
    24
	testfile$(EXE) \
slouken@6690
    25
	testgamecontroller$(EXE) \
slouken@5232
    26
	testgesture$(EXE) \
slouken@5232
    27
	testgl2$(EXE) \
slouken@5232
    28
	testgles$(EXE) \
gabomdq@8014
    29
	testgles2$(EXE) \
slouken@5232
    30
	testhaptic$(EXE) \
icculus@8935
    31
	testhittesting$(EXE) \
slouken@5508
    32
	testrumble$(EXE) \
urkle@8164
    33
	testhotplug$(EXE) \
slouken@5508
    34
	testthread$(EXE) \
slouken@5232
    35
	testiconv$(EXE) \
slouken@5232
    36
	testime$(EXE) \
slouken@5232
    37
	testintersections$(EXE) \
slouken@6311
    38
	testrelative$(EXE) \
slouken@5232
    39
	testjoystick$(EXE) \
slouken@5232
    40
	testkeys$(EXE) \
slouken@5232
    41
	testloadso$(EXE) \
slouken@5232
    42
	testlock$(EXE) \
slouken@5232
    43
	testmultiaudio$(EXE) \
icculus@9393
    44
	testaudiohotplug$(EXE) \
slouken@6175
    45
	testnative$(EXE) \
slouken@5232
    46
	testoverlay2$(EXE) \
slouken@5232
    47
	testplatform$(EXE) \
slouken@5232
    48
	testpower$(EXE) \
icculus@7667
    49
	testfilesystem$(EXE) \
slouken@6232
    50
	testrendertarget$(EXE) \
slouken@5232
    51
	testresample$(EXE) \
slouken@5240
    52
	testscale$(EXE) \
slouken@5232
    53
	testsem$(EXE) \
slouken@5232
    54
	testshader$(EXE) \
slouken@5232
    55
	testshape$(EXE) \
slouken@5232
    56
	testsprite2$(EXE) \
slouken@5232
    57
	testspriteminimal$(EXE) \
slouken@5254
    58
	teststreaming$(EXE) \
slouken@5232
    59
	testtimer$(EXE) \
slouken@5232
    60
	testver$(EXE) \
slouken@7994
    61
	testviewport$(EXE) \
slouken@5232
    62
	testwm2$(EXE) \
slouken@5232
    63
	torturethread$(EXE) \
gabomdq@6320
    64
	testrendercopyex$(EXE) \
slouken@6614
    65
	testmessage$(EXE) \
icculus@9800
    66
	testdisplayinfo$(EXE) \
icculus@10109
    67
	testqsort$(EXE) \
gabomdq@8043
    68
	controllermap$(EXE) \
gabomdq@8043
    69
	
slouken@1914
    70
all: Makefile $(TARGETS)
slouken@1914
    71
slouken@1914
    72
Makefile: $(srcdir)/Makefile.in
slouken@1914
    73
	$(SHELL) config.status $@
slouken@1380
    74
slouken@1380
    75
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@6601
    76
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    77
slouken@1380
    78
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    79
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    80
icculus@9012
    81
loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
icculus@9012
    82
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9012
    83
icculus@3017
    84
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    85
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    86
icculus@2049
    87
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    88
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    89
slouken@6769
    90
testautomation$(EXE): $(srcdir)/testautomation.c \
slouken@7216
    91
		      $(srcdir)/testautomation_audio.c \
slouken@6769
    92
		      $(srcdir)/testautomation_clipboard.c \
slouken@7216
    93
		      $(srcdir)/testautomation_events.c \
slouken@7216
    94
		      $(srcdir)/testautomation_keyboard.c \
jorgen@6866
    95
		      $(srcdir)/testautomation_main.c \
slouken@7216
    96
		      $(srcdir)/testautomation_mouse.c \
slouken@7216
    97
		      $(srcdir)/testautomation_pixels.c \
slouken@6769
    98
		      $(srcdir)/testautomation_platform.c \
slouken@6769
    99
		      $(srcdir)/testautomation_rect.c \
slouken@6769
   100
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
   101
		      $(srcdir)/testautomation_rwops.c \
slouken@7216
   102
		      $(srcdir)/testautomation_sdltest.c \
slouken@7216
   103
		      $(srcdir)/testautomation_stdlib.c \
aschiffler@6800
   104
		      $(srcdir)/testautomation_surface.c \
aschiffler@6801
   105
		      $(srcdir)/testautomation_syswm.c \
aschiffler@7134
   106
		      $(srcdir)/testautomation_timer.c \
aschiffler@8645
   107
		      $(srcdir)/testautomation_video.c \
aschiffler@8645
   108
		      $(srcdir)/testautomation_hints.c
slouken@7280
   109
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
   110
icculus@2049
   111
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
   112
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
   113
icculus@9393
   114
testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
icculus@9393
   115
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9393
   116
icculus@10231
   117
testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
icculus@10231
   118
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@10231
   119
slouken@5254
   120
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
   121
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   122
slouken@6785
   123
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
   124
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   125
slouken@6785
   126
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   127
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   128
icculus@8935
   129
testhittesting$(EXE): $(srcdir)/testhittesting.c
icculus@8931
   130
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@8931
   131
slouken@6785
   132
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   133
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   134
slouken@7529
   135
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   136
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   137
urkle@7807
   138
testdropfile$(EXE): $(srcdir)/testdropfile.c
urkle@7807
   139
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@7807
   140
slouken@1380
   141
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   142
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   143
slouken@1453
   144
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   145
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   146
slouken@6690
   147
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   148
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   149
 
slouken@5254
   150
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   151
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   152
 
slouken@6785
   153
testgl2$(EXE): $(srcdir)/testgl2.c
gabomdq@8062
   154
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1914
   155
slouken@6785
   156
testgles$(EXE): $(srcdir)/testgles.c
gabomdq@7794
   157
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
slouken@3087
   158
gabomdq@8014
   159
testgles2$(EXE): $(srcdir)/testgles2.c
gabomdq@8062
   160
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@8014
   161
slouken@5254
   162
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   163
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   164
urkle@8164
   165
testhotplug$(EXE): $(srcdir)/testhotplug.c
urkle@8164
   166
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@8164
   167
slouken@5360
   168
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   169
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   170
slouken@5508
   171
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   172
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   173
slouken@1501
   174
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   175
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   176
slouken@6785
   177
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   178
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   179
slouken@6785
   180
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   181
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   182
slouken@1380
   183
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   184
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   185
slouken@5254
   186
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   187
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   188
slouken@1380
   189
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   190
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   191
icculus@6390
   192
ifeq (@ISMACOSX@,true)
slouken@6175
   193
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   194
			$(srcdir)/testnativecocoa.m \
slouken@7495
   195
			$(srcdir)/testnativex11.c
slouken@7495
   196
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   197
endif
icculus@6390
   198
icculus@6390
   199
ifeq (@ISWINDOWS@,true)
icculus@6390
   200
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   201
			$(srcdir)/testnativew32.c
slouken@6601
   202
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   203
endif
icculus@6390
   204
icculus@6390
   205
ifeq (@ISUNIX@,true)
icculus@6390
   206
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   207
			$(srcdir)/testnativex11.c
slouken@7495
   208
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   209
endif
slouken@6175
   210
icculus@9278
   211
#there's probably a better way of doing this
icculus@9278
   212
ifeq (@ISMACOSX@,false)
icculus@9278
   213
ifeq (@ISWINDOWS@,false)
icculus@9278
   214
ifeq (@ISUNIX@,false)
icculus@9278
   215
testnative$(EXE): ;
icculus@9278
   216
endif
icculus@9278
   217
endif
icculus@9278
   218
endif
icculus@9278
   219
slouken@1380
   220
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   221
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   222
slouken@1421
   223
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   224
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   225
slouken@5254
   226
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   227
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   228
icculus@7667
   229
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
icculus@7667
   230
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7667
   231
slouken@6785
   232
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   233
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   234
slouken@6785
   235
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   236
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   237
slouken@1380
   238
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   239
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   240
slouken@5232
   241
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   242
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   243
eligottlieb@4799
   244
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   245
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   246
slouken@6785
   247
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   248
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   249
slouken@5254
   250
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   251
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   252
slouken@5254
   253
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   254
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   255
slouken@1380
   256
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   257
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   258
slouken@1380
   259
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   260
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   261
slouken@7994
   262
testviewport$(EXE): $(srcdir)/testviewport.c
slouken@7994
   263
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7994
   264
slouken@6785
   265
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   266
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   267
slouken@1380
   268
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   269
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   270
slouken@6785
   271
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   272
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   273
slouken@6614
   274
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   275
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   276
icculus@9800
   277
testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
icculus@9800
   278
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9800
   279
icculus@10109
   280
testqsort$(EXE): $(srcdir)/testqsort.c
icculus@10109
   281
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@10109
   282
icculus@10019
   283
testbounds$(EXE): $(srcdir)/testbounds.c
icculus@10019
   284
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@10019
   285
brandon@10196
   286
testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
brandon@10196
   287
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
brandon@10196
   288
gabomdq@8043
   289
controllermap$(EXE): $(srcdir)/controllermap.c
gabomdq@8043
   290
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
gabomdq@8043
   291
gabomdq@8043
   292
slouken@1380
   293
clean:
slouken@1380
   294
	rm -f $(TARGETS)
slouken@1380
   295
slouken@1380
   296
distclean: clean
slouken@1380
   297
	rm -f Makefile
slouken@1380
   298
	rm -f config.status config.cache config.log
slouken@1380
   299
	rm -rf $(srcdir)/autom4te*