test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Wed, 30 May 2012 11:25:35 -0400
changeset 6311 4e5e46f43438
parent 6256 1d905b13b102
child 6318 49b2cb56db6e
permissions -rw-r--r--
Initial support for XInput2 by Dimitris Zenios

1.initial work on XInput2 support
2.Implemented relative mouse motion when XInput2 is enabled
3.Created a test app to test relative mouse motion
4.Fixed Bug #1498
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@
slouken@1380
     7
CFLAGS  = @CFLAGS@
slouken@1380
     8
LIBS	= @LIBS@
slouken@1380
     9
slouken@5232
    10
TARGETS = \
slouken@5232
    11
	checkkeys$(EXE) \
slouken@5232
    12
	loopwave$(EXE) \
slouken@5232
    13
	testdraw2$(EXE) \
slouken@5232
    14
	testerror$(EXE) \
slouken@5232
    15
	testfile$(EXE) \
slouken@5232
    16
	testgesture$(EXE) \
slouken@5232
    17
	testgl2$(EXE) \
slouken@5232
    18
	testgles$(EXE) \
slouken@5232
    19
	testhaptic$(EXE) \
slouken@5508
    20
	testrumble$(EXE) \
slouken@5508
    21
	testthread$(EXE) \
slouken@5232
    22
	testiconv$(EXE) \
slouken@5232
    23
	testime$(EXE) \
slouken@5232
    24
	testintersections$(EXE) \
slouken@6311
    25
	testrelative$(EXE) \
slouken@5232
    26
	testjoystick$(EXE) \
slouken@5232
    27
	testkeys$(EXE) \
slouken@5232
    28
	testloadso$(EXE) \
slouken@5232
    29
	testlock$(EXE) \
slouken@5232
    30
	testmultiaudio$(EXE) \
slouken@6175
    31
	testnative$(EXE) \
slouken@5232
    32
	testoverlay2$(EXE) \
slouken@5232
    33
	testplatform$(EXE) \
slouken@5232
    34
	testpower$(EXE) \
slouken@6232
    35
	testrendertarget$(EXE) \
slouken@5232
    36
	testresample$(EXE) \
slouken@5240
    37
	testscale$(EXE) \
slouken@5232
    38
	testsem$(EXE) \
slouken@5232
    39
	testshader$(EXE) \
slouken@5232
    40
	testshape$(EXE) \
slouken@5232
    41
	testsprite2$(EXE) \
slouken@5232
    42
	testspriteminimal$(EXE) \
slouken@5254
    43
	teststreaming$(EXE) \
slouken@5232
    44
	testtimer$(EXE) \
slouken@5232
    45
	testver$(EXE) \
slouken@5232
    46
	testwm2$(EXE) \
slouken@5232
    47
	torturethread$(EXE) \
slouken@1380
    48
slouken@1914
    49
all: Makefile $(TARGETS)
slouken@1914
    50
slouken@1914
    51
Makefile: $(srcdir)/Makefile.in
slouken@1914
    52
	$(SHELL) config.status $@
slouken@1380
    53
slouken@1380
    54
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@1380
    55
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    56
slouken@1380
    57
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@1380
    58
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    59
icculus@3017
    60
testresample$(EXE): $(srcdir)/testresample.c
icculus@3017
    61
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3017
    62
icculus@2049
    63
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
icculus@2049
    64
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    65
icculus@2049
    66
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
icculus@2049
    67
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    68
slouken@5254
    69
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@5254
    70
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
    71
slouken@2994
    72
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@2994
    73
	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2994
    74
slouken@6311
    75
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
slouken@6311
    76
	$(CC) -o $@ $(srcdir)/testrelative.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@6311
    77
slouken@2914
    78
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@2914
    79
	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2914
    80
slouken@1380
    81
testerror$(EXE): $(srcdir)/testerror.c
slouken@1380
    82
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    83
slouken@1453
    84
testfile$(EXE): $(srcdir)/testfile.c
slouken@1453
    85
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1453
    86
slouken@5254
    87
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@1380
    88
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
    89
 
slouken@1915
    90
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@1915
    91
	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
    92
slouken@3087
    93
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@3087
    94
	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
    95
slouken@5254
    96
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@5254
    97
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
    98
slouken@5360
    99
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@5360
   100
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5360
   101
slouken@5508
   102
testthread$(EXE): $(srcdir)/testthread.c
slouken@1380
   103
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   104
slouken@1501
   105
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@1501
   106
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1501
   107
slouken@5254
   108
testime$(EXE): $(srcdir)/testime.c
slouken@5254
   109
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   110
slouken@1380
   111
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@1380
   112
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   113
slouken@1380
   114
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@1380
   115
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   116
slouken@5254
   117
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@5254
   118
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   119
slouken@1380
   120
testlock$(EXE): $(srcdir)/testlock.c
slouken@1380
   121
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   122
slouken@6175
   123
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   124
			$(srcdir)/testnativecocoa.m \
slouken@6175
   125
			$(srcdir)/testnativew32.c \
slouken@6175
   126
			$(srcdir)/testnativex11.c
slouken@6175
   127
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
slouken@6175
   128
slouken@1380
   129
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@1380
   130
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   131
slouken@1421
   132
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@1421
   133
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1421
   134
slouken@5254
   135
testpower$(EXE): $(srcdir)/testpower.c
slouken@5254
   136
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   137
slouken@6232
   138
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
slouken@6232
   139
	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@6232
   140
slouken@5240
   141
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@5240
   142
	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@5240
   143
slouken@1380
   144
testsem$(EXE): $(srcdir)/testsem.c
slouken@1380
   145
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   146
slouken@5232
   147
testshader$(EXE): $(srcdir)/testshader.c
slouken@5232
   148
	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   149
eligottlieb@4799
   150
testshape$(EXE): $(srcdir)/testshape.c
eligottlieb@4799
   151
	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
eligottlieb@4799
   152
slouken@1914
   153
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@1914
   154
	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   155
slouken@5254
   156
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@5254
   157
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   158
slouken@5254
   159
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@5254
   160
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   161
slouken@1380
   162
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@1380
   163
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   164
slouken@1380
   165
testver$(EXE): $(srcdir)/testver.c
slouken@1380
   166
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   167
slouken@1933
   168
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@1933
   169
	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@1895
   170
slouken@1380
   171
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@1380
   172
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   173
slouken@1380
   174
clean:
slouken@1380
   175
	rm -f $(TARGETS)
slouken@1380
   176
slouken@1380
   177
distclean: clean
slouken@1380
   178
	rm -f Makefile
slouken@1380
   179
	rm -f config.status config.cache config.log
slouken@1380
   180
	rm -rf $(srcdir)/autom4te*