point build action to new target
This commit is contained in:
16
Makefile
16
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user