test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sat, 11 Nov 2017 17:21:47 -0800
changeset 11700 57a894f4028f
parent 11365 a9bd2625fa01
child 11702 cf166abbde4a
permissions -rw-r--r--
Fixed typo in comment
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) \
icculus@11365
    69
	testvulkan$(EXE) \
gabomdq@8043
    70
	
icculus@11054
    71
all: Makefile $(TARGETS) copydatafiles
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@1380
    79
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    80
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    81
icculus@9012
    82
loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
icculus@9012
    83
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9012
    84
icculus@3017
    85
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    86
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    87
icculus@2049
    88
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    89
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    90
slouken@6769
    91
testautomation$(EXE): $(srcdir)/testautomation.c \
slouken@7216
    92
		      $(srcdir)/testautomation_audio.c \
slouken@6769
    93
		      $(srcdir)/testautomation_clipboard.c \
slouken@7216
    94
		      $(srcdir)/testautomation_events.c \
slouken@7216
    95
		      $(srcdir)/testautomation_keyboard.c \
jorgen@6866
    96
		      $(srcdir)/testautomation_main.c \
slouken@7216
    97
		      $(srcdir)/testautomation_mouse.c \
slouken@7216
    98
		      $(srcdir)/testautomation_pixels.c \
slouken@6769
    99
		      $(srcdir)/testautomation_platform.c \
slouken@6769
   100
		      $(srcdir)/testautomation_rect.c \
slouken@6769
   101
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
   102
		      $(srcdir)/testautomation_rwops.c \
slouken@7216
   103
		      $(srcdir)/testautomation_sdltest.c \
slouken@7216
   104
		      $(srcdir)/testautomation_stdlib.c \
aschiffler@6800
   105
		      $(srcdir)/testautomation_surface.c \
aschiffler@6801
   106
		      $(srcdir)/testautomation_syswm.c \
aschiffler@7134
   107
		      $(srcdir)/testautomation_timer.c \
aschiffler@8645
   108
		      $(srcdir)/testautomation_video.c \
aschiffler@8645
   109
		      $(srcdir)/testautomation_hints.c
slouken@7280
   110
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
   111
icculus@2049
   112
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
   113
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
   114
icculus@9393
   115
testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
icculus@9393
   116
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9393
   117
icculus@10231
   118
testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
icculus@10231
   119
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@10231
   120
slouken@5254
   121
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
   122
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   123
slouken@6785
   124
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
   125
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   126
slouken@6785
   127
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   128
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   129
icculus@8935
   130
testhittesting$(EXE): $(srcdir)/testhittesting.c
icculus@8931
   131
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@8931
   132
slouken@6785
   133
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   134
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   135
slouken@7529
   136
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   137
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   138
urkle@7807
   139
testdropfile$(EXE): $(srcdir)/testdropfile.c
urkle@7807
   140
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@7807
   141
slouken@1380
   142
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   143
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   144
slouken@1453
   145
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   146
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   147
slouken@6690
   148
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   149
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   150
 
slouken@5254
   151
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   152
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   153
 
slouken@6785
   154
testgl2$(EXE): $(srcdir)/testgl2.c
gabomdq@8062
   155
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1914
   156
slouken@6785
   157
testgles$(EXE): $(srcdir)/testgles.c
gabomdq@7794
   158
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
slouken@3087
   159
gabomdq@8014
   160
testgles2$(EXE): $(srcdir)/testgles2.c
gabomdq@8062
   161
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@8014
   162
slouken@5254
   163
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   164
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   165
urkle@8164
   166
testhotplug$(EXE): $(srcdir)/testhotplug.c
urkle@8164
   167
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@8164
   168
slouken@5360
   169
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   170
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   171
slouken@5508
   172
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   173
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   174
slouken@1501
   175
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   176
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   177
slouken@6785
   178
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   179
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   180
slouken@6785
   181
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   182
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   183
slouken@1380
   184
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   185
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   186
slouken@5254
   187
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   188
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   189
slouken@1380
   190
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   191
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   192
icculus@6390
   193
ifeq (@ISMACOSX@,true)
slouken@6175
   194
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   195
			$(srcdir)/testnativecocoa.m \
slouken@7495
   196
			$(srcdir)/testnativex11.c
slouken@7495
   197
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   198
endif
icculus@6390
   199
icculus@6390
   200
ifeq (@ISWINDOWS@,true)
icculus@6390
   201
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   202
			$(srcdir)/testnativew32.c
slouken@6601
   203
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   204
endif
icculus@6390
   205
icculus@6390
   206
ifeq (@ISUNIX@,true)
icculus@6390
   207
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   208
			$(srcdir)/testnativex11.c
slouken@7495
   209
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   210
endif
slouken@6175
   211
icculus@9278
   212
#there's probably a better way of doing this
icculus@9278
   213
ifeq (@ISMACOSX@,false)
icculus@9278
   214
ifeq (@ISWINDOWS@,false)
icculus@9278
   215
ifeq (@ISUNIX@,false)
icculus@9278
   216
testnative$(EXE): ;
icculus@9278
   217
endif
icculus@9278
   218
endif
icculus@9278
   219
endif
icculus@9278
   220
slouken@1380
   221
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   222
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   223
slouken@1421
   224
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   225
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   226
slouken@5254
   227
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   228
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   229
icculus@7667
   230
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
icculus@7667
   231
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7667
   232
slouken@6785
   233
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   234
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   235
slouken@6785
   236
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   237
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   238
slouken@1380
   239
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   240
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   241
slouken@5232
   242
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   243
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   244
eligottlieb@4799
   245
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   246
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   247
slouken@6785
   248
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   249
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   250
slouken@5254
   251
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   252
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   253
slouken@5254
   254
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   255
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   256
slouken@1380
   257
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   258
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   259
slouken@1380
   260
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   261
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   262
slouken@7994
   263
testviewport$(EXE): $(srcdir)/testviewport.c
slouken@7994
   264
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7994
   265
slouken@6785
   266
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   267
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   268
slouken@1380
   269
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   270
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   271
slouken@6785
   272
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   273
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   274
slouken@6614
   275
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   276
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   277
icculus@9800
   278
testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
icculus@9800
   279
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@9800
   280
icculus@10109
   281
testqsort$(EXE): $(srcdir)/testqsort.c
icculus@10109
   282
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@10109
   283
icculus@10019
   284
testbounds$(EXE): $(srcdir)/testbounds.c
icculus@10019
   285
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@10019
   286
brandon@10196
   287
testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
brandon@10196
   288
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
brandon@10196
   289
gabomdq@8043
   290
controllermap$(EXE): $(srcdir)/controllermap.c
gabomdq@8043
   291
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
gabomdq@8043
   292
icculus@11365
   293
testvulkan$(EXE): $(srcdir)/testvulkan.c
icculus@11365
   294
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@11365
   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*
icculus@11054
   304
icculus@11054
   305
icculus@11054
   306
%.bmp: $(srcdir)/%.bmp
icculus@11054
   307
	cp $< $@
icculus@11054
   308
icculus@11054
   309
%.wav: $(srcdir)/%.wav
icculus@11054
   310
	cp $< $@
icculus@11054
   311
icculus@11054
   312
copydatafiles: copybmpfiles copywavfiles
icculus@11054
   313
.PHONY : copydatafiles
icculus@11054
   314
icculus@11054
   315
copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
icculus@11054
   316
.PHONY : copybmpfiles
icculus@11054
   317
icculus@11054
   318
copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
icculus@11054
   319
.PHONY : copywavfiles
icculus@11054
   320