diff options
| author | quou <quou@disroot.org> | 2024-10-12 00:23:57 +1100 | 
|---|---|---|
| committer | quou <quou@disroot.org> | 2024-10-12 00:24:07 +1100 | 
| commit | 7a7628a3feaec81d9a445acbec604baecac3a167 (patch) | |
| tree | 962d56698071cdf5766083b77fa05607b9e37668 /Makefile | |
| parent | c5445eb3032f2081c8cf798e03b088b64b016a1f (diff) | |
sdl + emscripten backend
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 | 
1 files changed, 24 insertions, 0 deletions
| @@ -42,6 +42,30 @@ ifeq ($(config), release_gnu64)    libs = -lX11 -lXi -lpulse -lpulse-simple -lpthread -lm  endif +ifeq ($(config), debug_sdl2) +  compiler = gcc +  tool_compiler = gcc +  linker = gcc +  conf_cflags = -DDEBUG -Dplat_sdl2 -Dplat_x86 \ +    -Dallocation_default_alignment=8 \ +    -g +  libs = -lSDL2 -lm +endif + +ifeq ($(config), release_ems) +  compiler = emcc +  tool_compiler = gcc +  target = ems/hftrss.html +  linker = emcc +  conf_cflags = -DNDEBUG -Dplat_ems -Dplat_sdl2 \ +    -Dplat_ems \ +    -Dallocation_default_alignment=8 \ +    -O3 +  conf_lflags = -m64 -s --shell-file ems/template.html \ +		--post-js ems/post_run.js -sUSE_SDL=2 +  libs = -lm +endif +  sources = \  	animation.c \  	asset.c \ |