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