forgot lexer_fsm
[henge/webcc.git] / make / SDL2.mk
1 ################################################################################
2 # Desc: SDL2 Build Data
3 # Author: Mihrtec LLC
4 # Date: 2016
5 ################################################################################
6 # SDL2 natively supports transpiling (well, almost)
7 ################################################################################
8 # Download location
9 HGADDR := https://hg.libsdl.org/SDL
10 # No autogen for SDL
11 undefine AUTOGEN
12 # Ensure we have our other libraries, and their associated
13 # accutrements (like jpeg/tiff, etc from SDL2_image)
14 LIBDEPS := SDL2_image SDL2_ttf SDL2_net
15 # Modifications to the build process when using specific compilers
16 define emccMOD =
17 $(eval CONFIGURE += --enable-joystick=no)
18 $(eval CONFIGURE += --enable-pthreads=no)
19 $(eval CONFIGURE += --enable-threads=no)
20 MKCMD := $(subst make , emmake make ,$(MKCMD))
21 CONFIGURE := $(subst ./configure , emconfigure ./configure ,$(CONFIGURE))
22 endef
23 define em++MOD =
24 $(call EMCCMOD)
25 endef
26 $(eval $(call $(c_C)MOD))