##################################################
#redefine EXE directory for web platform
EXEDIR := $(BINDIR)/web/js
+#EMCC targets .js "executables"
APPSUFFIX := .js
-#Override targets to make .bc files
+#EMCC provides ports of each of these, so remove them
+#and recalculate CLIBS
LIBS := $(filter-out SDL2 SDL2_image SDL2_ttf, $(LIBS))
CLIBS := $(patsubst %,-l%,$(LIBS))
+#Override targets to make .bc files
CTARG := $(CTARG:.o=.bc)
#Expand the list of plain-text functions into what emcc expects
EXPORT_FUNCS := $(patsubst %,'_%',$(EXPORT_FUNCS))
EXPORT_LIST := $(shell echo "$(EXPORT_FUNCS)" | sed -e 's@ @, @g')
-#Mark all libs "missing" since they need to be built for emcc
+#Mark all remaining libs "missing" since they need to be built for emcc
MISSINGLIBS := $(LIBS)
#Set XTLibDir to one for bytecodes
XTLIBDIR := $(XTLIBDIR)/bc