test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sat, 27 Jul 2013 03:48:23 -0700
changeset 7529 3f571ec09593
parent 7495 c4ba5e5c2765
child 7667 be1cc6f55840
permissions -rw-r--r--
Added example of using the software renderer and window surface API, contributed by Nitin Jain.
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@7529
    16
	testdrawchessboard$(EXE) \
slouken@5232
    17
	testerror$(EXE) \
slouken@5232
    18
	testfile$(EXE) \
slouken@6690
    19
	testgamecontroller$(EXE) \
slouken@5232
    20
	testgesture$(EXE) \
slouken@5232
    21
	testgl2$(EXE) \
slouken@5232
    22
	testgles$(EXE) \
slouken@5232
    23
	testhaptic$(EXE) \
slouken@5508
    24
	testrumble$(EXE) \
slouken@5508
    25
	testthread$(EXE) \
slouken@5232
    26
	testiconv$(EXE) \
slouken@5232
    27
	testime$(EXE) \
slouken@5232
    28
	testintersections$(EXE) \
slouken@6311
    29
	testrelative$(EXE) \
slouken@5232
    30
	testjoystick$(EXE) \
slouken@5232
    31
	testkeys$(EXE) \
slouken@5232
    32
	testloadso$(EXE) \
slouken@5232
    33
	testlock$(EXE) \
slouken@5232
    34
	testmultiaudio$(EXE) \
slouken@6175
    35
	testnative$(EXE) \
slouken@5232
    36
	testoverlay2$(EXE) \
slouken@5232
    37
	testplatform$(EXE) \
slouken@5232
    38
	testpower$(EXE) \
slouken@6232
    39
	testrendertarget$(EXE) \
slouken@5232
    40
	testresample$(EXE) \
slouken@5240
    41
	testscale$(EXE) \
slouken@5232
    42
	testsem$(EXE) \
slouken@5232
    43
	testshader$(EXE) \
slouken@5232
    44
	testshape$(EXE) \
slouken@5232
    45
	testsprite2$(EXE) \
slouken@5232
    46
	testspriteminimal$(EXE) \
slouken@5254
    47
	teststreaming$(EXE) \
slouken@5232
    48
	testtimer$(EXE) \
slouken@5232
    49
	testver$(EXE) \
slouken@5232
    50
	testwm2$(EXE) \
slouken@5232
    51
	torturethread$(EXE) \
gabomdq@6320
    52
	testrendercopyex$(EXE) \
slouken@6614
    53
	testmessage$(EXE) \
slouken@1380
    54
slouken@1914
    55
all: Makefile $(TARGETS)
slouken@1914
    56
slouken@1914
    57
Makefile: $(srcdir)/Makefile.in
slouken@1914
    58
	$(SHELL) config.status $@
slouken@1380
    59
slouken@1380
    60
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@6601
    61
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    62
slouken@1380
    63
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    64
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    65
icculus@3017
    66
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    67
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    68
icculus@2049
    69
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    70
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    71
slouken@6769
    72
testautomation$(EXE): $(srcdir)/testautomation.c \
slouken@7216
    73
		      $(srcdir)/testautomation_audio.c \
slouken@6769
    74
		      $(srcdir)/testautomation_clipboard.c \
slouken@7216
    75
		      $(srcdir)/testautomation_events.c \
slouken@7216
    76
		      $(srcdir)/testautomation_keyboard.c \
jorgen@6866
    77
		      $(srcdir)/testautomation_main.c \
slouken@7216
    78
		      $(srcdir)/testautomation_mouse.c \
slouken@7216
    79
		      $(srcdir)/testautomation_pixels.c \
slouken@6769
    80
		      $(srcdir)/testautomation_platform.c \
slouken@6769
    81
		      $(srcdir)/testautomation_rect.c \
slouken@6769
    82
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
    83
		      $(srcdir)/testautomation_rwops.c \
slouken@7216
    84
		      $(srcdir)/testautomation_sdltest.c \
slouken@7216
    85
		      $(srcdir)/testautomation_stdlib.c \
aschiffler@6800
    86
		      $(srcdir)/testautomation_surface.c \
aschiffler@6801
    87
		      $(srcdir)/testautomation_syswm.c \
aschiffler@7134
    88
		      $(srcdir)/testautomation_timer.c \
slouken@7216
    89
		      $(srcdir)/testautomation_video.c
slouken@7280
    90
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
    91
icculus@2049
    92
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
    93
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    94
slouken@5254
    95
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
    96
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
    97
slouken@6785
    98
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
    99
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   100
slouken@6785
   101
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   102
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   103
slouken@6785
   104
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   105
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   106
slouken@7529
   107
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   108
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   109
slouken@1380
   110
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   111
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   112
slouken@1453
   113
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   114
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   115
slouken@6690
   116
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   117
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   118
 
slouken@5254
   119
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   120
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   121
 
slouken@6785
   122
testgl2$(EXE): $(srcdir)/testgl2.c
slouken@6601
   123
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
   124
slouken@6785
   125
testgles$(EXE): $(srcdir)/testgles.c
slouken@6601
   126
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
   127
slouken@5254
   128
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   129
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   130
slouken@5360
   131
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   132
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   133
slouken@5508
   134
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   135
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   136
slouken@1501
   137
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   138
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   139
slouken@6785
   140
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   141
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   142
slouken@6785
   143
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   144
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   145
slouken@1380
   146
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   147
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   148
slouken@5254
   149
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   150
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   151
slouken@1380
   152
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   153
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   154
icculus@6390
   155
ifeq (@ISMACOSX@,true)
slouken@6175
   156
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   157
			$(srcdir)/testnativecocoa.m \
slouken@7495
   158
			$(srcdir)/testnativex11.c
slouken@7495
   159
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   160
endif
icculus@6390
   161
icculus@6390
   162
ifeq (@ISWINDOWS@,true)
icculus@6390
   163
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   164
			$(srcdir)/testnativew32.c
slouken@6601
   165
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   166
endif
icculus@6390
   167
icculus@6390
   168
ifeq (@ISUNIX@,true)
icculus@6390
   169
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   170
			$(srcdir)/testnativex11.c
slouken@7495
   171
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   172
endif
slouken@6175
   173
slouken@1380
   174
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   175
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   176
slouken@1421
   177
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   178
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   179
slouken@5254
   180
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   181
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   182
slouken@6785
   183
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   184
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   185
slouken@6785
   186
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   187
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   188
slouken@1380
   189
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   190
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   191
slouken@5232
   192
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   193
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   194
eligottlieb@4799
   195
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   196
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   197
slouken@6785
   198
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   199
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   200
slouken@5254
   201
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   202
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   203
slouken@5254
   204
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   205
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   206
slouken@1380
   207
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   208
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   209
slouken@1380
   210
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   211
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   212
slouken@6785
   213
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   214
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   215
slouken@1380
   216
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   217
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   218
slouken@6785
   219
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   220
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   221
slouken@6614
   222
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   223
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   224
slouken@1380
   225
clean:
slouken@1380
   226
	rm -f $(TARGETS)
slouken@1380
   227
slouken@1380
   228
distclean: clean
slouken@1380
   229
	rm -f Makefile
slouken@1380
   230
	rm -f config.status config.cache config.log
slouken@1380
   231
	rm -rf $(srcdir)/autom4te*