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