point build action to new target

This commit is contained in:
joeycastillo
2024-09-18 09:40:18 -04:00
parent f7cf2a6c4d
commit b9c9ec071a
2 changed files with 29 additions and 23 deletions

View File

@@ -8,10 +8,24 @@ BOARD=sensorwatch_green
# Leave this line here.
include $(GOSSAMER_PATH)/make.mk
# this is a hack and does not currently work; we need to integrate a bit of
# emscripten support into gossamer to actually build for the simulator
ifdef EMSCRIPTEN
BUILD = ./build-sim
CC = emcc
all: $(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=$(TOP)/watch-library/simulator/shell.html
endif
# Add your source files here.
SRCS += \
./movement.c \
# Finally, leave this line at the bottom of the file.
include $(GOSSAMER_PATH)/rules.mk