test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Tue, 30 Oct 2012 10:11:25 -0700
changeset 6614 92925281e7ca
parent 6601 0d0946905eb2
child 6690 9548c8a58103
permissions -rw-r--r--
tree 46b4d59cbfb1
parent adac5aad395d
author Edward Rudd <urkle@outoforder.cc> 1351362890 14400
committer Edward Rudd <urkle@outoforder.cc> 1351362890 14400
revision 6611
branch default

add test to show off the new MessageBox API
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@6614
    50
	testmessage$(EXE) \
slouken@1380
    51
slouken@1914
    52
all: Makefile $(TARGETS)
slouken@1914
    53
slouken@1914
    54
Makefile: $(srcdir)/Makefile.in
slouken@1914
    55
	$(SHELL) config.status $@
slouken@1380
    56
slouken@1380
    57
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@6601
    58
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    59
slouken@1380
    60
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    61
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    62
icculus@3017
    63
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    64
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    65
icculus@2049
    66
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    67
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    68
icculus@2049
    69
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
    70
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    71
slouken@5254
    72
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
    73
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
    74
slouken@2994
    75
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@6601
    76
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
    77
slouken@6311
    78
testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
slouken@6601
    79
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
    80
slouken@2914
    81
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@6601
    82
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
    83
slouken@1380
    84
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
    85
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    86
slouken@1453
    87
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
    88
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
    89
slouken@5254
    90
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
    91
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
    92
 
slouken@1915
    93
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@6601
    94
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
    95
slouken@3087
    96
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@6601
    97
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
    98
slouken@5254
    99
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   100
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   101
slouken@5360
   102
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   103
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   104
slouken@5508
   105
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   106
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   107
slouken@1501
   108
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   109
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   110
dimitris@6318
   111
testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
slouken@6601
   112
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   113
slouken@6586
   114
testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
slouken@6601
   115
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   116
slouken@1380
   117
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   118
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   119
slouken@5254
   120
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   121
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   122
slouken@1380
   123
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   124
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   125
icculus@6390
   126
ifeq (@ISMACOSX@,true)
slouken@6175
   127
testnative$(EXE): $(srcdir)/testnative.c \
slouken@6175
   128
			$(srcdir)/testnativecocoa.m \
slouken@6175
   129
			$(srcdir)/testnativew32.c \
slouken@6175
   130
			$(srcdir)/testnativex11.c
slouken@6601
   131
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
icculus@6390
   132
endif
icculus@6390
   133
icculus@6390
   134
ifeq (@ISWINDOWS@,true)
icculus@6390
   135
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   136
			$(srcdir)/testnativew32.c
slouken@6601
   137
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   138
endif
icculus@6390
   139
icculus@6390
   140
ifeq (@ISUNIX@,true)
icculus@6390
   141
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   142
			$(srcdir)/testnativex11.c
slouken@6601
   143
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
icculus@6390
   144
endif
slouken@6175
   145
slouken@1380
   146
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   147
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   148
slouken@1421
   149
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   150
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   151
slouken@5254
   152
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   153
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   154
slouken@6232
   155
testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
slouken@6601
   156
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   157
slouken@5240
   158
testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
slouken@6601
   159
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   160
slouken@1380
   161
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   162
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   163
slouken@5232
   164
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   165
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   166
eligottlieb@4799
   167
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   168
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   169
slouken@1914
   170
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@6601
   171
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   172
slouken@5254
   173
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   174
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   175
slouken@5254
   176
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   177
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   178
slouken@1380
   179
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   180
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   181
slouken@1380
   182
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   183
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   184
slouken@1933
   185
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@6601
   186
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   187
slouken@1380
   188
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   189
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   190
gabomdq@6320
   191
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
slouken@6601
   192
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   193
slouken@6614
   194
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   195
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   196
slouken@1380
   197
clean:
slouken@1380
   198
	rm -f $(TARGETS)
slouken@1380
   199
slouken@1380
   200
distclean: clean
slouken@1380
   201
	rm -f Makefile
slouken@1380
   202
	rm -f config.status config.cache config.log
slouken@1380
   203
	rm -rf $(srcdir)/autom4te*