test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 14 Oct 2012 00:24:07 -0700
changeset 6586 ab57cc69dcc0
parent 6412 628702b5d490
child 6601 0d0946905eb2
permissions -rw-r--r--
Updated testjoystick for SDL 2.0 API - patch from simon
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@5232
    14
	testdraw2$(EXE) \
slouken@5232
    15
	testerror$(EXE) \
slouken@5232
    16
	testfile$(EXE) \
slouken@5232
    17
	testgesture$(EXE) \
slouken@5232
    18
	testgl2$(EXE) \
slouken@5232
    19
	testgles$(EXE) \
slouken@5232
    20
	testhaptic$(EXE) \
slouken@5508
    21
	testrumble$(EXE) \
slouken@5508
    22
	testthread$(EXE) \
slouken@5232
    23
	testiconv$(EXE) \
slouken@5232
    24
	testime$(EXE) \
slouken@5232
    25
	testintersections$(EXE) \
slouken@6311
    26
	testrelative$(EXE) \
slouken@5232
    27
	testjoystick$(EXE) \
slouken@5232
    28
	testkeys$(EXE) \
slouken@5232
    29
	testloadso$(EXE) \
slouken@5232
    30
	testlock$(EXE) \
slouken@5232
    31
	testmultiaudio$(EXE) \
slouken@6175
    32
	testnative$(EXE) \
slouken@5232
    33
	testoverlay2$(EXE) \
slouken@5232
    34
	testplatform$(EXE) \
slouken@5232
    35
	testpower$(EXE) \
slouken@6232
    36
	testrendertarget$(EXE) \
slouken@5232
    37
	testresample$(EXE) \
slouken@5240
    38
	testscale$(EXE) \
slouken@5232
    39
	testsem$(EXE) \
slouken@5232
    40
	testshader$(EXE) \
slouken@5232
    41
	testshape$(EXE) \
slouken@5232
    42
	testsprite2$(EXE) \
slouken@5232
    43
	testspriteminimal$(EXE) \
slouken@5254
    44
	teststreaming$(EXE) \
slouken@5232
    45
	testtimer$(EXE) \
slouken@5232
    46
	testver$(EXE) \
slouken@5232
    47
	testwm2$(EXE) \
slouken@5232
    48
	torturethread$(EXE) \
gabomdq@6320
    49
	testrendercopyex$(EXE) \
slouken@1380
    50
slouken@1914
    51
all: Makefile $(TARGETS)
slouken@1914
    52
slouken@1914
    53
Makefile: $(srcdir)/Makefile.in
slouken@1914
    54
	$(SHELL) config.status $@
slouken@1380
    55
slouken@1380
    56
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@1380
    57
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    58
slouken@1380
    59
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@1380
    60
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    61
icculus@3017
    62
testresample$(EXE): $(srcdir)/testresample.c
icculus@3017
    63
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3017
    64
icculus@2049
    65
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
icculus@2049
    66
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    67
icculus@2049
    68
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
icculus@2049
    69
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    70
slouken@5254
    71
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@5254
    72
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
    73
slouken@2994
    74
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@2994
    75
	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2994
    76
slouken@6311
    77
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
slouken@6311
    78
	$(CC) -o $@ $(srcdir)/testrelative.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@6311
    79
slouken@2914
    80
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@2914
    81
	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2914
    82
slouken@1380
    83
testerror$(EXE): $(srcdir)/testerror.c
slouken@1380
    84
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    85
slouken@1453
    86
testfile$(EXE): $(srcdir)/testfile.c
slouken@1453
    87
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1453
    88
slouken@5254
    89
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@1380
    90
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
    91
 
slouken@1915
    92
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@1915
    93
	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
    94
slouken@3087
    95
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@3087
    96
	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
    97
slouken@5254
    98
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@5254
    99
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   100
slouken@5360
   101
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@5360
   102
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5360
   103
slouken@5508
   104
testthread$(EXE): $(srcdir)/testthread.c
slouken@1380
   105
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   106
slouken@1501
   107
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@1501
   108
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1501
   109
dimitris@6318
   110
testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
dimitris@6318
   111
	$(CC) -o $@ $(srcdir)/testime.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   112
slouken@6586
   113
testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
slouken@1380
   114
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   115
slouken@1380
   116
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@1380
   117
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   118
slouken@5254
   119
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@5254
   120
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   121
slouken@1380
   122
testlock$(EXE): $(srcdir)/testlock.c
slouken@1380
   123
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   124
icculus@6390
   125
ifeq (@ISMACOSX@,true)
slouken@6175
   126
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   127
			$(srcdir)/testnativecocoa.m \
slouken@6175
   128
			$(srcdir)/testnativew32.c \
slouken@6175
   129
			$(srcdir)/testnativex11.c
slouken@6175
   130
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
icculus@6390
   131
endif
icculus@6390
   132
icculus@6390
   133
ifeq (@ISWINDOWS@,true)
icculus@6390
   134
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   135
			$(srcdir)/testnativew32.c
icculus@6390
   136
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@6390
   137
endif
icculus@6390
   138
icculus@6390
   139
ifeq (@ISUNIX@,true)
icculus@6390
   140
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   141
			$(srcdir)/testnativex11.c
icculus@6390
   142
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
icculus@6390
   143
endif
slouken@6175
   144
slouken@1380
   145
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@1380
   146
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   147
slouken@1421
   148
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@1421
   149
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1421
   150
slouken@5254
   151
testpower$(EXE): $(srcdir)/testpower.c
slouken@5254
   152
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@5254
   153
slouken@6232
   154
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
slouken@6232
   155
	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@6232
   156
slouken@5240
   157
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@5240
   158
	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@5240
   159
slouken@1380
   160
testsem$(EXE): $(srcdir)/testsem.c
slouken@1380
   161
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   162
slouken@5232
   163
testshader$(EXE): $(srcdir)/testshader.c
slouken@5232
   164
	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   165
eligottlieb@4799
   166
testshape$(EXE): $(srcdir)/testshape.c
eligottlieb@4799
   167
	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
eligottlieb@4799
   168
slouken@1914
   169
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@1914
   170
	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   171
slouken@5254
   172
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@5254
   173
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   174
slouken@5254
   175
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@5254
   176
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   177
slouken@1380
   178
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@1380
   179
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   180
slouken@1380
   181
testver$(EXE): $(srcdir)/testver.c
slouken@1380
   182
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   183
slouken@1933
   184
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@1933
   185
	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@1895
   186
slouken@1380
   187
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@1380
   188
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   189
gabomdq@6320
   190
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
gabomdq@6320
   191
	$(CC) -o $@ $(srcdir)/testrendercopyex.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@6320
   192
	
slouken@1380
   193
clean:
slouken@1380
   194
	rm -f $(TARGETS)
slouken@1380
   195
slouken@1380
   196
distclean: clean
slouken@1380
   197
	rm -f Makefile
slouken@1380
   198
	rm -f config.status config.cache config.log
slouken@1380
   199
	rm -rf $(srcdir)/autom4te*