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