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