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