test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Sat, 01 Sep 2012 00:25:17 -0700
changeset 6412 628702b5d490
parent 6390 3047baa4a5e0
child 6586 ab57cc69dcc0
permissions -rw-r--r--
Added testaudioinfo to the build.
     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 	testdraw2$(EXE) \
    15 	testerror$(EXE) \
    16 	testfile$(EXE) \
    17 	testgesture$(EXE) \
    18 	testgl2$(EXE) \
    19 	testgles$(EXE) \
    20 	testhaptic$(EXE) \
    21 	testrumble$(EXE) \
    22 	testthread$(EXE) \
    23 	testiconv$(EXE) \
    24 	testime$(EXE) \
    25 	testintersections$(EXE) \
    26 	testrelative$(EXE) \
    27 	testjoystick$(EXE) \
    28 	testkeys$(EXE) \
    29 	testloadso$(EXE) \
    30 	testlock$(EXE) \
    31 	testmultiaudio$(EXE) \
    32 	testnative$(EXE) \
    33 	testoverlay2$(EXE) \
    34 	testplatform$(EXE) \
    35 	testpower$(EXE) \
    36 	testrendertarget$(EXE) \
    37 	testresample$(EXE) \
    38 	testscale$(EXE) \
    39 	testsem$(EXE) \
    40 	testshader$(EXE) \
    41 	testshape$(EXE) \
    42 	testsprite2$(EXE) \
    43 	testspriteminimal$(EXE) \
    44 	teststreaming$(EXE) \
    45 	testtimer$(EXE) \
    46 	testver$(EXE) \
    47 	testwm2$(EXE) \
    48 	torturethread$(EXE) \
    49 	testrendercopyex$(EXE) \
    50 
    51 all: Makefile $(TARGETS)
    52 
    53 Makefile: $(srcdir)/Makefile.in
    54 	$(SHELL) config.status $@
    55 
    56 checkkeys$(EXE): $(srcdir)/checkkeys.c
    57 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    58 
    59 loopwave$(EXE): $(srcdir)/loopwave.c
    60 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    61 
    62 testresample$(EXE): $(srcdir)/testresample.c
    63 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    64 
    65 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    66 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    67 
    68 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    69 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    70 
    71 testatomic$(EXE): $(srcdir)/testatomic.c
    72 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    73 
    74 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
    75 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    76 
    77 testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
    78 	$(CC) -o $@ $(srcdir)/testrelative.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    79 
    80 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
    81 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    82 
    83 testerror$(EXE): $(srcdir)/testerror.c
    84 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    85 
    86 testfile$(EXE): $(srcdir)/testfile.c
    87 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    88 
    89 testgesture$(EXE): $(srcdir)/testgesture.c
    90 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    91  
    92 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
    93 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    94 
    95 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
    96 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    97 
    98 testhaptic$(EXE): $(srcdir)/testhaptic.c
    99 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   100 
   101 testrumble$(EXE): $(srcdir)/testrumble.c
   102 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   103 
   104 testthread$(EXE): $(srcdir)/testthread.c
   105 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   106 
   107 testiconv$(EXE): $(srcdir)/testiconv.c
   108 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   109 
   110 testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
   111 	$(CC) -o $@ $(srcdir)/testime.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   112 
   113 testjoystick$(EXE): $(srcdir)/testjoystick.c
   114 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   115 
   116 testkeys$(EXE): $(srcdir)/testkeys.c
   117 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   118 
   119 testloadso$(EXE): $(srcdir)/testloadso.c
   120 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   121 
   122 testlock$(EXE): $(srcdir)/testlock.c
   123 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   124 
   125 ifeq (@ISMACOSX@,true)
   126 testnative$(EXE): $(srcdir)/testnative.c \
   127 			$(srcdir)/testnativecocoa.m \
   128 			$(srcdir)/testnativew32.c \
   129 			$(srcdir)/testnativex11.c
   130 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   131 endif
   132 
   133 ifeq (@ISWINDOWS@,true)
   134 testnative$(EXE): $(srcdir)/testnative.c \
   135 			$(srcdir)/testnativew32.c
   136 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   137 endif
   138 
   139 ifeq (@ISUNIX@,true)
   140 testnative$(EXE): $(srcdir)/testnative.c \
   141 			$(srcdir)/testnativex11.c
   142 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
   143 endif
   144 
   145 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   146 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   147 
   148 testplatform$(EXE): $(srcdir)/testplatform.c
   149 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   150 
   151 testpower$(EXE): $(srcdir)/testpower.c
   152 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   153 
   154 testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
   155 	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   156 
   157 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   158 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   159 
   160 testsem$(EXE): $(srcdir)/testsem.c
   161 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   162 
   163 testshader$(EXE): $(srcdir)/testshader.c
   164 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   165 
   166 testshape$(EXE): $(srcdir)/testshape.c
   167 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   168 
   169 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   170 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   171 
   172 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   173 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   174 
   175 teststreaming$(EXE): $(srcdir)/teststreaming.c
   176 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   177 
   178 testtimer$(EXE): $(srcdir)/testtimer.c
   179 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   180 
   181 testver$(EXE): $(srcdir)/testver.c
   182 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   183 
   184 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   185 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   186 
   187 torturethread$(EXE): $(srcdir)/torturethread.c
   188 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   189 
   190 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
   191 	$(CC) -o $@ $(srcdir)/testrendercopyex.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   192 	
   193 clean:
   194 	rm -f $(TARGETS)
   195 
   196 distclean: clean
   197 	rm -f Makefile
   198 	rm -f config.status config.cache config.log
   199 	rm -rf $(srcdir)/autom4te*