test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Thu, 09 Aug 2012 14:28:45 -0400
changeset 6390 3047baa4a5e0
parent 6320 6077a1310907
child 6412 628702b5d490
permissions -rw-r--r--
Nasty attempt to fix building of testnative across various platforms.

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