test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 18:11:41 -0500
changeset 6256 1d905b13b102
parent 6232 37e8d0736366
child 6311 4e5e46f43438
permissions -rw-r--r--
Removed the SDL 1.2 compatibility API... we'll see how painful this is.
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) \
slouken@5232
    13
	testdraw2$(EXE) \
slouken@5232
    14
	testerror$(EXE) \
slouken@5232
    15
	testfile$(EXE) \
slouken@5232
    16
	testgesture$(EXE) \
slouken@5232
    17
	testgl2$(EXE) \
slouken@5232
    18
	testgles$(EXE) \
slouken@5232
    19
	testhaptic$(EXE) \
slouken@5508
    20
	testrumble$(EXE) \
slouken@5508
    21
	testthread$(EXE) \
slouken@5232
    22
	testiconv$(EXE) \
slouken@5232
    23
	testime$(EXE) \
slouken@5232
    24
	testintersections$(EXE) \
slouken@5232
    25
	testjoystick$(EXE) \
slouken@5232
    26
	testkeys$(EXE) \
slouken@5232
    27
	testloadso$(EXE) \
slouken@5232
    28
	testlock$(EXE) \
slouken@5232
    29
	testmultiaudio$(EXE) \
slouken@6175
    30
	testnative$(EXE) \
slouken@5232
    31
	testoverlay2$(EXE) \
slouken@5232
    32
	testplatform$(EXE) \
slouken@5232
    33
	testpower$(EXE) \
slouken@6232
    34
	testrendertarget$(EXE) \
slouken@5232
    35
	testresample$(EXE) \
slouken@5240
    36
	testscale$(EXE) \
slouken@5232
    37
	testsem$(EXE) \
slouken@5232
    38
	testshader$(EXE) \
slouken@5232
    39
	testshape$(EXE) \
slouken@5232
    40
	testsprite2$(EXE) \
slouken@5232
    41
	testspriteminimal$(EXE) \
slouken@5254
    42
	teststreaming$(EXE) \
slouken@5232
    43
	testtimer$(EXE) \
slouken@5232
    44
	testver$(EXE) \
slouken@5232
    45
	testwm2$(EXE) \
slouken@5232
    46
	torturethread$(EXE) \
slouken@1380
    47
slouken@1914
    48
all: Makefile $(TARGETS)
slouken@1914
    49
slouken@1914
    50
Makefile: $(srcdir)/Makefile.in
slouken@1914
    51
	$(SHELL) config.status $@
slouken@1380
    52
slouken@1380
    53
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@1380
    54
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    55
slouken@1380
    56
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@1380
    57
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    58
icculus@3017
    59
testresample$(EXE): $(srcdir)/testresample.c
icculus@3017
    60
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3017
    61
icculus@2049
    62
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
icculus@2049
    63
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    64
icculus@2049
    65
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
icculus@2049
    66
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    67
slouken@5254
    68
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@5254
    69
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
    70
slouken@2994
    71
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@2994
    72
	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2994
    73
slouken@2914
    74
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@2914
    75
	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2914
    76
slouken@1380
    77
testerror$(EXE): $(srcdir)/testerror.c
slouken@1380
    78
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    79
slouken@1453
    80
testfile$(EXE): $(srcdir)/testfile.c
slouken@1453
    81
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1453
    82
slouken@5254
    83
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@1380
    84
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
    85
 
slouken@1915
    86
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@1915
    87
	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
    88
slouken@3087
    89
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@3087
    90
	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
    91
slouken@5254
    92
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@5254
    93
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
    94
slouken@5360
    95
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@5360
    96
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5360
    97
slouken@5508
    98
testthread$(EXE): $(srcdir)/testthread.c
slouken@1380
    99
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   100
slouken@1501
   101
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@1501
   102
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1501
   103
slouken@5254
   104
testime$(EXE): $(srcdir)/testime.c
slouken@5254
   105
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   106
slouken@1380
   107
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@1380
   108
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   109
slouken@1380
   110
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@1380
   111
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   112
slouken@5254
   113
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@5254
   114
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   115
slouken@1380
   116
testlock$(EXE): $(srcdir)/testlock.c
slouken@1380
   117
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   118
slouken@6175
   119
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   120
			$(srcdir)/testnativecocoa.m \
slouken@6175
   121
			$(srcdir)/testnativew32.c \
slouken@6175
   122
			$(srcdir)/testnativex11.c
slouken@6175
   123
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
slouken@6175
   124
slouken@1380
   125
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@1380
   126
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   127
slouken@1421
   128
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@1421
   129
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1421
   130
slouken@5254
   131
testpower$(EXE): $(srcdir)/testpower.c
slouken@5254
   132
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   133
slouken@6232
   134
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
slouken@6232
   135
	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@6232
   136
slouken@5240
   137
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@5240
   138
	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@5240
   139
slouken@1380
   140
testsem$(EXE): $(srcdir)/testsem.c
slouken@1380
   141
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   142
slouken@5232
   143
testshader$(EXE): $(srcdir)/testshader.c
slouken@5232
   144
	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   145
eligottlieb@4799
   146
testshape$(EXE): $(srcdir)/testshape.c
eligottlieb@4799
   147
	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
eligottlieb@4799
   148
slouken@1914
   149
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@1914
   150
	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   151
slouken@5254
   152
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@5254
   153
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   154
slouken@5254
   155
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@5254
   156
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   157
slouken@1380
   158
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@1380
   159
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   160
slouken@1380
   161
testver$(EXE): $(srcdir)/testver.c
slouken@1380
   162
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   163
slouken@1933
   164
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@1933
   165
	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@1895
   166
slouken@1380
   167
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@1380
   168
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   169
slouken@1380
   170
clean:
slouken@1380
   171
	rm -f $(TARGETS)
slouken@1380
   172
slouken@1380
   173
distclean: clean
slouken@1380
   174
	rm -f Makefile
slouken@1380
   175
	rm -f config.status config.cache config.log
slouken@1380
   176
	rm -rf $(srcdir)/autom4te*