test/Makefile.in
author Dimitris Zenios <dimitris.zenios@gmail.com>
Thu, 31 May 2012 19:23:30 +0300
changeset 6318 49b2cb56db6e
parent 6311 4e5e46f43438
child 6320 6077a1310907
permissions -rw-r--r--
1.Fixed a memory leak inside XInput2 code
2.Replaced XKeycodeToKeysym with XkbKeycodeToKeysym since XKeycodeToKeysym is deprecated in newer X11 version
3.Rewrote testime.c since it was disabled after SDL_compat.c removal
4.Take into account common arguments also in testrelative.c
     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 
    49 all: Makefile $(TARGETS)
    50 
    51 Makefile: $(srcdir)/Makefile.in
    52 	$(SHELL) config.status $@
    53 
    54 checkkeys$(EXE): $(srcdir)/checkkeys.c
    55 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    56 
    57 loopwave$(EXE): $(srcdir)/loopwave.c
    58 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    59 
    60 testresample$(EXE): $(srcdir)/testresample.c
    61 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    62 
    63 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    64 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    65 
    66 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    67 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    68 
    69 testatomic$(EXE): $(srcdir)/testatomic.c
    70 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    71 
    72 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
    73 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    74 
    75 testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
    76 	$(CC) -o $@ $(srcdir)/testrelative.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    77 
    78 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
    79 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    80 
    81 testerror$(EXE): $(srcdir)/testerror.c
    82 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    83 
    84 testfile$(EXE): $(srcdir)/testfile.c
    85 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    86 
    87 testgesture$(EXE): $(srcdir)/testgesture.c
    88 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    89  
    90 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
    91 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    92 
    93 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
    94 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    95 
    96 testhaptic$(EXE): $(srcdir)/testhaptic.c
    97 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    98 
    99 testrumble$(EXE): $(srcdir)/testrumble.c
   100 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   101 
   102 testthread$(EXE): $(srcdir)/testthread.c
   103 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   104 
   105 testiconv$(EXE): $(srcdir)/testiconv.c
   106 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   107 
   108 testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
   109 	$(CC) -o $@ $(srcdir)/testime.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   110 
   111 testjoystick$(EXE): $(srcdir)/testjoystick.c
   112 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   113 
   114 testkeys$(EXE): $(srcdir)/testkeys.c
   115 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   116 
   117 testloadso$(EXE): $(srcdir)/testloadso.c
   118 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   119 
   120 testlock$(EXE): $(srcdir)/testlock.c
   121 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   122 
   123 testnative$(EXE): $(srcdir)/testnative.c \
   124 			$(srcdir)/testnativecocoa.m \
   125 			$(srcdir)/testnativew32.c \
   126 			$(srcdir)/testnativex11.c
   127 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   128 
   129 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   130 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   131 
   132 testplatform$(EXE): $(srcdir)/testplatform.c
   133 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   134 
   135 testpower$(EXE): $(srcdir)/testpower.c
   136 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   137 
   138 testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
   139 	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   140 
   141 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   142 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   143 
   144 testsem$(EXE): $(srcdir)/testsem.c
   145 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   146 
   147 testshader$(EXE): $(srcdir)/testshader.c
   148 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   149 
   150 testshape$(EXE): $(srcdir)/testshape.c
   151 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   152 
   153 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   154 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   155 
   156 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   157 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   158 
   159 teststreaming$(EXE): $(srcdir)/teststreaming.c
   160 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   161 
   162 testtimer$(EXE): $(srcdir)/testtimer.c
   163 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   164 
   165 testver$(EXE): $(srcdir)/testver.c
   166 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   167 
   168 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   169 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   170 
   171 torturethread$(EXE): $(srcdir)/torturethread.c
   172 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   173 
   174 clean:
   175 	rm -f $(TARGETS)
   176 
   177 distclean: clean
   178 	rm -f Makefile
   179 	rm -f config.status config.cache config.log
   180 	rm -rf $(srcdir)/autom4te*