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