test/Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Tue, 30 Oct 2012 10:11:25 -0700
changeset 6614 92925281e7ca
parent 6601 0d0946905eb2
child 6690 9548c8a58103
permissions -rw-r--r--
tree 46b4d59cbfb1
parent adac5aad395d
author Edward Rudd <urkle@outoforder.cc> 1351362890 14400
committer Edward Rudd <urkle@outoforder.cc> 1351362890 14400
revision 6611
branch default

add test to show off the new MessageBox API
     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 	testmessage$(EXE) \
    51 
    52 all: Makefile $(TARGETS)
    53 
    54 Makefile: $(srcdir)/Makefile.in
    55 	$(SHELL) config.status $@
    56 
    57 checkkeys$(EXE): $(srcdir)/checkkeys.c
    58 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    59 
    60 loopwave$(EXE): $(srcdir)/loopwave.c
    61 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    62 
    63 testresample$(EXE): $(srcdir)/testresample.c
    64 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    65 
    66 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
    67 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    68 
    69 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    70 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    71 
    72 testatomic$(EXE): $(srcdir)/testatomic.c
    73 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    74 
    75 testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
    76 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    77 
    78 testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
    79 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    80 
    81 testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
    82 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    83 
    84 testerror$(EXE): $(srcdir)/testerror.c
    85 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    86 
    87 testfile$(EXE): $(srcdir)/testfile.c
    88 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    89 
    90 testgesture$(EXE): $(srcdir)/testgesture.c
    91 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    92  
    93 testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
    94 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    95 
    96 testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
    97 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    98 
    99 testhaptic$(EXE): $(srcdir)/testhaptic.c
   100 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   101 
   102 testrumble$(EXE): $(srcdir)/testrumble.c
   103 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   104 
   105 testthread$(EXE): $(srcdir)/testthread.c
   106 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   107 
   108 testiconv$(EXE): $(srcdir)/testiconv.c
   109 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   110 
   111 testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
   112 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
   113 
   114 testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
   115 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   116 
   117 testkeys$(EXE): $(srcdir)/testkeys.c
   118 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   119 
   120 testloadso$(EXE): $(srcdir)/testloadso.c
   121 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   122 
   123 testlock$(EXE): $(srcdir)/testlock.c
   124 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   125 
   126 ifeq (@ISMACOSX@,true)
   127 testnative$(EXE): $(srcdir)/testnative.c \
   128 			$(srcdir)/testnativecocoa.m \
   129 			$(srcdir)/testnativew32.c \
   130 			$(srcdir)/testnativex11.c
   131 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
   132 endif
   133 
   134 ifeq (@ISWINDOWS@,true)
   135 testnative$(EXE): $(srcdir)/testnative.c \
   136 			$(srcdir)/testnativew32.c
   137 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   138 endif
   139 
   140 ifeq (@ISUNIX@,true)
   141 testnative$(EXE): $(srcdir)/testnative.c \
   142 			$(srcdir)/testnativex11.c
   143 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
   144 endif
   145 
   146 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
   147 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   148 
   149 testplatform$(EXE): $(srcdir)/testplatform.c
   150 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   151 
   152 testpower$(EXE): $(srcdir)/testpower.c
   153 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   154 
   155 testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
   156 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   157 
   158 testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
   159 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   160 
   161 testsem$(EXE): $(srcdir)/testsem.c
   162 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   163 
   164 testshader$(EXE): $(srcdir)/testshader.c
   165 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
   166 
   167 testshape$(EXE): $(srcdir)/testshape.c
   168 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   169 
   170 testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
   171 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   172 
   173 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
   174 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   175 
   176 teststreaming$(EXE): $(srcdir)/teststreaming.c
   177 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   178 
   179 testtimer$(EXE): $(srcdir)/testtimer.c
   180 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   181 
   182 testver$(EXE): $(srcdir)/testver.c
   183 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   184 
   185 testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
   186 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   187 
   188 torturethread$(EXE): $(srcdir)/torturethread.c
   189 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   190 
   191 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
   192 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
   193 
   194 testmessage$(EXE): $(srcdir)/testmessage.c
   195 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
   196 
   197 clean:
   198 	rm -f $(TARGETS)
   199 
   200 distclean: clean
   201 	rm -f Makefile
   202 	rm -f config.status config.cache config.log
   203 	rm -rf $(srcdir)/autom4te*