test/Makefile.in
author Shawn Walker <binarycrusader@gmail.com>
Sat, 05 Jul 2014 16:11:23 -0700
changeset 8979 1e283b7a1580
parent 8935 9d2f0236322b
child 9012 aa058c87737b
permissions -rw-r--r--
2620 solaris port missing atomics if not using gcc
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@
urkle@7807
     7
CFLAGS  = @CFLAGS@ -g
slouken@1380
     8
LIBS	= @LIBS@
slouken@1380
     9
slouken@5232
    10
TARGETS = \
slouken@5232
    11
	checkkeys$(EXE) \
slouken@5232
    12
	loopwave$(EXE) \
binarycrusader@8979
    13
	testatomic$(EXE) \
icculus@6412
    14
	testaudioinfo$(EXE) \
slouken@6769
    15
	testautomation$(EXE) \
slouken@5232
    16
	testdraw2$(EXE) \
slouken@7529
    17
	testdrawchessboard$(EXE) \
urkle@7807
    18
	testdropfile$(EXE) \
slouken@5232
    19
	testerror$(EXE) \
slouken@5232
    20
	testfile$(EXE) \
slouken@6690
    21
	testgamecontroller$(EXE) \
slouken@5232
    22
	testgesture$(EXE) \
slouken@5232
    23
	testgl2$(EXE) \
slouken@5232
    24
	testgles$(EXE) \
gabomdq@8014
    25
	testgles2$(EXE) \
slouken@5232
    26
	testhaptic$(EXE) \
icculus@8935
    27
	testhittesting$(EXE) \
slouken@5508
    28
	testrumble$(EXE) \
urkle@8164
    29
	testhotplug$(EXE) \
slouken@5508
    30
	testthread$(EXE) \
slouken@5232
    31
	testiconv$(EXE) \
slouken@5232
    32
	testime$(EXE) \
slouken@5232
    33
	testintersections$(EXE) \
slouken@6311
    34
	testrelative$(EXE) \
slouken@5232
    35
	testjoystick$(EXE) \
slouken@5232
    36
	testkeys$(EXE) \
slouken@5232
    37
	testloadso$(EXE) \
slouken@5232
    38
	testlock$(EXE) \
slouken@5232
    39
	testmultiaudio$(EXE) \
slouken@6175
    40
	testnative$(EXE) \
slouken@5232
    41
	testoverlay2$(EXE) \
slouken@5232
    42
	testplatform$(EXE) \
slouken@5232
    43
	testpower$(EXE) \
icculus@7667
    44
	testfilesystem$(EXE) \
slouken@6232
    45
	testrendertarget$(EXE) \
slouken@5232
    46
	testresample$(EXE) \
slouken@5240
    47
	testscale$(EXE) \
slouken@5232
    48
	testsem$(EXE) \
slouken@5232
    49
	testshader$(EXE) \
slouken@5232
    50
	testshape$(EXE) \
slouken@5232
    51
	testsprite2$(EXE) \
slouken@5232
    52
	testspriteminimal$(EXE) \
slouken@5254
    53
	teststreaming$(EXE) \
slouken@5232
    54
	testtimer$(EXE) \
slouken@5232
    55
	testver$(EXE) \
slouken@7994
    56
	testviewport$(EXE) \
slouken@5232
    57
	testwm2$(EXE) \
slouken@5232
    58
	torturethread$(EXE) \
gabomdq@6320
    59
	testrendercopyex$(EXE) \
slouken@6614
    60
	testmessage$(EXE) \
gabomdq@8043
    61
	controllermap$(EXE) \
gabomdq@8043
    62
	
slouken@1914
    63
all: Makefile $(TARGETS)
slouken@1914
    64
slouken@1914
    65
Makefile: $(srcdir)/Makefile.in
slouken@1914
    66
	$(SHELL) config.status $@
slouken@1380
    67
slouken@1380
    68
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@6601
    69
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    70
slouken@1380
    71
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    72
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    73
icculus@3017
    74
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    75
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    76
icculus@2049
    77
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    78
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    79
slouken@6769
    80
testautomation$(EXE): $(srcdir)/testautomation.c \
slouken@7216
    81
		      $(srcdir)/testautomation_audio.c \
slouken@6769
    82
		      $(srcdir)/testautomation_clipboard.c \
slouken@7216
    83
		      $(srcdir)/testautomation_events.c \
slouken@7216
    84
		      $(srcdir)/testautomation_keyboard.c \
jorgen@6866
    85
		      $(srcdir)/testautomation_main.c \
slouken@7216
    86
		      $(srcdir)/testautomation_mouse.c \
slouken@7216
    87
		      $(srcdir)/testautomation_pixels.c \
slouken@6769
    88
		      $(srcdir)/testautomation_platform.c \
