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
345 B
24 lines
345 B
GZIP_COMPRESSION?=no
|
|
|
|
CFLAGS=-I.. -std=gnu99
|
|
|
|
ifeq ("$(GZIP_COMPRESSION)","yes")
|
|
LDFLAGS+=-lz
|
|
CFLAGS+=-DESPFS_GZIP
|
|
endif
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
CFLAGS+=-Imman-win32
|
|
LDFLAGS+=-Lmman-win32 -lmman
|
|
TARGET =mkespfsimage.exe
|
|
else
|
|
TARGET =mkespfsimage
|
|
endif
|
|
|
|
OBJS=main.o
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJS)
|