test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Mon, 26 Nov 2012 16:37:54 -0800
changeset 6690 9548c8a58103
parent 6614 92925281e7ca
child 6769 b49778d885cd
permissions -rw-r--r--
Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
# Makefile to build the SDL tests
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     2
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     3
srcdir  = @srcdir@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     4
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     5
CC      = @CC@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     6
EXE	= @EXE@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     7
CFLAGS  = @CFLAGS@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     8
LIBS	= @LIBS@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     9
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    10
TARGETS = \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    11
	checkkeys$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    12
	loopwave$(EXE) \
6412
628702b5d490 Added testaudioinfo to the build.
Ryan C. Gordon <icculus@icculus.org>
parents: 6390
diff changeset
    13
	testaudioinfo$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    14
	testdraw2$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    15
	testerror$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    16
	testfile$(EXE) \
6690
9548c8a58103 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
Sam Lantinga <slouken@libsdl.org>
parents: 6614
diff changeset
    17
	testgamecontroller$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    18
	testgesture$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    19
	testgl2$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    20
	testgles$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    21
	testhaptic$(EXE) \
5508
60b63c32f06d Don't be clever, just call it testthread
Sam Lantinga <slouken@libsdl.org>
parents: 5466
diff changeset
    22
	testrumble$(EXE) \
60b63c32f06d Don't be clever, just call it testthread
Sam Lantinga <slouken@libsdl.org>
parents: 5466
diff changeset
    23
	testthread$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    24
	testiconv$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    25
	testime$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    26
	testintersections$(EXE) \
6311
4e5e46f43438 Initial support for XInput2 by Dimitris Zenios
Sam Lantinga <slouken@libsdl.org>
parents: 6256
diff changeset
    27
	testrelative$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    28
	testjoystick$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    29
	testkeys$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    30
	testloadso$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    31
	testlock$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    32
	testmultiaudio$(EXE) \
6175
42c40787f382 Added testnative to the Makefile and fixed building on Mac OS X
Sam Lantinga <slouken@libsdl.org>
parents: 5508
diff changeset
    33
	testnative$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    34
	testoverlay2$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    35
	testplatform$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    36
	testpower$(EXE) \
6232
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6175
diff changeset
    37
	testrendertarget$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    38
	testresample$(EXE) \
5240
a9eb73f21e3a Added a scaling test program
Sam Lantinga <slouken@libsdl.org>
parents: 5232
diff changeset
    39
	testscale$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    40
	testsem$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    41
	testshader$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    42
	testshape$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    43
	testsprite2$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    44
	testspriteminimal$(EXE) \
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
    45
	teststreaming$(EXE) \
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    46
	testtimer$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    47
	testver$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    48
	testwm2$(EXE) \
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
    49
	torturethread$(EXE) \
