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