test/Makefile.in
author Andreas Schiffler <aschiffler@ferzkopp.net>
Fri, 08 Feb 2013 07:14:50 -0800
changeset 6839 2494f667555c
parent 6815 5fefa916e039
child 6866 e74a4b282450
permissions -rw-r--r--
Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings
     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 	testaudioinfo$(EXE) \
    14 	testautomation$(EXE) \
    15 	testdraw2$(EXE) \
    16 	testerror$(EXE) \
    17 	testfile$(EXE) \
    18 	testgamecontroller$(EXE) \
    19 	testgesture$(EXE) \
    20 	testgl2$(EXE) \
    21 	testgles$(EXE) \
    22 	testhaptic$(EXE) \
    23 	testrumble$(EXE) \
    24 	testthread$(EXE) \
    25 	testiconv$(EXE) \
    26 	testime$(EXE) \
    27 	testintersections$(EXE) \
    28 	testrelative$(EXE) \
    29 	testjoystick$(EXE) \
    30 	testkeys$(EXE) \
    31 	testloadso$(EXE) \
    32 	testlock$(EXE) \
    33 	testmultiaudio$(EXE) \
    34 	testnative$(EXE) \
    35 	testoverlay2$(EXE) \
    36 	testplatform$(EXE) \
    37 	testpower$(EXE) \
    38 	testrendertarget$(EXE) \
    39 	testresample$(EXE) \
    40 	testscale$(EXE) \
    41 	testsem$(EXE) \
    42 	testshader$(EXE) \
    43 	testshape$(EXE) \
    44 	testsprite2$(EXE) \
    45 	testspriteminimal$(EXE) \
    46 	teststreaming$(EXE) \
    47 	testtimer$(EXE) \
    48 	testver$(EXE) \
    49 	testwm2$(EXE) \
    50 	torturethread$(EXE) \
    51 	testrendercopyex$(EXE) \
    52 	testmessage$(EXE) \
    53 
    54 all: Makefile $(TARGETS)
    55 
    56 Makefile: $(srcdir)/Makefile.in
    57 	$(SHELL) config.status $@
    58 
    59 checkkeys$(EXE): $(srcdir)/checkkeys.c
    60 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    61 
    62 loopwave$(EXE): $(srcdir)/loopwave.c
    63 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    64 
    65 testresample$(EXE): $(srcdir)/testresample.c
    66 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    67 
    68 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    69 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    70 
    71 testautomation$(EXE): $(srcdir)/testautomation.c \
    72 		      $(srcdir)/testautomation_clipboard.c \
    73 		      $(srcdir)/testautomation_platform.c \
    74 		      $(srcdir)/testautomation_rect.c \
    75 		      $(srcdir)/testautomation_render.c \
    76 		      $(srcdir)/testautomation_rwops.c \
    77 		      $(srcdir)/testautomation_audio.c \
    78 		      $(srcdir)/testautomation_surface.c \
    79 		      $(srcdir)/testautomation_events.c \
    80 		      $(srcdir)/testautomation_keyboard.c \
    81 		      $(srcdir)/testautomation_video.c \
    82 		      $(srcdir)/testautomation_syswm.c \
    83 		      $(srcdir)/testautomation_sdltest.c \
    84 		      $(srcdir)/testautomation_mouse.c \
    85 		      $(srcdir)/testautomation_timer.c
    86 	$(CC) -o $@ $^ $(CFLAGS) -lSDL2_test $(LIBS) 
    87 
    88 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    89 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    90 
    91 testatomic$(EXE): $(srcdir)/testatomic.c
    92 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    93 
    94 testintersections$(EXE): $(srcdir)/testintersections.c
    95 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    96 
    97 testrelative$(EXE): $(srcdir)/testrelative.c
    98 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    99 
   100 testdraw2$(EXE): $(srcdir)/testdraw2.c
   101 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   102 
   103 testerror$(EXE): $(srcdir)/testerror.c
   104 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   105 
   106 testfile$(EXE): $(srcdir)/testfile.c
   107 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   108 
   109 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
   110 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   111  
   112 testgesture$(EXE): $(srcdir)/testgesture.c
   113 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   114  
   115 testgl2$(EXE): $(srcdir)/testgl2.c
   116 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   117 
   118 testgles$(EXE): $(srcdir)/testgles.c
   119 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   120 
   121 testhaptic$(EXE): $(srcdir)/testhaptic.c
   122 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   123 
   124 testrumble$(EXE): $(srcdir)/testrumble.c
   125 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   126 
   127 testthread$(EXE): $(srcdir)/testthread.c
   128 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   129 
   130 testiconv$(EXE): $(srcdir)/testiconv.c
   131 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   132 
   133 testime$(EXE): $(srcdir)/testime.c
   134 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   135 
   136 testjoystick$(EXE): $(srcdir)/testjoystick.c
   137 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   138 
   139 testkeys$(EXE): $(srcdir)/testkeys.c
   140 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   141 
   142 testloadso$(EXE): $(srcdir)/testloadso.c
   143 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   144 
   145 testlock$(EXE): $(srcdir)/testlock.c
   146 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   147 
   148 ifeq (@ISMACOSX@,true)
   149 testnative$(EXE): $(srcdir)/testnative.c \
   150 			$(srcdir)/testnativecocoa.m \
   151 			$(srcdir)/testnativew32.c \
   152 			$(srcdir)/testnativex11.c
   153 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   154 endif
   155 
   156 ifeq (@ISWINDOWS@,true)
   157 testnative$(EXE): $(srcdir)/testnative.c \
   158 			$(srcdir)/testnativew32.c
   159 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   160 endif
   161 
   162 ifeq (@ISUNIX@,true)
   163 testnative$(EXE): $(srcdir)/testnative.c \
   164 			$(srcdir)/testnativex11.c
   165 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
   166 endif
   167 
   168 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   169 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   170 
   171 testplatform$(EXE): $(srcdir)/testplatform.c
   172 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   173 
   174 testpower$(EXE): $(srcdir)/testpower.c
   175 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   176 
   177 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
   178 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   179 
   180 testscale$(EXE): $(srcdir)/testscale.c
   181 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   182 
   183 testsem$(EXE): $(srcdir)/testsem.c
   184 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   185 
   186 testshader$(EXE): $(srcdir)/testshader.c
   187 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   188 
   189 testshape$(EXE): $(srcdir)/testshape.c
   190 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   191 
   192 testsprite2$(EXE): $(srcdir)/testsprite2.c
   193 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   194 
   195 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   196 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   197 
   198 teststreaming$(EXE): $(srcdir)/teststreaming.c
   199 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   200 
   201 testtimer$(EXE): $(srcdir)/testtimer.c
   202 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   203 
   204 testver$(EXE): $(srcdir)/testver.c
   205 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   206 
   207 testwm2$(EXE): $(srcdir)/testwm2.c
   208 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   209 
   210 torturethread$(EXE): $(srcdir)/torturethread.c
   211 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   212 
   213 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
   214 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   215 
   216 testmessage$(EXE): $(srcdir)/testmessage.c
   217 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   218 
   219 clean:
   220 	rm -f $(TARGETS)
   221 
   222 distclean: clean
   223 	rm -f Makefile
   224 	rm -f config.status config.cache config.log
   225 	rm -rf $(srcdir)/autom4te*