test/Makefile.in
author Andreas Schiffler <aschiffler@ferzkopp.net>
Sun, 06 Jan 2013 18:19:30 -0800
changeset 6801 f92e3d5f71a2
parent 6800 26c6795ec1a4
child 6815 5fefa916e039
permissions -rw-r--r--
Add new test suite (mouse) with a few new tests
     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_mouse.c
    84 	$(CC) -o $@ $^ $(CFLAGS) -lSDL2_test $(LIBS) 
    85 
    86 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    87 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    88 
    89 testatomic$(EXE): $(srcdir)/testatomic.c
    90 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    91 
    92 testintersections$(EXE): $(srcdir)/testintersections.c
    93 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    94 
    95 testrelative$(EXE): $(srcdir)/testrelative.c
    96 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    97 
    98 testdraw2$(EXE): $(srcdir)/testdraw2.c
    99 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   100 
   101 testerror$(EXE): $(srcdir)/testerror.c
   102 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   103 
   104 testfile$(EXE): $(srcdir)/testfile.c
   105 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   106 
   107 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
   108 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   109  
   110 testgesture$(EXE): $(srcdir)/testgesture.c
   111 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   112  
   113 testgl2$(EXE): $(srcdir)/testgl2.c
   114 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   115 
   116 testgles$(EXE): $(srcdir)/testgles.c
   117 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   118 
   119 testhaptic$(EXE): $(srcdir)/testhaptic.c
   120 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   121 
   122 testrumble$(EXE): $(srcdir)/testrumble.c
   123 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   124 
   125 testthread$(EXE): $(srcdir)/testthread.c
   126 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   127 
   128 testiconv$(EXE): $(srcdir)/testiconv.c
   129 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   130 
   131 testime$(EXE): $(srcdir)/testime.c
   132 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   133 
   134 testjoystick$(EXE): $(srcdir)/testjoystick.c
   135 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   136 
   137 testkeys$(EXE): $(srcdir)/testkeys.c
   138 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   139 
   140 testloadso$(EXE): $(srcdir)/testloadso.c
   141 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   142 
   143 testlock$(EXE): $(srcdir)/testlock.c
   144 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   145 
   146 ifeq (@ISMACOSX@,true)
   147 testnative$(EXE): $(srcdir)/testnative.c \
   148 			$(srcdir)/testnativecocoa.m \
   149 			$(srcdir)/testnativew32.c \
   150 			$(srcdir)/testnativex11.c
   151 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   152 endif
   153 
   154 ifeq (@ISWINDOWS@,true)
   155 testnative$(EXE): $(srcdir)/testnative.c \
   156 			$(srcdir)/testnativew32.c
   157 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   158 endif
   159 
   160 ifeq (@ISUNIX@,true)
   161 testnative$(EXE): $(srcdir)/testnative.c \
   162 			$(srcdir)/testnativex11.c
   163 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
   164 endif
   165 
   166 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   167 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   168 
   169 testplatform$(EXE): $(srcdir)/testplatform.c
   170 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   171 
   172 testpower$(EXE): $(srcdir)/testpower.c
   173 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   174 
   175 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
   176 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   177 
   178 testscale$(EXE): $(srcdir)/testscale.c
   179 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   180 
   181 testsem$(EXE): $(srcdir)/testsem.c
   182 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   183 
   184 testshader$(EXE): $(srcdir)/testshader.c
   185 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   186 
   187 testshape$(EXE): $(srcdir)/testshape.c
   188 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   189 
   190 testsprite2$(EXE): $(srcdir)/testsprite2.c
   191 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   192 
   193 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   194 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   195 
   196 teststreaming$(EXE): $(srcdir)/teststreaming.c
   197 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   198 
   199 testtimer$(EXE): $(srcdir)/testtimer.c
   200 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   201 
   202 testver$(EXE): $(srcdir)/testver.c
   203 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   204 
   205 testwm2$(EXE): $(srcdir)/testwm2.c
   206 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   207 
   208 torturethread$(EXE): $(srcdir)/torturethread.c
   209 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   210 
   211 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
   212 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   213 
   214 testmessage$(EXE): $(srcdir)/testmessage.c
   215 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   216 
   217 clean:
   218 	rm -f $(TARGETS)
   219 
   220 distclean: clean
   221 	rm -f Makefile
   222 	rm -f config.status config.cache config.log
   223 	rm -rf $(srcdir)/autom4te*