mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
415 B
24 lines
415 B
GZIP_COMPRESSION ?= no
|
|
USE_HEATSHRINK ?= yes
|
|
|
|
CFLAGS=-I../../lib/heatshrink -I.. -std=gnu99
|
|
ifeq ("$(GZIP_COMPRESSION)","yes")
|
|
CFLAGS += -DESPFS_GZIP
|
|
endif
|
|
|
|
ifeq ("$(USE_HEATSHRINK)","yes")
|
|
CFLAGS += -DESPFS_HEATSHRINK
|
|
endif
|
|
|
|
OBJS=main.o heatshrink_encoder.o
|
|
TARGET=mkespfsimage
|
|
|
|
$(TARGET): $(OBJS)
|
|
ifeq ("$(GZIP_COMPRESSION)","yes")
|
|
$(CC) -o $@ $^ -lz
|
|
else
|
|
$(CC) -o $@ $^
|
|
endif
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJS)
|