test/Makefile.in
author Gabriel Jacobo <gabomdq@gmail.com>
Tue, 19 Nov 2013 10:56:38 -0300
changeset 8014 0a4b6dec7de5
parent 7994 37c48b4ecb0c
child 8043 74fcbf6987ba
permissions -rw-r--r--
Adds testgles2

Source code copied from: https://github.com/fantasydr/sdl-2.0-gles (thanks!)

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