sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

Makefile.in (8786B)


      1 # Makefile to build the SDL tests
      2 
      3 srcdir  = @srcdir@
      4 
      5 CC      = @CC@
      6 EXE	= @EXE@
      7 CFLAGS  = @CFLAGS@ -g
      8 LIBS	= @LIBS@
      9 
     10 TARGETS = \
     11 	checkkeys$(EXE) \
     12 	controllermap$(EXE) \
     13 	loopwave$(EXE) \
     14 	loopwavequeue$(EXE) \
     15 	testatomic$(EXE) \
     16 	testaudiocapture$(EXE) \
     17 	testaudiohotplug$(EXE) \
     18 	testaudioinfo$(EXE) \
     19 	testautomation$(EXE) \
     20 	testbounds$(EXE) \
     21 	testcustomcursor$(EXE) \
     22 	testdisplayinfo$(EXE) \
     23 	testdraw2$(EXE) \
     24 	testdrawchessboard$(EXE) \
     25 	testdropfile$(EXE) \
     26 	testerror$(EXE) \
     27 	testevdev$(EXE) \
     28 	testfile$(EXE) \
     29 	testfilesystem$(EXE) \
     30 	testgamecontroller$(EXE) \
     31 	testgesture$(EXE) \
     32 	testhaptic$(EXE) \
     33 	testhittesting$(EXE) \
     34 	testhotplug$(EXE) \
     35 	testiconv$(EXE) \
     36 	testime$(EXE) \
     37 	testintersections$(EXE) \
     38 	testjoystick$(EXE) \
     39 	testkeys$(EXE) \
     40 	testloadso$(EXE) \
     41 	testlocale$(EXE) \
     42 	testlock$(EXE) \
     43 	testmessage$(EXE) \
     44 	testmultiaudio$(EXE) \
     45 	testnative$(EXE) \
     46 	testoverlay2$(EXE) \
     47 	testplatform$(EXE) \
     48 	testpower$(EXE) \
     49 	testqsort$(EXE) \
     50 	testrelative$(EXE) \
     51 	testrendercopyex$(EXE) \
     52 	testrendertarget$(EXE) \
     53 	testresample$(EXE) \
     54 	testrumble$(EXE) \
     55 	testscale$(EXE) \
     56 	testsem$(EXE) \
     57 	testsensor$(EXE) \
     58 	testshape$(EXE) \
     59 	testsprite2$(EXE) \
     60 	testspriteminimal$(EXE) \
     61 	teststreaming$(EXE) \
     62 	testthread$(EXE) \
     63 	testtimer$(EXE) \
     64 	testurl$(EXE) \
     65 	testver$(EXE) \
     66 	testviewport$(EXE) \
     67 	testvulkan$(EXE) \
     68 	testwm2$(EXE) \
     69 	testyuv$(EXE) \
     70 	torturethread$(EXE) \
     71 
     72 	
     73 @OPENGL_TARGETS@ += testgl2$(EXE) testshader$(EXE)
     74 @OPENGLES1_TARGETS@ += testgles$(EXE)
     75 @OPENGLES2_TARGETS@ += testgles2$(EXE)
     76 
     77 
     78 all: Makefile $(TARGETS) copydatafiles
     79 
     80 Makefile: $(srcdir)/Makefile.in
     81 	$(SHELL) config.status $@
     82 
     83 checkkeys$(EXE): $(srcdir)/checkkeys.c
     84 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
     85 
     86 loopwave$(EXE): $(srcdir)/loopwave.c
     87 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
     88 
     89 loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
     90 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
     91 
     92 testresample$(EXE): $(srcdir)/testresample.c
     93 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
     94 
     95 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
     96 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
     97 
     98 testautomation$(EXE): $(srcdir)/testautomation.c \
     99 		      $(srcdir)/testautomation_audio.c \
    100 		      $(srcdir)/testautomation_clipboard.c \
    101 		      $(srcdir)/testautomation_events.c \
    102 		      $(srcdir)/testautomation_keyboard.c \
    103 		      $(srcdir)/testautomation_main.c \
    104 		      $(srcdir)/testautomation_mouse.c \
    105 		      $(srcdir)/testautomation_pixels.c \
    106 		      $(srcdir)/testautomation_platform.c \
    107 		      $(srcdir)/testautomation_rect.c \
    108 		      $(srcdir)/testautomation_render.c \
    109 		      $(srcdir)/testautomation_rwops.c \
    110 		      $(srcdir)/testautomation_sdltest.c \
    111 		      $(srcdir)/testautomation_stdlib.c \
    112 		      $(srcdir)/testautomation_surface.c \
    113 		      $(srcdir)/testautomation_syswm.c \
    114 		      $(srcdir)/testautomation_timer.c \
    115 		      $(srcdir)/testautomation_video.c \
    116 		      $(srcdir)/testautomation_hints.c
    117 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
    118 
    119 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
    120 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    121 
    122 testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
    123 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    124 
    125 testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
    126 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    127 
    128 testatomic$(EXE): $(srcdir)/testatomic.c
    129 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    130 
    131 testintersections$(EXE): $(srcdir)/testintersections.c
    132 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    133 
    134 testrelative$(EXE): $(srcdir)/testrelative.c
    135 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    136 
    137 testhittesting$(EXE): $(srcdir)/testhittesting.c
    138 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    139 
    140 testdraw2$(EXE): $(srcdir)/testdraw2.c
    141 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    142 
    143 testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
    144 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    145 
    146 testdropfile$(EXE): $(srcdir)/testdropfile.c
    147 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    148 
    149 testerror$(EXE): $(srcdir)/testerror.c
    150 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    151 
    152 testevdev$(EXE): $(srcdir)/testevdev.c
    153 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    154 
    155 testfile$(EXE): $(srcdir)/testfile.c
    156 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    157 
    158 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
    159 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    160  
    161 testgesture$(EXE): $(srcdir)/testgesture.c
    162 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    163  
    164 testgl2$(EXE): $(srcdir)/testgl2.c
    165 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    166 
    167 testgles$(EXE): $(srcdir)/testgles.c
    168 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
    169 
    170 testgles2$(EXE): $(srcdir)/testgles2.c
    171 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    172 
    173 testhaptic$(EXE): $(srcdir)/testhaptic.c
    174 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    175 
    176 testhotplug$(EXE): $(srcdir)/testhotplug.c
    177 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    178 
    179 testrumble$(EXE): $(srcdir)/testrumble.c
    180 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    181 
    182 testthread$(EXE): $(srcdir)/testthread.c
    183 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    184 
    185 testiconv$(EXE): $(srcdir)/testiconv.c
    186 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    187 
    188 testime$(EXE): $(srcdir)/testime.c
    189 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
    190 
    191 testjoystick$(EXE): $(srcdir)/testjoystick.c
    192 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    193 
    194 testkeys$(EXE): $(srcdir)/testkeys.c
    195 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    196 
    197 testloadso$(EXE): $(srcdir)/testloadso.c
    198 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    199 
    200 testlock$(EXE): $(srcdir)/testlock.c
    201 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    202 
    203 ifeq (@ISMACOSX@,true)
    204 testnative$(EXE): $(srcdir)/testnative.c \
    205 			$(srcdir)/testnativecocoa.m \
    206 			$(srcdir)/testnativex11.c
    207 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
    208 endif
    209 
    210 ifeq (@ISWINDOWS@,true)
    211 testnative$(EXE): $(srcdir)/testnative.c \
    212 			$(srcdir)/testnativew32.c
    213 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    214 endif
    215 
    216 ifeq (@ISUNIX@,true)
    217 testnative$(EXE): $(srcdir)/testnative.c \
    218 			$(srcdir)/testnativex11.c
    219 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
    220 endif
    221 
    222 #there's probably a better way of doing this
    223 ifeq (@ISMACOSX@,false)
    224 ifeq (@ISWINDOWS@,false)
    225 ifeq (@ISUNIX@,false)
    226 testnative$(EXE): ;
    227 endif
    228 endif
    229 endif
    230 
    231 testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
    232 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    233 
    234 testplatform$(EXE): $(srcdir)/testplatform.c
    235 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    236 
    237 testpower$(EXE): $(srcdir)/testpower.c
    238 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    239 
    240 testfilesystem$(EXE): $(srcdir)/testfilesystem.c
    241 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    242 
    243 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
    244 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    245 
    246 testscale$(EXE): $(srcdir)/testscale.c
    247 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    248 
    249 testsem$(EXE): $(srcdir)/testsem.c
    250 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    251 
    252 testsensor$(EXE): $(srcdir)/testsensor.c
    253 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    254 
    255 testshader$(EXE): $(srcdir)/testshader.c
    256 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
    257 
    258 testshape$(EXE): $(srcdir)/testshape.c
    259 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    260 
    261 testsprite2$(EXE): $(srcdir)/testsprite2.c
    262 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    263 
    264 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
    265 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    266 
    267 teststreaming$(EXE): $(srcdir)/teststreaming.c
    268 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    269 
    270 testtimer$(EXE): $(srcdir)/testtimer.c
    271 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    272 
    273 testurl$(EXE): $(srcdir)/testurl.c
    274 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    275 
    276 testver$(EXE): $(srcdir)/testver.c
    277 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    278 
    279 testviewport$(EXE): $(srcdir)/testviewport.c
    280 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    281 
    282 testwm2$(EXE): $(srcdir)/testwm2.c
    283 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    284 
    285 testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
    286 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    287 
    288 torturethread$(EXE): $(srcdir)/torturethread.c
    289 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    290 
    291 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
    292 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
    293 
    294 testmessage$(EXE): $(srcdir)/testmessage.c
    295 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    296 
    297 testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
    298 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    299 
    300 testqsort$(EXE): $(srcdir)/testqsort.c
    301 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    302 
    303 testbounds$(EXE): $(srcdir)/testbounds.c
    304 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    305 
    306 testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
    307 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    308 
    309 controllermap$(EXE): $(srcdir)/controllermap.c
    310 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    311 
    312 testvulkan$(EXE): $(srcdir)/testvulkan.c
    313 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    314 
    315 testlocale$(EXE): $(srcdir)/testlocale.c
    316 	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    317 
    318 
    319 
    320 clean:
    321 	rm -f $(TARGETS)
    322 
    323 distclean: clean
    324 	rm -f Makefile
    325 	rm -f config.status config.cache config.log
    326 	rm -rf $(srcdir)/autom4te*
    327 
    328 ifneq ($(srcdir), .)
    329 %.bmp: $(srcdir)/%.bmp
    330 	cp $< $@
    331 
    332 %.wav: $(srcdir)/%.wav
    333 	cp $< $@
    334 
    335 %.dat: $(srcdir)/%.dat
    336 	cp $< $@
    337 endif
    338 
    339 copydatafiles: copybmpfiles copywavfiles copydatfiles
    340 .PHONY : copydatafiles
    341 
    342 copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
    343 .PHONY : copybmpfiles
    344 
    345 copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
    346 .PHONY : copywavfiles
    347 
    348 copydatfiles: $(foreach dat,$(wildcard $(srcdir)/*.dat),$(notdir $(dat)))
    349 .PHONY : copydatfiles
    350