test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 18:11:41 -0500
changeset 6256 1d905b13b102
parent 6232 37e8d0736366
child 6311 4e5e46f43438
permissions -rw-r--r--
Removed the SDL 1.2 compatibility API... we'll see how painful this is.
     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 	testdraw2$(EXE) \
    14 	testerror$(EXE) \
    15 	testfile$(EXE) \
    16 	testgesture$(EXE) \
    17 	testgl2$(EXE) \
    18 	testgles$(EXE) \
    19 	testhaptic$(EXE) \
    20 	testrumble$(EXE) \
    21 	testthread$(EXE) \
    22 	testiconv$(EXE) \
    23 	testime$(EXE) \
    24 	testintersections$(EXE) \
    25 	testjoystick$(EXE) \
    26 	testkeys$(EXE) \
    27 	testloadso$(EXE) \
    28 	testlock$(EXE) \
    29 	testmultiaudio$(EXE) \
    30 	testnative$(EXE) \
    31 	testoverlay2$(EXE) \
    32 	testplatform$(EXE) \
    33 	testpower$(EXE) \
    34 	testrendertarget$(EXE) \
    35 	testresample$(EXE) \
    36 	testscale$(EXE) \
    37 	testsem$(EXE) \
    38 	testshader$(EXE) \
    39 	testshape$(EXE) \
    40 	testsprite2$(EXE) \
    41 	testspriteminimal$(EXE) \
    42 	teststreaming$(EXE) \
    43 	testtimer$(EXE) \
    44 	testver$(EXE) \
    45 	testwm2$(EXE) \
    46 	torturethread$(EXE) \
    47 
    48 all: Makefile $(TARGETS)
    49 
    50 Makefile: $(srcdir)/Makefile.in
    51 	$(SHELL) config.status $@
    52 
    53 checkkeys$(EXE): $(srcdir)/checkkeys.c
    54 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    55 
    56 loopwave$(EXE): $(srcdir)/loopwave.c
    57 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    58 
    59 testresample$(EXE): $(srcdir)/testresample.c
    60 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    61 
    62 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    63 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    64 
    65 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    66 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    67 
    68 testatomic$(EXE): $(srcdir)/testatomic.c
    69 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    70 
    71 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
    72 	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    73 
    74 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
    75 	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
    76 
    77 testerror$(EXE): $(srcdir)/testerror.c
    78 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    79 
    80 testfile$(EXE): $(srcdir)/testfile.c
    81 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    82 
    83 testgesture$(EXE): $(srcdir)/testgesture.c
    84 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
    85  
    86 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
    87 	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    88 
    89 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
    90 	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    91 
    92 testhaptic$(EXE): $(srcdir)/testhaptic.c
    93 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    94 
    95 testrumble$(EXE): $(srcdir)/testrumble.c
    96 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    97 
    98 testthread$(EXE): $(srcdir)/testthread.c
    99 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   100 
   101 testiconv$(EXE): $(srcdir)/testiconv.c
   102 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   103 
   104 testime$(EXE): $(srcdir)/testime.c
   105 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   106 
   107 testjoystick$(EXE): $(srcdir)/testjoystick.c
   108 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   109 
   110 testkeys$(EXE): $(srcdir)/testkeys.c
   111 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   112 
   113 testloadso$(EXE): $(srcdir)/testloadso.c
   114 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   115 
   116 testlock$(EXE): $(srcdir)/testlock.c
   117 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   118 
   119 testnative$(EXE): $(srcdir)/testnative.c \
   120 			$(srcdir)/testnativecocoa.m \
   121 			$(srcdir)/testnativew32.c \
   122 			$(srcdir)/testnativex11.c
   123 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   124 
   125 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   126 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   127 
   128 testplatform$(EXE): $(srcdir)/testplatform.c
   129 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   130 
   131 testpower$(EXE): $(srcdir)/testpower.c
   132 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   133 
   134 testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
   135 	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   136 
   137 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   138 	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   139 
   140 testsem$(EXE): $(srcdir)/testsem.c
   141 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   142 
   143 testshader$(EXE): $(srcdir)/testshader.c
   144 	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   145 
   146 testshape$(EXE): $(srcdir)/testshape.c
   147 	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
   148 
   149 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   150 	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
   151 
   152 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   153 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   154 
   155 teststreaming$(EXE): $(srcdir)/teststreaming.c
   156 	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
   157 
   158 testtimer$(EXE): $(srcdir)/testtimer.c
   159 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   160 
   161 testver$(EXE): $(srcdir)/testver.c
   162 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   163 
   164 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   165 	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
   166 
   167 torturethread$(EXE): $(srcdir)/torturethread.c
   168 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
   169 
   170 clean:
   171 	rm -f $(TARGETS)
   172 
   173 distclean: clean
   174 	rm -f Makefile
   175 	rm -f config.status config.cache config.log
   176 	rm -rf $(srcdir)/autom4te*