6320
6077a1310907 RenderCopyEx,rotation and flipping for all hardware/software backends (#1308)
Gabriel Jacobo <gabomdq@gmail.com>
parents: 6318
diff changeset
    50
	testrendercopyex$(EXE) \
6614
92925281e7ca tree 46b4d59cbfb1
Sam Lantinga <slouken@libsdl.org>
parents: 6601
diff changeset
    51
	testmessage$(EXE) \
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    52
1914
051df511279c Added a test program framework for easy initialization.
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
    53
all: Makefile $(TARGETS)
051df511279c Added a test program framework for easy initialization.
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
    54
051df511279c Added a test program framework for easy initialization.
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
    55
Makefile: $(srcdir)/Makefile.in
051df511279c Added a test program framework for easy initialization.
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
    56
	$(SHELL) config.status $@
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    57
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    58
checkkeys$(EXE): $(srcdir)/checkkeys.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    59
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    60
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    61
loopwave$(EXE): $(srcdir)/loopwave.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    62
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    63
3017
3272431eeee2 Added testresample.c
Ryan C. Gordon <icculus@icculus.org>
parents: 2994
diff changeset
    64
testresample$(EXE): $(srcdir)/testresample.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    65
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
3017
3272431eeee2 Added testresample.c
Ryan C. Gordon <icculus@icculus.org>
parents: 2994
diff changeset
    66
2049
5f6550e5184f Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents: 1933
diff changeset
    67
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    68
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
2049
5f6550e5184f Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents: 1933
diff changeset
    69
5f6550e5184f Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents: 1933
diff changeset
    70
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    71
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
2049
5f6550e5184f Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents: 1933
diff changeset
    72
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
    73
testatomic$(EXE): $(srcdir)/testatomic.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    74
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
    75
2994
7563b99e9a49 Date: Sat, 3 Jan 2009 22:11:18 -0500
Sam Lantinga <slouken@libsdl.org>
parents: 2914
diff changeset
    76
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    77
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
2994
7563b99e9a49 Date: Sat, 3 Jan 2009 22:11:18 -0500
Sam Lantinga <slouken@libsdl.org>
parents: 2914
diff changeset
    78
6311
4e5e46f43438 Initial support for XInput2 by Dimitris Zenios
Sam Lantinga <slouken@libsdl.org>
parents: 6256
diff changeset
    79
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    80
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
6311
4e5e46f43438 Initial support for XInput2 by Dimitris Zenios
Sam Lantinga <slouken@libsdl.org>
parents: 6256
diff changeset
    81
2914
fa109e90be36 Correct the test program
Sam Lantinga <slouken@libsdl.org>
parents: 2897
diff changeset
    82
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    83
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
2914
fa109e90be36 Correct the test program
Sam Lantinga <slouken@libsdl.org>
parents: 2897
diff changeset
    84
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    85
testerror$(EXE): $(srcdir)/testerror.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    86
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    87
1453
2eb75f8a32ca Date: Mon, 27 Feb 2006 17:01:43 +0100
Sam Lantinga <slouken@libsdl.org>
parents: 1421
diff changeset
    88
testfile$(EXE): $(srcdir)/testfile.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    89
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1453
2eb75f8a32ca Date: Mon, 27 Feb 2006 17:01:43 +0100
Sam Lantinga <slouken@libsdl.org>
parents: 1421
diff changeset
    90
6690
9548c8a58103 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
Sam Lantinga <slouken@libsdl.org>
parents: 6614
diff changeset
    91
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
9548c8a58103 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
Sam Lantinga <slouken@libsdl.org>
parents: 6614
diff changeset
    92
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
9548c8a58103 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
Sam Lantinga <slouken@libsdl.org>
parents: 6614
diff changeset
    93
 
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
    94
testgesture$(EXE): $(srcdir)/testgesture.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    95
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
    96
 
1915
a228436a2404 Implemented multi-window OpenGL program with test framework.
Sam Lantinga <slouken@libsdl.org>
parents: 1914
diff changeset
    97
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
    98
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
1914
051df511279c Added a test program framework for easy initialization.
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
    99
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3017
diff changeset
   100
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   101
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3017
diff changeset
   102
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   103
testhaptic$(EXE): $(srcdir)/testhaptic.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   104
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   105
5360
220d3af9121f Simple rumble API for haptic
Sam Lantinga <slouken@libsdl.org>
parents: 5254
diff changeset
   106
testrumble$(EXE): $(srcdir)/testrumble.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   107
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
5360
220d3af9121f Simple rumble API for haptic
Sam Lantinga <slouken@libsdl.org>
parents: 5254
diff changeset
   108
5508
60b63c32f06d Don't be clever, just call it testthread
Sam Lantinga <slouken@libsdl.org>
parents: 5466
diff changeset
   109
testthread$(EXE): $(srcdir)/testthread.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   110
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   111
1501
73dc5d39bbf8 Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents: 1453
diff changeset
   112
testiconv$(EXE): $(srcdir)/testiconv.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   113
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1501
73dc5d39bbf8 Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents: 1453
diff changeset
   114
6318
49b2cb56db6e 1.Fixed a memory leak inside XInput2 code
Dimitris Zenios <dimitris.zenios@gmail.com>
parents: 6311
diff changeset
   115
testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   116
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   117
6586
ab57cc69dcc0 Updated testjoystick for SDL 2.0 API - patch from simon
Sam Lantinga <slouken@libsdl.org>
parents: 6412
diff changeset
   118
testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   119
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   120
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   121
testkeys$(EXE): $(srcdir)/testkeys.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   122
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   123
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   124
testloadso$(EXE): $(srcdir)/testloadso.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   125
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   126
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   127
testlock$(EXE): $(srcdir)/testlock.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   128
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   129
6390
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   130
ifeq (@ISMACOSX@,true)
6175
42c40787f382 Added testnative to the Makefile and fixed building on Mac OS X
Sam Lantinga <slouken@libsdl.org>
parents: 5508
diff changeset
   131
testnative$(EXE): $(srcdir)/testnative.c \
42c40787f382 Added testnative to the Makefile and fixed building on Mac OS X
Sam Lantinga <slouken@libsdl.org>
parents: 5508
diff changeset
   132
			$(srcdir)/testnativecocoa.m \
42c40787f382 Added testnative to the Makefile and fixed building on Mac OS X
Sam Lantinga <slouken@libsdl.org>
parents: 5508
diff changeset
   133
			$(srcdir)/testnativew32.c \
42c40787f382 Added testnative to the Makefile and fixed building on Mac OS X
Sam Lantinga <slouken@libsdl.org>
parents: 5508
diff changeset
   134
			$(srcdir)/testnativex11.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   135
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
6390
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   136
endif
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   137
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   138
ifeq (@ISWINDOWS@,true)
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   139
testnative$(EXE): $(srcdir)/testnative.c \
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   140
			$(srcdir)/testnativew32.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   141
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
6390
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   142
endif
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   143
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   144
ifeq (@ISUNIX@,true)
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   145
testnative$(EXE): $(srcdir)/testnative.c \
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   146
			$(srcdir)/testnativex11.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   147
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
6390
3047baa4a5e0 Nasty attempt to fix building of testnative across various platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 6320
diff changeset
   148
endif
6175
42c40787f382 Added testnative to the Makefile and fixed building on Mac OS X
Sam Lantinga <slouken@libsdl.org>
parents: 5508
diff changeset
   149
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   150
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   151
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   152
1421
638da75f9ab8 testplatform replaces testtypes, testendian, and testcpuinfo
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
   153
testplatform$(EXE): $(srcdir)/testplatform.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   154
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1421
638da75f9ab8 testplatform replaces testtypes, testendian, and testcpuinfo
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
   155
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   156
testpower$(EXE): $(srcdir)/testpower.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   157
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   158
6232
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6175
diff changeset
   159
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   160
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
6232
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6175
diff changeset
   161
5240
a9eb73f21e3a Added a scaling test program
Sam Lantinga <slouken@libsdl.org>
parents: 5232
diff changeset
   162
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   163
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
5240
a9eb73f21e3a Added a scaling test program
Sam Lantinga <slouken@libsdl.org>
parents: 5232
diff changeset
   164
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   165
testsem$(EXE): $(srcdir)/testsem.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   166
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   167
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
   168
testshader$(EXE): $(srcdir)/testshader.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   169
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
5232
74bc160186a8 Added a simple GLSL example using SDL
Sam Lantinga <slouken@libsdl.org>
parents: 5151
diff changeset
   170
4799
a0e096916474 Rewrote test program for shaped windows. It definitely displays recognizable pictures now, but the resizing and shaping functionality isn't behaving correctly, possibly due to a miscalculation of alpha values.
Eli Gottlieb <eligottlieb@gmail.com>
parents: 4770
diff changeset
   171
testshape$(EXE): $(srcdir)/testshape.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   172
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
4799
a0e096916474 Rewrote test program for shaped windows. It definitely displays recognizable pictures now, but the resizing and shaping functionality isn't behaving correctly, possibly due to a miscalculation of alpha values.
Eli Gottlieb <eligottlieb@gmail.com>
parents: 4770
diff changeset
   173
1914
051df511279c Added a test program framework for easy initialization.
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
   174
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   175
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1858
diff changeset
   176
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   177
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   178
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   179
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   180
teststreaming$(EXE): $(srcdir)/teststreaming.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   181
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
5254
f650566b2f51 Added a very simple example of texture streaming
Sam Lantinga <slouken@libsdl.org>
parents: 5243
diff changeset
   182
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   183
testtimer$(EXE): $(srcdir)/testtimer.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   184
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   185
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   186
testver$(EXE): $(srcdir)/testver.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   187
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   188
1933
7ee5297340f7 Implemented Cocoa window support
Sam Lantinga <slouken@libsdl.org>
parents: 1915
diff changeset
   189
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   190
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1858
diff changeset
   191
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   192
torturethread$(EXE): $(srcdir)/torturethread.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   193
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   194
6320
6077a1310907 RenderCopyEx,rotation and flipping for all hardware/software backends (#1308)
Gabriel Jacobo <gabomdq@gmail.com>
parents: 6318
diff changeset
   195
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
6601
0d0946905eb2 Fixed building testjoystick
Sam Lantinga <slouken@libsdl.org>
parents: 6586
diff changeset
   196
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
6614
92925281e7ca tree 46b4d59cbfb1
Sam Lantinga <slouken@libsdl.org>
parents: 6601
diff changeset
   197
92925281e7ca tree 46b4d59cbfb1
Sam Lantinga <slouken@libsdl.org>
parents: 6601
diff changeset
   198
testmessage$(EXE): $(srcdir)/testmessage.c
92925281e7ca tree 46b4d59cbfb1
Sam Lantinga <slouken@libsdl.org>
parents: 6601
diff changeset
   199
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
92925281e7ca tree 46b4d59cbfb1
Sam Lantinga <slouken@libsdl.org>
parents: 6601
diff changeset
   200
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   201
clean:
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   202
	rm -f $(TARGETS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   203
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   204
distclean: clean
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   205
	rm -f Makefile
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   206
	rm -f config.status config.cache config.log
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   207
	rm -rf $(srcdir)/autom4te*