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