Sensor-Watch/Makefile
2024-09-18 16:10:12 -04:00

43 lines
1.3 KiB
Makefile

# Keep this first line.
GOSSAMER_PATH=gossamer
# If your firmware targets a specific board, specify it here,
# or omit it and provide it on the command line (make BOARD=foo).
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 include directories here.
INCLUDES += \
-I./watch-library/shared/watch \
# Add your source files here.
SRCS += \
./watch-library/hardware/watch/watch_adc.c \
./watch-library/hardware/watch/watch_extint.c \
./watch-library/hardware/watch/watch_gpio.c \
./watch-library/hardware/watch/watch_rtc.c \
./watch-library/hardware/watch/watch_slcd.c \
./watch-library/shared/watch/watch_common_display.c \
./watch-library/hardware/watch/watch_tcc.c \
./app.c \
# Finally, leave this line at the bottom of the file.
include $(GOSSAMER_PATH)/rules.mk