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