This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
/
Makefile.in
203 lines (153 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
# Makefile to build the SDL tests
srcdir = @srcdir@
CC = @CC@
EXE = @EXE@
CFLAGS = @CFLAGS@
LIBS = @LIBS@
TARGETS = \
checkkeys$(EXE) \
loopwave$(EXE) \
13
testaudioinfo$(EXE) \
14
15
16
17
18
19
20
21
22
23
24
25
testdraw2$(EXE) \
testerror$(EXE) \
testfile$(EXE) \
testgesture$(EXE) \
testgl2$(EXE) \
testgles$(EXE) \
testhaptic$(EXE) \
testrumble$(EXE) \
testthread$(EXE) \
testiconv$(EXE) \
testime$(EXE) \
testintersections$(EXE) \
26
testrelative$(EXE) \
27
28
29
30
31
testjoystick$(EXE) \
testkeys$(EXE) \
testloadso$(EXE) \
testlock$(EXE) \
testmultiaudio$(EXE) \
32
testnative$(EXE) \
33
34
35
testoverlay2$(EXE) \
testplatform$(EXE) \
testpower$(EXE) \
36
testrendertarget$(EXE) \
37
38
39
40
41
42
43
44
45
46
47
48
testresample$(EXE) \
testscale$(EXE) \
testsem$(EXE) \
testshader$(EXE) \
testshape$(EXE) \
testsprite2$(EXE) \
testspriteminimal$(EXE) \
teststreaming$(EXE) \
testtimer$(EXE) \
testver$(EXE) \
testwm2$(EXE) \
torturethread$(EXE) \
49
testrendercopyex$(EXE) \
50
testmessage$(EXE) \
51
52
53
54
55
56
57
all: Makefile $(TARGETS)
Makefile: $(srcdir)/Makefile.in
$(SHELL) config.status $@
checkkeys$(EXE): $(srcdir)/checkkeys.c
58
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
59
60
loopwave$(EXE): $(srcdir)/loopwave.c
61
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
62
63
testresample$(EXE): $(srcdir)/testresample.c
64
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
65
66
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
67
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
68
69
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
70
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
71
72
testatomic$(EXE): $(srcdir)/testatomic.c
73
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
74
75
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
76
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
77
78
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
79
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
80
81
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
82
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
83
84
testerror$(EXE): $(srcdir)/testerror.c
85
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
86
87
testfile$(EXE): $(srcdir)/testfile.c
88
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
89
90
testgesture$(EXE): $(srcdir)/testgesture.c
91
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
92
93
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
94
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
95
96
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
97
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
98
99
testhaptic$(EXE): $(srcdir)/testhaptic.c
100
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
101
102
testrumble$(EXE): $(srcdir)/testrumble.c
103
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
104
105
testthread$(EXE): $(srcdir)/testthread.c
106
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
107
108
testiconv$(EXE): $(srcdir)/testiconv.c
109
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
110
111
testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
112
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
113
114
testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
115
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
116
117
testkeys$(EXE): $(srcdir)/testkeys.c
118
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
119
120
testloadso$(EXE): $(srcdir)/testloadso.c
121
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
122
123
testlock$(EXE): $(srcdir)/testlock.c
124
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
125
126
ifeq (@ISMACOSX@,true)
127
128
129
130
testnative$(EXE): $(srcdir)/testnative.c \
$(srcdir)/testnativecocoa.m \
$(srcdir)/testnativew32.c \
$(srcdir)/testnativex11.c
131
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
132
133
134
135
136
endif
ifeq (@ISWINDOWS@,true)
testnative$(EXE): $(srcdir)/testnative.c \
$(srcdir)/testnativew32.c
137
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
138
139
140
141
142
endif
ifeq (@ISUNIX@,true)
testnative$(EXE): $(srcdir)/testnative.c \
$(srcdir)/testnativex11.c
143
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
144
endif
145
146
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
147
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
148
149
testplatform$(EXE): $(srcdir)/testplatform.c
150
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
151
152
testpower$(EXE): $(srcdir)/testpower.c
153
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
154
155
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
156
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
157
158
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
159
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
160
161
testsem$(EXE): $(srcdir)/testsem.c
162
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
163
164
testshader$(EXE): $(srcdir)/testshader.c
165
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
166
167
testshape$(EXE): $(srcdir)/testshape.c
168
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
169
170
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
171
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
172
173
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
174
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
175
176
teststreaming$(EXE): $(srcdir)/teststreaming.c
177
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
178
179
testtimer$(EXE): $(srcdir)/testtimer.c
180
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
181
182
testver$(EXE): $(srcdir)/testver.c
183
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
184
185
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
186
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
187
188
torturethread$(EXE): $(srcdir)/torturethread.c
189
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
190
191
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
192
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
193
194
195
196
testmessage$(EXE): $(srcdir)/testmessage.c
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
197
198
199
200
201
202
203
clean:
rm -f $(TARGETS)
distclean: clean
rm -f Makefile
rm -f config.status config.cache config.log
rm -rf $(srcdir)/autom4te*