Move emscripten targets to gossamer's rules.mk
This commit is contained in:
parent
e3101749c9
commit
bca2fd396a
11
Makefile
11
Makefile
@ -47,16 +47,7 @@ ifdef NOSLEEP
|
|||||||
DEFINES += -DMOVEMENT_LOW_ENERGY_MODE_FORBIDDEN
|
DEFINES += -DMOVEMENT_LOW_ENERGY_MODE_FORBIDDEN
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef EMSCRIPTEN
|
# Emscripten targets are now handled in rules.mk in gossamer
|
||||||
all: $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).html
|
|
||||||
$(BUILD)/$(BIN).html: $(OBJS)
|
|
||||||
@echo HTML $@
|
|
||||||
@$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ \
|
|
||||||
-s ASYNCIFY=1 \
|
|
||||||
-s EXPORTED_RUNTIME_METHODS=lengthBytesUTF8,printErr \
|
|
||||||
-s EXPORTED_FUNCTIONS=_main \
|
|
||||||
--shell-file=./watch-library/simulator/shell.html
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Add your include directories here.
|
# Add your include directories here.
|
||||||
INCLUDES += \
|
INCLUDES += \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user