test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Mon, 16 Mar 2015 02:11:39 -0400
changeset 9393 ed79a66e57e5
parent 9296 905df51500a0
child 9800 978b538d177e
permissions -rw-r--r--
Initial work on audio device hotplug support.

This fills in the core pieces and fully implements it for Mac OS X.

Most other platforms, at the moment, will report a disconnected device if
it fails to write audio, but don't notice if the system's device list changed
at all.
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) \
slouken@6769
    16
	testautomation$(EXE) \
slouken@5232
    17
	testdraw2$(EXE) \
slouken@7529
    18
	testdrawchessboard$(EXE) \
urkle@7807
    19
	testdropfile$(EXE) \
slouken@5232
    20
	testerror$(EXE) \
slouken@5232
    21
	testfile$(EXE) \
slouken@6690
    22
	testgamecontroller$(EXE) \
slouken@5232
    23
	testgesture$(EXE) \
slouken@5232
    24
	testgl2$(EXE) \
slouken@5232
    25
	testgles$(EXE) \
gabomdq@8014
    26
	testgles2$(EXE) \
slouken@5232
    27
	testhaptic$(EXE) \
icculus@8935
    28
	testhittesting$(EXE) \
slouken@5508
    29
	testrumble$(EXE) \
urkle@8164
    30
	testhotplug$(EXE) \
slouken@5508
    31
	testthread$(EXE) \
slouken@5232
    32
	testiconv$(EXE) \
slouken@5232
    33
	testime$(EXE) \
slouken@5232
    34
	testintersections$(EXE) \
slouken@6311
    35
	testrelative$(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) \
icculus@9393
    41
	testaudiohotplug$(EXE) \
slouken@6175
    42
	testnative$(EXE) \
slouken@5232
    43
	testoverlay2$(EXE) \
slouken@5232
    44
	testplatform$(EXE) \
slouken@5232
    45
	testpower$(EXE) \
icculus@7667
    46
	testfilesystem$(EXE) \
slouken@6232
    47
	testrendertarget$(EXE) \
slouken@5232
    48
	testresample$(EXE) \
slouken@5240
    49
	testscale$(EXE) \
slouken@5232
    50
	testsem$(EXE) \
slouken@5232
    51
	testshader$(EXE) \
