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