test/Makefile.in
author Andreas Schiffler <aschiffler@ferzkopp.net>
Sat, 22 Dec 2012 20:13:25 -0800
changeset 6770 9a111d2aa992
parent 6769 b49778d885cd
child 6772 5229a117ef97
permissions -rw-r--r--
Reorder test lib use to fix build for some compilers
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 \
slouken@6769
    76
		      $(srcdir)/testautomation_rwops.c
aschiffler@6770
    77
	$(CC) -o $@ $^ $(CFLAGS) -lSDL2_test $(LIBS) 
slouken@6769
    78
icculus@2049
    79
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
    80
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    81
slouken@5254
    82
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
    83
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
    84
slouken@2994
    85
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@6601
    86
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
    87
slouken@6311
    88
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
slouken@6601
    89
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
    90
slouken@2914
    91
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@6601
    92
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
    93
slouken@1380
    94
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
    95
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    96
slouken@1453
    97
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
    98
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
    99
slouken@6690
   100
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   101
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   102
 
slouken@5254
   103
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   104
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   105
 
slouken@1915
   106
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@6601
   107
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
   108
slouken@3087
   109
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@6601
   110
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
   111
slouken@5254
   112
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   113
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   114
slouken@5360
   115
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   116
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   117
slouken@5508
   118
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   119
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   120
slouken@1501
   121
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   122
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   123
dimitris@6318
   124
testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
slouken@6601
   125
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   126
slouken@6586
   127
testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
slouken@6601
   128
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   129
slouken@1380
   130
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   131
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   132
slouken@5254
   133
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   134
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   135
slouken@1380
   136
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   137
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   138
icculus@6390
   139
ifeq (@ISMACOSX@,true)
slouken@6175
   140
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   141
			$(srcdir)/testnativecocoa.m \
slouken@6175
   142
			$(srcdir)/testnativew32.c \
slouken@6175
   143
			$(srcdir)/testnativex11.c
slouken@6601
   144
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
icculus@6390
   145
endif
icculus@6390
   146
icculus@6390
   147
ifeq (@ISWINDOWS@,true)
icculus@6390
   148
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   149
			$(srcdir)/testnativew32.c
slouken@6601
   150
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   151
endif
icculus@6390
   152
icculus@6390
   153
ifeq (@ISUNIX@,true)
icculus@6390
   154
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   155
			$(srcdir)/testnativex11.c
slouken@6601
   156
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
icculus@6390
   157
endif
slouken@6175
   158
slouken@1380
   159
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   160
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   161
slouken@1421
   162
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   163
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   164
slouken@5254
   165
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   166
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   167
slouken@6232
   168
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
slouken@6601
   169
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   170
slouken@5240
   171
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@6601
   172
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   173
slouken@1380
   174
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   175
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   176
slouken@5232
   177
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   178
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   179
eligottlieb@4799
   180
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   181
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   182
slouken@1914
   183
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@6601
   184
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   185
slouken@5254
   186
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   187
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   188
slouken@5254
   189
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   190
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   191
slouken@1380
   192
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   193
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   194
slouken@1380
   195
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   196
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   197
slouken@1933
   198
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@6601
   199
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   200
slouken@1380
   201
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   202
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   203
gabomdq@6320
   204
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
slouken@6601
   205
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   206
slouken@6614
   207
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   208
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   209
slouken@1380
   210
clean:
slouken@1380
   211
	rm -f $(TARGETS)
slouken@1380
   212
slouken@1380
   213
distclean: clean
slouken@1380
   214
	rm -f Makefile
slouken@1380
   215
	rm -f config.status config.cache config.log
slouken@1380
   216
	rm -rf $(srcdir)/autom4te*