Buildsys1.1
[henge/webcc.git] / src / .make / buildc_emcc.mk
index 364c707..800722c 100644 (file)
@@ -7,15 +7,18 @@
 ##################################################
 #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