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