slouken@5232
    52
	testshape$(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@7994
    58
	testviewport$(EXE) \
slouken@5232
    59
	testwm2$(EXE) \
slouken@5232
    60
	torturethread$(EXE) \
gabomdq@6320
    61
	testrendercopyex$(EXE) \
slouken@6614
    62
	testmessage$(EXE) \
gabomdq@8043
    63
	controllermap$(EXE) \
gabomdq@8043
    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@6601
    71
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    72
slouken@1380
    73
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    74
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    75
icculus@9012
    76
loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
icculus@9012
    77
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9012
    78
icculus@3017
    79
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    80
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    81
icculus@2049
    82
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    83
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    84
slouken@6769
    85
testautomation$(EXE): $(srcdir)/testautomation.c \
slouken@7216
    86
		      $(srcdir)/testautomation_audio.c \
slouken@6769
    87
		      $(srcdir)/testautomation_clipboard.c \
slouken@7216
    88
		      $(srcdir)/testautomation_events.c \
slouken@7216
    89
		      $(srcdir)/testautomation_keyboard.c \
jorgen@6866
    90
		      $(srcdir)/testautomation_main.c \
slouken@7216
    91
		      $(srcdir)/testautomation_mouse.c \
slouken@7216
    92
		      $(srcdir)/testautomation_pixels.c \
slouken@6769
    93
		      $(srcdir)/testautomation_platform.c \
slouken@6769
    94
		      $(srcdir)/testautomation_rect.c \
slouken@6769
    95
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
    96
		      $(srcdir)/testautomation_rwops.c \
slouken@7216
    97
		      $(srcdir)/testautomation_sdltest.c \
slouken@7216
    98
		      $(srcdir)/testautomation_stdlib.c \
aschiffler@6800
    99
		      $(srcdir)/testautomation_surface.c \
aschiffler@6801
   100
		      $(srcdir)/testautomation_syswm.c \
aschiffler@7134
   101
		      $(srcdir)/testautomation_timer.c \
aschiffler@8645
   102
		      $(srcdir)/testautomation_video.c \
aschiffler@8645
   103
		      $(srcdir)/testautomation_hints.c
slouken@7280
   104
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
   105
icculus@2049
   106
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
   107
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
   108
icculus@9393
   109
testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
icculus@9393
   110
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9393
   111
slouken@5254
   112
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
   113
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   114
slouken@6785
   115
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
   116
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   117
slouken@6785
   118
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   119
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   120
icculus@8935
   121
testhittesting$(EXE): $(srcdir)/testhittesting.c
icculus@8931
   122
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@8931
   123
slouken@6785
   124
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   125
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   126
slouken@7529
   127
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   128
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   129
urkle@7807
   130
testdropfile$(EXE): $(srcdir)/testdropfile.c
urkle@7807
   131
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@7807
   132
slouken@1380
   133
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   134
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   135
slouken@1453
   136
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   137
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   138
slouken@6690
   139
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   140
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   141
 
slouken@5254
   142
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   143
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   144
 
slouken@6785
   145
testgl2$(EXE): $(srcdir)/testgl2.c
gabomdq@8062
   146
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1914
   147
slouken@6785
   148
testgles$(EXE): $(srcdir)/testgles.c
gabomdq@7794
   149
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
slouken@3087
   150
gabomdq@8014
   151
testgles2$(EXE): $(srcdir)/testgles2.c
gabomdq@8062
   152
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@8014
   153
slouken@5254
   154
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   155
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   156
urkle@8164
   157
testhotplug$(EXE): $(srcdir)/testhotplug.c
urkle@8164
   158
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@8164
   159
slouken@5360
   160
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   161
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   162
slouken@5508
   163
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   164
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   165
slouken@1501
   166
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   167
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   168
slouken@6785
   169
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   170
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   171
slouken@6785
   172
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   173
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   174
slouken@1380
   175
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   176
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   177
slouken@5254
   178
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   179
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   180
slouken@1380
   181
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   182
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   183
icculus@6390
   184
ifeq (@ISMACOSX@,true)
slouken@6175
   185
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   186
			$(srcdir)/testnativecocoa.m \
slouken@7495
   187
			$(srcdir)/testnativex11.c
slouken@7495
   188
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   189
endif
icculus@6390
   190
icculus@6390
   191
ifeq (@ISWINDOWS@,true)
icculus@6390
   192
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   193
			$(srcdir)/testnativew32.c
slouken@6601
   194
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   195
endif
icculus@6390
   196
icculus@6390
   197
ifeq (@ISUNIX@,true)
icculus@6390
   198
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   199
			$(srcdir)/testnativex11.c
slouken@7495
   200
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   201
endif
slouken@6175
   202
icculus@9278
   203
#there's probably a better way of doing this
icculus@9278
   204
ifeq (@ISMACOSX@,false)
icculus@9278
   205
ifeq (@ISWINDOWS@,false)
icculus@9278
   206
ifeq (@ISUNIX@,false)
icculus@9278
   207
testnative$(EXE): ;
icculus@9278
   208
endif
icculus@9278
   209
endif
icculus@9278
   210
endif
icculus@9278
   211
slouken@1380
   212
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   213
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   214
slouken@1421
   215
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   216
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   217
slouken@5254
   218
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   219
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   220
icculus@7667
   221
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
icculus@7667
   222
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7667
   223
slouken@6785
   224
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   225
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   226
slouken@6785
   227
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   228
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   229
slouken@1380
   230
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   231
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   232
slouken@5232
   233
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   234
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   235
eligottlieb@4799
   236
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   237
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   238
slouken@6785
   239
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   240
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   241
slouken@5254
   242
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   243
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   244
slouken@5254
   245
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   246
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   247
slouken@1380
   248
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   249
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   250
slouken@1380
   251
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   252
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   253
slouken@7994
   254
testviewport$(EXE): $(srcdir)/testviewport.c
slouken@7994
   255
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7994
   256
slouken@6785
   257
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   258
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   259
slouken@1380
   260
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   261
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   262
slouken@6785
   263
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   264
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   265
slouken@6614
   266
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   267
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   268
gabomdq@8043
   269
controllermap$(EXE): $(srcdir)/controllermap.c
gabomdq@8043
   270
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
gabomdq@8043
   271
gabomdq@8043
   272
slouken@1380
   273
clean:
slouken@1380
   274
	rm -f $(TARGETS)
slouken@1380
   275
slouken@1380
   276
distclean: clean
slouken@1380
   277
	rm -f Makefile
slouken@1380
   278
	rm -f config.status config.cache config.log
slouken@1380
   279
	rm -rf $(srcdir)/autom4te*