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