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