From 89ef4eb6346fe7847b8ff26f71b40ff3233490fc Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Fri, 8 Feb 2019 11:04:33 -0500 Subject: [PATCH] Update emscripten build. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 173f91fe..6e232ea1 100644 --- a/Makefile +++ b/Makefile @@ -111,11 +111,14 @@ EMCFLAGS=-std=c99 -Wall -Wextra -Isrc/include -O2 \ JANET_EMTARGET=build/janet.js JANET_WEB_SOURCES=$(JANET_CORE_SOURCES) $(JANET_WEBCLIENT_SOURCES) JANET_EMOBJECTS=$(patsubst src/%.c,build/%.bc,$(JANET_WEB_SOURCES)) \ - build/webinit.gen.bc build/core.gen.bc + build/webinit.gen.bc build/core_image.bc %.gen.bc: %.gen.c $(EMCC) $(EMCFLAGS) -o $@ -c $< +build/core_image.bc: build/core_image.c $(JANET_HEADERS) $(JANET_LOCAL_HEADERS) + $(EMCC) $(EMCFLAGS) -o $@ -c $< + build/%.bc: src/%.c $(JANET_HEADERS) $(JANET_LOCAL_HEADERS) $(EMCC) $(EMCFLAGS) -o $@ -c $<