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.
34 lines
525 B
34 lines
525 B
9 years ago
|
GZIP_COMPRESSION ?= no
|
||
|
USE_HEATSHRINK ?= yes
|
||
|
|
||
|
TARGET = mkespfsimage.exe
|
||
|
|
||
|
CC = gcc
|
||
|
LD = $(CC)
|
||
|
CFLAGS=-c -I../../heatshrink -I.. -Imman-win32 -std=gnu99
|
||
|
LDFLAGS=-Lmman-win32 -lmman
|
||
|
|
||
|
ifeq ("$(GZIP_COMPRESSION)","yes")
|
||
|
CFLAGS += -DESPFS_GZIP
|
||
|
LDFLAGS += -lz
|
||
|
endif
|
||
|
|
||
|
ifeq ("$(USE_HEATSHRINK)","yes")
|
||
|
CFLAGS += -DESPFS_HEATSHRINK
|
||
|
endif
|
||
|
|
||
|
OBJECTS = main.o heatshrink_encoder.o
|
||
|
|
||
|
all: $(TARGET)
|
||
|
|
||
|
$(TARGET): $(OBJECTS)
|
||
|
$(LD) -o $@ $^ $(LDFLAGS)
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(CFLAGS) -o $@ $^
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OBJECTS) $(TARGET)
|
||
|
|
||
|
.PHONY: all clean
|