test/Makefile.in
author Andreas Schiffler <aschiffler@ferzkopp.net>
Wed, 19 Mar 2014 21:39:55 -0700
changeset 8645 d69fdbefeecf
parent 8164 478fbe1f032f
child 8931 44d8a2f4b431
permissions -rw-r--r--
Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
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 \
aschiffler@8645
    95
		      $(srcdir)/testautomation_video.c \
aschiffler@8645
    96
		      $(srcdir)/testautomation_hints.c
slouken@7280
    97
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
    98
icculus@2049
    99
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
   100
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
   101
slouken@5254
   102
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
   103
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   104
slouken@6785
   105
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
   106
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   107
slouken@6785
   108
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   109
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   110
slouken@6785
   111
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   112
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   113
slouken@7529
   114
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   115
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   116
urkle@7807
   117
testdropfile$(EXE): $(srcdir)/testdropfile.c
urkle@7807
   118
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@7807
   119
slouken@1380
   120
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   121
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   122
slouken@1453
   123
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   124
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   125
slouken@6690
   126
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   127
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   128
 
slouken@5254
   129
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   130
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   131
 
slouken@6785
   132
testgl2$(EXE): $(srcdir)/testgl2.c
gabomdq@8062
   133
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1914
   134
slouken@6785
   135
testgles$(EXE): $(srcdir)/testgles.c
gabomdq@7794
   136
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
slouken@3087
   137
gabomdq@8014
   138
testgles2$(EXE): $(srcdir)/testgles2.c
gabomdq@8062
   139
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@8014
   140
slouken@5254
   141
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   142
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   143
urkle@8164
   144
testhotplug$(EXE): $(srcdir)/testhotplug.c
urkle@8164
   145
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@8164
   146
slouken@5360
   147
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   148
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   149
slouken@5508
   150
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   151
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   152
slouken@1501
   153
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   154
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   155
slouken@6785
   156
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   157
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   158
slouken@6785
   159
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   160
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   161
slouken@1380
   162
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   163
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   164
slouken@5254
   165
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   166
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   167
slouken@1380
   168
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   169
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   170
icculus@6390
   171
ifeq (@ISMACOSX@,true)
slouken@6175
   172
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   173
			$(srcdir)/testnativecocoa.m \
slouken@7495
   174
			$(srcdir)/testnativex11.c
slouken@7495
   175
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   176
endif
icculus@6390
   177
icculus@6390
   178
ifeq (@ISWINDOWS@,true)
icculus@6390
   179
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   180
			$(srcdir)/testnativew32.c
slouken@6601
   181
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   182
endif
icculus@6390
   183
icculus@6390
   184
ifeq (@ISUNIX@,true)
icculus@6390
   185
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   186
			$(srcdir)/testnativex11.c
slouken@7495
   187
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   188
endif
slouken@6175
   189
slouken@1380
   190
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   191
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   192
slouken@1421
   193
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   194
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   195
slouken@5254
   196
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   197
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   198
icculus@7667
   199
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
icculus@7667
   200
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7667
   201
slouken@6785
   202
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   203
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   204
slouken@6785
   205
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   206
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   207
slouken@1380
   208
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   209
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   210
slouken@5232
   211
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   212
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   213
eligottlieb@4799
   214
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   215
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   216
slouken@6785
   217
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   218
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   219
slouken@5254
   220
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   221
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   222
slouken@5254
   223
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   224
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   225
slouken@1380
   226
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   227
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   228
slouken@1380
   229
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   230
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   231
slouken@7994
   232
testviewport$(EXE): $(srcdir)/testviewport.c
slouken@7994
   233
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7994
   234
slouken@6785
   235
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   236
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   237
slouken@1380
   238
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   239
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   240
slouken@6785
   241
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   242
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   243
slouken@6614
   244
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   245
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   246
gabomdq@8043
   247
controllermap$(EXE): $(srcdir)/controllermap.c
gabomdq@8043
   248
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
gabomdq@8043
   249
gabomdq@8043
   250
slouken@1380
   251
clean:
slouken@1380
   252
	rm -f $(TARGETS)
slouken@1380
   253
slouken@1380
   254
distclean: clean
slouken@1380
   255
	rm -f Makefile
slouken@1380
   256
	rm -f config.status config.cache config.log
slouken@1380
   257
	rm -rf $(srcdir)/autom4te*