test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 22 Aug 2010 13:45:56 -0700
changeset 4862 7b1d35d98294
parent 4689 f9ab8df6d45a
parent 4799 a0e096916474
child 4946 acdd88ebd0a0
permissions -rw-r--r--
Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
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@4862
    10
TARGETS = checkkeys$(EXE) graywin$(EXE) loopwave$(EXE) testalpha$(EXE) testatomic$(EXE) testaudioinfo$(EXE) testbitmap$(EXE) testblitspeed$(EXE) testcursor$(EXE) testdraw2$(EXE) testdyngles$(EXE) testdyngl$(EXE) testerror$(EXE) testfile$(EXE) testfill$(EXE) testgamma$(EXE) testgl2$(EXE) testgles$(EXE) testgl$(EXE) testhaptic$(EXE) testhread$(EXE) testiconv$(EXE) testime$(EXE) testintersections$(EXE) testjoystick$(EXE) testkeys$(EXE) testloadso$(EXE) testlock$(EXE) testmultiaudio$(EXE) testoverlay2$(EXE) testoverlay$(EXE) testpalette$(EXE) testplatform$(EXE) testpower$(EXE) testresample$(EXE) testsem$(EXE) testshape$(EXE) testsprite2$(EXE) testsprite$(EXE) testspriteminimal$(EXE) testtimer$(EXE) testver$(EXE) testvidinfo$(EXE) testwin$(EXE) testwm2$(EXE) testwm$(EXE) threadwin$(EXE) torturethread$(EXE) testgesture$(EXE)
slouken@1380
    11
slouken@1914
    12
all: Makefile $(TARGETS)
slouken@1914
    13
slouken@1914
    14
Makefile: $(srcdir)/Makefile.in
slouken@1914
    15
	$(SHELL) config.status $@
slouken@1380
    16
slouken@1380
    17
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@1380
    18
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    19
slouken@1380
    20
graywin$(EXE): $(srcdir)/graywin.c
slouken@1380
    21
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    22
slouken@1380
    23
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@1380
    24
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    25
icculus@3017
    26
testresample$(EXE): $(srcdir)/testresample.c
icculus@3017
    27
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3017
    28
icculus@2049
    29
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
icculus@2049
    30
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    31
icculus@2049
    32
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
icculus@2049
    33
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2049
    34
icculus@3170
    35
testpower$(EXE): $(srcdir)/testpower.c
icculus@3170
    36
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@3170
    37
slouken@1380
    38
testalpha$(EXE): $(srcdir)/testalpha.c
slouken@1380
    39
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
    40
slouken@1380
    41
testbitmap$(EXE): $(srcdir)/testbitmap.c
slouken@1380
    42
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    43
slouken@1380
    44
testblitspeed$(EXE): $(srcdir)/testblitspeed.c
slouken@1380
    45
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    46
patmandin@1858
    47
testcursor$(EXE): $(srcdir)/testcursor.c
patmandin@1858
    48
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
patmandin@1858
    49
slouken@2994
    50
testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
slouken@2994
    51
	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2994
    52
slouken@2914
    53
testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
slouken@2914
    54
	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@2914
    55
slouken@1380
    56
testdyngl$(EXE): $(srcdir)/testdyngl.c
slouken@1380
    57
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    58
slouken@3087
    59
testdyngles$(EXE): $(srcdir)/testdyngles.c
slouken@3087
    60
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@3087
    61
slouken@1380
    62
testerror$(EXE): $(srcdir)/testerror.c
slouken@1380
    63
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    64
slouken@1453
    65
testfile$(EXE): $(srcdir)/testfile.c
slouken@1453
    66
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1453
    67
slouken@3576
    68
testfill$(EXE): $(srcdir)/testfill.c
slouken@3576
    69
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@3576
    70
slouken@1380
    71
testgamma$(EXE): $(srcdir)/testgamma.c
slouken@1380
    72
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
    73
slouken@1380
    74
testgl$(EXE): $(srcdir)/testgl.c
slouken@1380
    75
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1380
    76
slouken@1915
    77
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
slouken@1915
    78
	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@1914
    79
slouken@3087
    80
testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
slouken@3087
    81
	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@3087
    82
slouken@1380
    83
testhread$(EXE): $(srcdir)/testhread.c
slouken@1380
    84
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    85
slouken@1501
    86
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@1501
    87
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1501
    88
slouken@1380
    89
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@1380
    90
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    91
slouken@1380
    92
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@1380
    93
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    94
slouken@1380
    95
testlock$(EXE): $(srcdir)/testlock.c
slouken@1380
    96
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
    97
slouken@1380
    98
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@1380
    99
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   100
slouken@1380
   101
testoverlay$(EXE): $(srcdir)/testoverlay.c
slouken@1380
   102
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   103
slouken@1380
   104
testpalette$(EXE): $(srcdir)/testpalette.c
slouken@1380
   105
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
   106
slouken@1421
   107
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@1421
   108
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1421
   109
slouken@1380
   110
testsem$(EXE): $(srcdir)/testsem.c
slouken@1380
   111
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   112
eligottlieb@4799
   113
testshape$(EXE): $(srcdir)/testshape.c
eligottlieb@4799
   114
	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
eligottlieb@4799
   115
slouken@3417
   116
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@3417
   117
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@3417
   118
slouken@1380
   119
testsprite$(EXE): $(srcdir)/testsprite.c
slouken@1380
   120
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1380
   121
slouken@1914
   122
testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
slouken@1914
   123
	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1895
   124
slouken@1380
   125
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@1380
   126
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   127
slouken@1380
   128
testver$(EXE): $(srcdir)/testver.c
slouken@1380
   129
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   130
slouken@1380
   131
testvidinfo$(EXE): $(srcdir)/testvidinfo.c
slouken@1380
   132
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   133
slouken@1380
   134
testwin$(EXE): $(srcdir)/testwin.c
slouken@1380
   135
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   136
slouken@1380
   137
testwm$(EXE): $(srcdir)/testwm.c
slouken@1380
   138
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   139
slouken@1933
   140
testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
slouken@1933
   141
	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
slouken@1895
   142
slouken@1380
   143
threadwin$(EXE): $(srcdir)/threadwin.c
slouken@1380
   144
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   145
slouken@1380
   146
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@1380
   147
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   148
icculus@2067
   149
testloadso$(EXE): $(srcdir)/testloadso.c
icculus@2067
   150
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
icculus@2067
   151
slouken@2713
   152
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@2713
   153
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@2713
   154
slouken@3576
   155
testatomic$(EXE): $(srcdir)/testatomic.c
kazeuser@2734
   156
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
slouken@1380
   157
jim@4689
   158
testgesture$(EXE): $(srcdir)/testgesture.c
bob@3180
   159
	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
bob@3180
   160
 
slouken@3280
   161
testime$(EXE): $(srcdir)/testime.c
slouken@3280
   162
	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@3280
   163
slouken@1380
   164
clean:
slouken@1380
   165
	rm -f $(TARGETS)
slouken@1380
   166
slouken@1380
   167
distclean: clean
slouken@1380
   168
	rm -f Makefile
slouken@1380
   169
	rm -f config.status config.cache config.log
slouken@1380
   170
	rm -rf $(srcdir)/autom4te*