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