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