Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
24 lignes
431 B
24 lignes
431 B
GZIP_COMPRESSION ?= no
|
|
USE_HEATSHRINK ?= yes
|
|
|
|
CFLAGS=-I../../lib/heatshrink -I../../include -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)
|