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
431 B
24 lines
431 B
10 years ago
|
GZIP_COMPRESSION ?= no
|
||
|
USE_HEATSHRINK ?= yes
|
||
10 years ago
|
|
||
10 years ago
|
CFLAGS=-I../../lib/heatshrink -I../../include -I.. -std=gnu99
|
||
10 years ago
|
ifeq ("$(GZIP_COMPRESSION)","yes")
|
||
10 years ago
|
CFLAGS += -DESPFS_GZIP
|
||
|
endif
|
||
|
|
||
10 years ago
|
ifeq ("$(USE_HEATSHRINK)","yes")
|
||
10 years ago
|
CFLAGS += -DESPFS_HEATSHRINK
|
||
|
endif
|
||
|
|
||
10 years ago
|
OBJS=main.o heatshrink_encoder.o
|
||
|
TARGET=mkespfsimage
|
||
10 years ago
|
|
||
10 years ago
|
$(TARGET): $(OBJS)
|
||
10 years ago
|
ifeq ("$(GZIP_COMPRESSION)","yes")
|
||
10 years ago
|
$(CC) -o $@ $^ -lz
|
||
|
else
|
||
10 years ago
|
$(CC) -o $@ $^
|
||
10 years ago
|
endif
|
||
10 years ago
|
|
||
|
clean:
|
||
|
rm -f $(TARGET) $(OBJS)
|