test/Makefile.in
author Gabriel Jacobo <gabomdq@gmail.com>
Fri, 01 Jun 2012 19:51:08 -0300
changeset 6320 6077a1310907
parent 6318 49b2cb56db6e
child 6390 3047baa4a5e0
permissions -rw-r--r--
RenderCopyEx,rotation and flipping for all hardware/software backends (#1308)
     1 # Makefile to build the SDL tests
     2 
     3 srcdir  = @srcdir@
     4 
     5 CC      = @CC@
     6 EXE	= @EXE@
     7 CFLAGS  = @CFLAGS@
     8 LIBS	= @LIBS@
     9 
    10 TARGETS = \
    11 	checkkeys$(EXE) \
    12 	loopwave$(EXE) \
    13 	testdraw2$(EXE) \
    14 	testerror$(EXE) \
    15 	testfile$(EXE) \
    16 	testgesture$(EXE) \
    17 	testgl2$(EXE) \
    18 	testgles$(EXE) \
    19 	testhaptic$(EXE) \
    20 	testrumble$(EXE) \
    21 	testthread$(EXE) \
    22 	testiconv$(EXE) \
    23 	testime$(EXE) \
    24 	testintersections$(EXE) \
    25 	testrelative$(EXE) \
    26 	testjoystick$(EXE) \
    27 	testkeys$(EXE) \
    28 	testloadso$(EXE) \
    29 	testlock$(EXE) \
    30 	testmultiaudio$(EXE) \
    31 	testnative$(EXE) \
    32 	testoverlay2$(EXE) \
    33 	testplatform$(EXE) \
    34 	testpower$(EXE) \
    35 	testrendertarget$(EXE) \
    36 	testresample$(EXE) \
    37 	testscale$(EXE) \
    38 	testsem$(EXE) \
    39 	testshader$(EXE) \
    40 	testshape$(EXE) \
    41 	testsprite2$(EXE) \
    42 	testspriteminimal$(EXE) \
    43 	teststreaming$(EXE) \
    44 	testtimer$(EXE) \
    45 	testver$(EXE) \
    46 	testwm2$(EXE) \
    47 	torturethread$(EXE) \
    48 	testrendercopyex$(EXE) \
    49 
    50 all: Makefile $(TARGETS)
    51 
    52 Makefile: $(srcdir)/Makefile.in
    53 	$(SHELL) config.status $@
    54 
    55 checkkeys$(EXE): $(srcdir)/checkkeys.c
    56 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    57 
    58 loopwave$(EXE): $(srcdir)/loopwave.c
    59 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    60 
    61 testresample$(EXE): $(srcdir)/testresample.c
    62 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    63 
    64 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    65 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    66 
    67 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    68 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    69 
    70 testatomic$(EXE): $(srcdir)/testatomic.c
    71 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    72 
    73 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
    74 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    75 
    76 testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
    77 	$(CC) -o $@ $(srcdir)/testrelative.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    78 
    79 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
    80 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    81 
    82 testerror$(EXE): $(srcdir)/testerror.c
    83 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    84 
    85 testfile$(EXE): $(srcdir)/testfile.c
    86 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    87 
    88 testgesture$(EXE): $(srcdir)/testgesture.c
    89 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    90  
    91 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
    92 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    93 
    94 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
    95 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    96 
    97 testhaptic$(EXE): $(srcdir)/testhaptic.c
    98 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    99 
   100 testrumble$(EXE): $(srcdir)/testrumble.c
   101 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   102 
   103 testthread$(EXE): $(srcdir)/testthread.c
   104 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   105 
   106 testiconv$(EXE): $(srcdir)/testiconv.c
   107 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   108 
   109 testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
   110 	$(CC) -o $@ $(srcdir)/testime.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   111 
   112 testjoystick$(EXE): $(srcdir)/testjoystick.c
   113 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   114 
   115 testkeys$(EXE): $(srcdir)/testkeys.c
   116 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   117 
   118 testloadso$(EXE): $(srcdir)/testloadso.c
   119 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   120 
   121 testlock$(EXE): $(srcdir)/testlock.c
   122 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   123 
   124 testnative$(EXE): $(srcdir)/testnative.c \
   125 			$(srcdir)/testnativecocoa.m \
   126 			$(srcdir)/testnativew32.c \
   127 			$(srcdir)/testnativex11.c
   128 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   129 
   130 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   131 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   132 
   133 testplatform$(EXE): $(srcdir)/testplatform.c
   134 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   135 
   136 testpower$(EXE): $(srcdir)/testpower.c
   137 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   138 
   139 testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
   140 	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   141 
   142 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   143 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   144 
   145 testsem$(EXE): $(srcdir)/testsem.c
   146 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   147 
   148 testshader$(EXE): $(srcdir)/testshader.c
   149 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   150 
   151 testshape$(EXE): $(srcdir)/testshape.c
   152 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   153 
   154 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   155 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   156 
   157 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   158 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   159 
   160 teststreaming$(EXE): $(srcdir)/teststreaming.c
   161 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   162 
   163 testtimer$(EXE): $(srcdir)/testtimer.c
   164 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   165 
   166 testver$(EXE): $(srcdir)/testver.c
   167 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   168 
   169 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   170 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   171 
   172 torturethread$(EXE): $(srcdir)/torturethread.c
   173 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   174 
   175 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
   176 	$(CC) -o $@ $(srcdir)/testrendercopyex.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   177 	
   178 clean:
   179 	rm -f $(TARGETS)
   180 
   181 distclean: clean
   182 	rm -f Makefile
   183 	rm -f config.status config.cache config.log
   184 	rm -rf $(srcdir)/autom4te*