slouken@6769
    89
		      $(srcdir)/testautomation_rect.c \
slouken@6769
    90
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
    91
		      $(srcdir)/testautomation_rwops.c \
slouken@7216
    92
		      $(srcdir)/testautomation_sdltest.c \
slouken@7216
    93
		      $(srcdir)/testautomation_stdlib.c \
aschiffler@6800
    94
		      $(srcdir)/testautomation_surface.c \
aschiffler@6801
    95
		      $(srcdir)/testautomation_syswm.c \
aschiffler@7134
    96
		      $(srcdir)/testautomation_timer.c \
aschiffler@8645
    97
		      $(srcdir)/testautomation_video.c \
aschiffler@8645
    98
		      $(srcdir)/testautomation_hints.c
slouken@7280
    99
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
   100
icculus@2049
   101
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
   102
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
   103
slouken@5254
   104
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
   105
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   106
slouken@6785
   107
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
   108
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   109
slouken@6785
   110
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   111
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   112
icculus@8935
   113
testhittesting$(EXE): $(srcdir)/testhittesting.c
icculus@8931
   114
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@8931
   115
slouken@6785
   116
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   117
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   118
slouken@7529
   119
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   120
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   121
urkle@7807
   122
testdropfile$(EXE): $(srcdir)/testdropfile.c
urkle@7807
   123
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@7807
   124
slouken@1380
   125
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   126
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   127
slouken@1453
   128
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   129
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   130
slouken@6690
   131
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   132
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   133
 
slouken@5254
   134
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   135
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   136
 
slouken@6785
   137
testgl2$(EXE): $(srcdir)/testgl2.c
gabomdq@8062
   138
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1914
   139
slouken@6785
   140
testgles$(EXE): $(srcdir)/testgles.c
gabomdq@7794
   141
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
slouken@3087
   142
gabomdq@8014
   143
testgles2$(EXE): $(srcdir)/testgles2.c
gabomdq@8062
   144
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@8014
   145
slouken@5254
   146
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   147
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   148
urkle@8164
   149
testhotplug$(EXE): $(srcdir)/testhotplug.c
urkle@8164
   150
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@8164
   151
slouken@5360
   152
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   153
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   154
slouken@5508
   155
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   156
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   157
slouken@1501
   158
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   159
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   160
slouken@6785
   161
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   162
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   163
slouken@6785
   164
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   165
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   166
slouken@1380
   167
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   168
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   169
slouken@5254
   170
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   171
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   172
slouken@1380
   173
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   174
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   175
icculus@6390
   176
ifeq (@ISMACOSX@,true)
slouken@6175
   177
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   178
			$(srcdir)/testnativecocoa.m \
slouken@7495
   179
			$(srcdir)/testnativex11.c
slouken@7495
   180
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   181
endif
icculus@6390
   182
icculus@6390
   183
ifeq (@ISWINDOWS@,true)
icculus@6390
   184
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   185
			$(srcdir)/testnativew32.c
slouken@6601
   186
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   187
endif
icculus@6390
   188
icculus@6390
   189
ifeq (@ISUNIX@,true)
icculus@6390
   190
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   191
			$(srcdir)/testnativex11.c
slouken@7495
   192
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   193
endif
slouken@6175
   194
slouken@1380
   195
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   196
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   197
slouken@1421
   198
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   199
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   200
slouken@5254
   201
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   202
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   203
icculus@7667
   204
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
icculus@7667
   205
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7667
   206
slouken@6785
   207
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   208
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   209
slouken@6785
   210
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   211
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   212
slouken@1380
   213
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   214
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   215
slouken@5232
   216
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   217
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   218
eligottlieb@4799
   219
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   220
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   221
slouken@6785
   222
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   223
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   224
slouken@5254
   225
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   226
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   227
slouken@5254
   228
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   229
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   230
slouken@1380
   231
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   232
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   233
slouken@1380
   234
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   235
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   236
slouken@7994
   237
testviewport$(EXE): $(srcdir)/testviewport.c
slouken@7994
   238
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7994
   239
slouken@6785
   240
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   241
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   242
slouken@1380
   243
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   244
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   245
slouken@6785
   246
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   247
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   248
slouken@6614
   249
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   250
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   251
gabomdq@8043
   252
controllermap$(EXE): $(srcdir)/controllermap.c
gabomdq@8043
   253
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
gabomdq@8043
   254
gabomdq@8043
   255
slouken@1380
   256
clean:
slouken@1380
   257
	rm -f $(TARGETS)
slouken@1380
   258
slouken@1380
   259
distclean: clean
slouken@1380
   260
	rm -f Makefile
slouken@1380
   261
	rm -f config.status config.cache config.log
slouken@1380
   262
	rm -rf $(srcdir)/autom4te*