X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2F.make%2Fbuildc_emcc.mk;h=800722ccd9a4948e2fb064d4a2fc2a51ba983ebe;hp=364c70780dd3b587f5c54162ec897bc0ef4aea34;hb=745c7147f006a757c4f4387604c6525ef3768abc;hpb=fb95ec1cd9d2d15a5580f2e96f0a3c129f9292bb diff --git a/src/.make/buildc_emcc.mk b/src/.make/buildc_emcc.mk index 364c707..800722c 100644 --- a/src/.make/buildc_emcc.mk +++ b/src/.make/buildc_emcc.mk @@ -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