test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Mon, 26 Nov 2012 16:37:54 -0800
changeset 6690 9548c8a58103
parent 6614 92925281e7ca
child 6769 b49778d885cd
permissions -rw-r--r--
Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
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) \
icculus@6412
    13
	testaudioinfo$(EXE) \
slouken@5232
    14
	testdraw2$(EXE) \
slouken@5232
    15
	testerror$(EXE) \
slouken@5232
    16
	testfile$(EXE) \
slouken@6690
    17
	testgamecontroller$(EXE) \
slouken@5232
    18
	testgesture$(EXE) \
slouken@5232
    19
	testgl2$(EXE) \
slouken@5232
    20
	testgles$(EXE) \
slouken@5232
    21
	testhaptic$(EXE) \
slouken@5508
    22
	testrumble$(EXE) \
slouken@5508
    23
	testthread$(EXE) \
slouken@5232
    24
	testiconv$(EXE) \
slouken@5232
    25
	testime$(EXE) \
slouken@5232
    26
	testintersections$(EXE) \
slouken@6311
    27
	testrelative$(EXE) \
slouken@5232
    28
	testjoystick$(EXE) \
slouken@5232
    29
	testkeys$(EXE) \
slouken@5232
    30
	testloadso$(EXE) \
slouken@5232
    31
	testlock$(EXE) \
slouken@5232
    32
	testmultiaudio$(EXE) \
slouken@6175
    33
	testnative$(EXE) \
slouken@5232
    34
	testoverlay2$(EXE) \
slouken@5232
    35
	testplatform$(EXE) \
slouken@5232
    36
	testpower$(EXE) \
slouken@6232
    37
	testrendertarget$(EXE) \
slouken@5232
    38
	testresample$(EXE) \
slouken@5240
    39
	testscale$(EXE) \
slouken@5232
    40
	testsem$(EXE) \
slouken@5232
    41
	testshader$(EXE) \
slouken@5232
    42
	testshape$(EXE) \
slouken@5232
    43
	testsprite2$(EXE) \
slouken@5232
    44
	testspriteminimal$(EXE) \
slouken@5254
    45
	teststreaming$(EXE) \
slouken@5232
    46
	testtimer$(EXE) \
slouken@5232
    47
	testver$(EXE) \
slouken@5232
    48
	testwm2$(EXE) \
slouken@5232
    49
	torturethread$(EXE) \
gabomdq@6320
    50
	testrendercopyex$(EXE) \
slouken@6614
    51
	testmessage$(EXE) \
slouken@1380
    52
slouken@1914
    53
all: Makefile $(TARGETS)
slouken@1914
    54
slouken@1914
    55
Makefile: $(srcdir)/Makefile.in
slouken@1914
    56
	$(SHELL) config.status $@
slouken@1380
    57
slouken@1380
    58
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@6601
    59
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    60
slouken@1380
    61
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    62
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    63
icculus@3017
    64
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    65
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    66
icculus@2049
    67
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    68
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    69
icculus@2049
    70
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
    71
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    72
slouken@5254
    73
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
    74
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
    75
slouken@2994
    76
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@6601
    77
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
    78
slouken@6311
    79
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
slouken@6601
    80
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
    81
slouken@2914
    82
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@6601
    83
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
    84
slouken@1380
    85
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
    86
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    87
slouken@1453
    88
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
    89
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
    90
slouken@6690
    91
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
    92
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
    93
 
slouken@5254
    94
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
    95
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
    96
 
slouken@1915
    97
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@6601
    98
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
    99
slouken@3087
   100
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@6601
   101
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
   102
slouken@5254
   103
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   104
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   105
slouken@5360
   106
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   107
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   108
slouken@5508
   109
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   110
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   111
slouken@1501
   112
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   113
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   114
dimitris@6318
   115
testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
slouken@6601
   116
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   117
slouken@6586
   118
testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
slouken@6601
   119
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   120
slouken@1380
   121
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   122
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   123
slouken@5254
   124
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   125
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   126
slouken@1380
   127
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   128
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   129
icculus@6390
   130
ifeq (@ISMACOSX@,true)
slouken@6175
   131
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   132
			$(srcdir)/testnativecocoa.m \
slouken@6175
   133
			$(srcdir)/testnativew32.c \
slouken@6175
   134
			$(srcdir)/testnativex11.c
slouken@6601
   135
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
icculus@6390
   136
endif
icculus@6390
   137
icculus@6390
   138
ifeq (@ISWINDOWS@,true)
icculus@6390
   139
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   140
			$(srcdir)/testnativew32.c
slouken@6601
   141
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   142
endif
icculus@6390
   143
icculus@6390
   144
ifeq (@ISUNIX@,true)
icculus@6390
   145
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   146
			$(srcdir)/testnativex11.c
slouken@6601
   147
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
icculus@6390
   148
endif
slouken@6175
   149
slouken@1380
   150
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   151
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   152
slouken@1421
   153
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   154
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   155
slouken@5254
   156
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   157
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   158
slouken@6232
   159
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
slouken@6601
   160
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   161
slouken@5240
   162
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@6601
   163
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   164
slouken@1380
   165
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   166
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   167
slouken@5232
   168
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   169
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   170
eligottlieb@4799
   171
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   172
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   173
slouken@1914
   174
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@6601
   175
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   176
slouken@5254
   177
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   178
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   179
slouken@5254
   180
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   181
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   182
slouken@1380
   183
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   184
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   185
slouken@1380
   186
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   187
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   188
slouken@1933
   189
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@6601
   190
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   191
slouken@1380
   192
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   193
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   194
gabomdq@6320
   195
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
slouken@6601
   196
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   197
slouken@6614
   198
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   199
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   200
slouken@1380
   201
clean:
slouken@1380
   202
	rm -f $(TARGETS)
slouken@1380
   203
slouken@1380
   204
distclean: clean
slouken@1380
   205
	rm -f Makefile
slouken@1380
   206
	rm -f config.status config.cache config.log
slouken@1380
   207
	rm -rf $(srcdir)/autom4te*