test/Makefile.in
author Andreas Schiffler <aschiffler@ferzkopp.net>
Wed, 01 May 2013 22:14:29 -0700
changeset 7134 09ee216e6a25
parent 6866 e74a4b282450
child 7216 3586fc0ba156
permissions -rw-r--r--
Add pixels test suite; add a test to pixel suite; minor updates to test code to make VisualStudio happy
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 \
jorgen@6866
    73
		      $(srcdir)/testautomation_main.c \
slouken@6769
    74
		      $(srcdir)/testautomation_platform.c \
slouken@6769
    75
		      $(srcdir)/testautomation_rect.c \
slouken@6769
    76
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
    77
		      $(srcdir)/testautomation_rwops.c \
aschiffler@6773
    78
		      $(srcdir)/testautomation_audio.c \
aschiffler@6800
    79
		      $(srcdir)/testautomation_surface.c \
aschiffler@6800
    80
		      $(srcdir)/testautomation_events.c \
aschiffler@6800
    81
		      $(srcdir)/testautomation_keyboard.c \
aschiffler@6800
    82
		      $(srcdir)/testautomation_video.c \
aschiffler@6801
    83
		      $(srcdir)/testautomation_syswm.c \
aschiffler@6839
    84
		      $(srcdir)/testautomation_sdltest.c \
aschiffler@6815
    85
		      $(srcdir)/testautomation_mouse.c \
aschiffler@7134
    86
		      $(srcdir)/testautomation_timer.c \
aschiffler@7134
    87
		      $(srcdir)/testautomation_pixels.c		      
aschiffler@6770
    88
	$(CC) -o $@ $^ $(CFLAGS) -lSDL2_test $(LIBS) 
slouken@6769
    89
icculus@2049
    90
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
    91
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    92
slouken@5254
    93
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
    94
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
    95
slouken@6785
    96
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
    97
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
    98
slouken@6785
    99
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   100
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   101
slouken@6785
   102
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   103
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   104
slouken@1380
   105
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   106
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   107
slouken@1453
   108
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   109
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   110
slouken@6690
   111
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   112
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   113
 
slouken@5254
   114
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   115
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   116
 
slouken@6785
   117
testgl2$(EXE): $(srcdir)/testgl2.c
slouken@6601
   118
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
   119
slouken@6785
   120
testgles$(EXE): $(srcdir)/testgles.c
slouken@6601
   121
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
   122
slouken@5254
   123
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   124
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   125
slouken@5360
   126
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   127
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   128
slouken@5508
   129
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   130
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   131
slouken@1501
   132
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   133
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   134
slouken@6785
   135
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   136
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   137
slouken@6785
   138
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   139
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   140
slouken@1380
   141
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   142
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   143
slouken@5254
   144
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   145
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   146
slouken@1380
   147
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   148
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   149
icculus@6390
   150
ifeq (@ISMACOSX@,true)
slouken@6175
   151
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   152
			$(srcdir)/testnativecocoa.m \
slouken@6175
   153
			$(srcdir)/testnativew32.c \
slouken@6175
   154
			$(srcdir)/testnativex11.c
slouken@6601
   155
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
icculus@6390
   156
endif
icculus@6390
   157
icculus@6390
   158
ifeq (@ISWINDOWS@,true)
icculus@6390
   159
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   160
			$(srcdir)/testnativew32.c
slouken@6601
   161
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   162
endif
icculus@6390
   163
icculus@6390
   164
ifeq (@ISUNIX@,true)
icculus@6390
   165
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   166
			$(srcdir)/testnativex11.c
slouken@6601
   167
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
icculus@6390
   168
endif
slouken@6175
   169
slouken@1380
   170
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   171
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   172
slouken@1421
   173
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   174
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   175
slouken@5254
   176
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   177
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   178
slouken@6785
   179
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   180
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   181
slouken@6785
   182
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   183
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   184
slouken@1380
   185
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   186
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   187
slouken@5232
   188
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   189
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   190
eligottlieb@4799
   191
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   192
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   193
slouken@6785
   194
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   195
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   196
slouken@5254
   197
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   198
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   199
slouken@5254
   200
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   201
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   202
slouken@1380
   203
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   204
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   205
slouken@1380
   206
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   207
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   208
slouken@6785
   209
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   210
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   211
slouken@1380
   212
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   213
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   214
slouken@6785
   215
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   216
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   217
slouken@6614
   218
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   219
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   220
slouken@1380
   221
clean:
slouken@1380
   222
	rm -f $(TARGETS)
slouken@1380
   223
slouken@1380
   224
distclean: clean
slouken@1380
   225
	rm -f Makefile
slouken@1380
   226
	rm -f config.status config.cache config.log
slouken@1380
   227
	rm -rf $(srcdir)/autom4te*