test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Sun, 01 Oct 2006 02:06:37 +0000
changeset 2045 510892a215a2
parent 1933 7ee5297340f7
child 2049 5f6550e5184f
child 3789 e2f68b579a01
permissions -rw-r--r--
Replaced strncmp for SDL_AUDIODRIVER test with strcasecmp.
Fixes Bugzilla #334.
     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 = checkkeys$(EXE) graywin$(EXE) loopwave$(EXE) testalpha$(EXE) testbitmap$(EXE) testblitspeed$(EXE) testcdrom$(EXE) testcursor$(EXE) testdyngl$(EXE) testerror$(EXE) testfile$(EXE) testgamma$(EXE) testgl$(EXE) testgl2$(EXE) testhread$(EXE) testiconv$(EXE) testjoystick$(EXE) testkeys$(EXE) testlock$(EXE) testoverlay2$(EXE) testoverlay$(EXE) testpalette$(EXE) testplatform$(EXE) testsem$(EXE) testsprite$(EXE) testsprite2$(EXE) testtimer$(EXE) testver$(EXE) testvidinfo$(EXE) testwin$(EXE) testwm$(EXE) testwm2$(EXE) threadwin$(EXE) torturethread$(EXE)
    11 
    12 all: Makefile $(TARGETS)
    13 
    14 Makefile: $(srcdir)/Makefile.in
    15 	$(SHELL) config.status $@
    16 
    17 checkkeys$(EXE): $(srcdir)/checkkeys.c
    18 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    19 
    20 graywin$(EXE): $(srcdir)/graywin.c
    21 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    22 
    23 loopwave$(EXE): $(srcdir)/loopwave.c
    24 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    25 
    26 testalpha$(EXE): $(srcdir)/testalpha.c
    27 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    28 
    29 testbitmap$(EXE): $(srcdir)/testbitmap.c
    30 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    31 
    32 testblitspeed$(EXE): $(srcdir)/testblitspeed.c
    33 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    34 
    35 testcdrom$(EXE): $(srcdir)/testcdrom.c
    36 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    37 
    38 testcursor$(EXE): $(srcdir)/testcursor.c
    39 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    40 
    41 testdyngl$(EXE): $(srcdir)/testdyngl.c
    42 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    43 
    44 testerror$(EXE): $(srcdir)/testerror.c
    45 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    46 
    47 testfile$(EXE): $(srcdir)/testfile.c
    48 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    49 
    50 testgamma$(EXE): $(srcdir)/testgamma.c
    51 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    52 
    53 testgl$(EXE): $(srcdir)/testgl.c
    54 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    55 
    56 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
    57 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    58 
    59 testhread$(EXE): $(srcdir)/testhread.c
    60 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    61 
    62 testiconv$(EXE): $(srcdir)/testiconv.c
    63 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    64 
    65 testjoystick$(EXE): $(srcdir)/testjoystick.c
    66 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    67 
    68 testkeys$(EXE): $(srcdir)/testkeys.c
    69 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    70 
    71 testlock$(EXE): $(srcdir)/testlock.c
    72 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    73 
    74 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
    75 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    76 
    77 testoverlay$(EXE): $(srcdir)/testoverlay.c
    78 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    79 
    80 testpalette$(EXE): $(srcdir)/testpalette.c
    81 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    82 
    83 testplatform$(EXE): $(srcdir)/testplatform.c
    84 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    85 
    86 testsem$(EXE): $(srcdir)/testsem.c
    87 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    88 
    89 testsprite$(EXE): $(srcdir)/testsprite.c
    90 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    91 
    92 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
    93 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
    94 
    95 testtimer$(EXE): $(srcdir)/testtimer.c
    96 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    97 
    98 testver$(EXE): $(srcdir)/testver.c
    99 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   100 
   101 testvidinfo$(EXE): $(srcdir)/testvidinfo.c
   102 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   103 
   104 testwin$(EXE): $(srcdir)/testwin.c
   105 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   106 
   107 testwm$(EXE): $(srcdir)/testwm.c
   108 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   109 
   110 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   111 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   112 
   113 threadwin$(EXE): $(srcdir)/threadwin.c
   114 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   115 
   116 torturethread$(EXE): $(srcdir)/torturethread.c
   117 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   118 
   119 
   120 clean:
   121 	rm -f $(TARGETS)
   122 
   123 distclean: clean
   124 	rm -f Makefile
   125 	rm -f config.status config.cache config.log
   126 	rm -rf $(srcdir)/autom4te*