diff options
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 \ |