pull/30/head
parent
2ae9c904d4
commit
391b6d014e
@ -1,10 +1,24 @@ |
|||||||
|
GZIP_COMPRESSION ?= "no"
|
||||||
|
USE_HEATSHRINK ?= "yes"
|
||||||
|
|
||||||
CFLAGS=-I../../lib/heatshrink -I.. -std=gnu99
|
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
|
OBJS=main.o heatshrink_encoder.o
|
||||||
TARGET=mkespfsimage
|
TARGET=mkespfsimage
|
||||||
|
|
||||||
$(TARGET): $(OBJS) |
$(TARGET): $(OBJS) |
||||||
|
ifeq ($(GZIP_COMPRESSION),"yes") |
||||||
|
$(CC) -o $@ $^ -lz
|
||||||
|
else |
||||||
$(CC) -o $@ $^
|
$(CC) -o $@ $^
|
||||||
|
endif |
||||||
|
|
||||||
clean: |
clean: |
||||||
rm -f $(TARGET) $(OBJS)
|
rm -f $(TARGET) $(OBJS)
|
Loading…
Reference in new issue