fiatlux/firmware/Makefile

37 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2021-06-19 14:42:38 +00:00
PROGRAM=fiatlux
2022-09-13 03:29:26 +00:00
EXTRA_CFLAGS=-O3 -Ibuild/gen -DLWIP_NETIF_HOSTNAME=1 -DFLATBUFFERS_PREFER_PRINTF=1
2021-06-19 14:42:38 +00:00
2023-02-12 07:54:29 +00:00
EXTRA_COMPONENTS=extras/i2s_dma extras/ws2812_i2s extras/dhcpserver extras/rboot-ota extras/mbedtls extras/httpd extras/sntp extras/cpp_support extras/paho_mqtt_c
2021-06-19 14:42:38 +00:00
LIBS = hal m
2023-02-12 07:54:29 +00:00
FLASH_MODE = qio
2021-06-19 14:42:38 +00:00
include ../modules/rtos/common.mk
2021-09-09 00:35:15 +00:00
html: build/gen/fsdata.c
2021-07-29 13:42:05 +00:00
2021-09-09 00:35:15 +00:00
build/gen/fsdata.c: webdir/index.html webdir/404.html webdir/css/picnic.min.css webdir/css/style.css webdir/js/smoothie_min.js
2021-06-19 14:42:38 +00:00
@echo "Generating fsdata.."
2021-09-09 00:35:15 +00:00
@mkdir -p $(dir $@)
2023-02-12 07:54:29 +00:00
@./mkwebfs.py --gzip --minify -o $@ $^
2021-06-19 14:42:38 +00:00
test: unittest systest
unittest:
true
systest:
true
2021-07-18 23:25:27 +00:00
2021-09-09 00:35:15 +00:00
.NOTPARALLEL: html all
2023-02-11 02:01:45 +00:00
#$(BUILDDIR)/tetrad: $(BUILDDIR)/src/backend/tetrad.o $(BACKEND_OBJECTS) $(BUILDDIR)/libtetra.a
# $(V)mkdir -p $(dir $@)
# $(V)$(eval VERSION_OBJECT = $(shell mktemp /tmp/tetra_version_object.XXXXXX.o))
# $(V)./build_version_object.sh $(notdir $@) $(VERSION_OBJECT) $(CXX) $(CPPFLAGS) $(CXXFLAGS)
# @echo link $@
# $(V)$(CXX) $(CXXFLAGS) $(BUILDDIR)/src/backend/tetrad.o $(BACKEND_OBJECTS) $(VERSION_OBJECT) -o $@ $(LDFLAGS) -lstdc++fs
# $(V)rm $(VERSION_OBJECT)