Makefile variable magic
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
GZIP_COMPRESSION ?= "no"
|
||||
USE_HEATSHRINK ?= "yes"
|
||||
GZIP_COMPRESSION ?= no
|
||||
USE_HEATSHRINK ?= yes
|
||||
|
||||
CFLAGS=-I../../lib/heatshrink -I.. -std=gnu99
|
||||
ifeq ($(GZIP_COMPRESSION),"yes")
|
||||
ifeq ("$(GZIP_COMPRESSION)","yes")
|
||||
CFLAGS += -DESPFS_GZIP
|
||||
endif
|
||||
|
||||
ifeq ($(USE_HEATSHRINK),"yes")
|
||||
ifeq ("$(USE_HEATSHRINK)","yes")
|
||||
CFLAGS += -DESPFS_HEATSHRINK
|
||||
endif
|
||||
|
||||
@@ -14,7 +14,7 @@ OBJS=main.o heatshrink_encoder.o
|
||||
TARGET=mkespfsimage
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
ifeq ($(GZIP_COMPRESSION),"yes")
|
||||
ifeq ("$(GZIP_COMPRESSION)","yes")
|
||||
$(CC) -o $@ $^ -lz
|
||||
else
|
||||
$(CC) -o $@ $^
|
||||
|
||||
Reference in New Issue
Block a user