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