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