瀏覽代碼

Allow WITH_ZLIB in example Makefile

bel2125 4 年之前
父節點
當前提交
4cca3fb108
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 3 1
      examples/embedded_c/Makefile
  2. 3 0
      examples/embedded_cpp/Makefile

+ 3 - 1
examples/embedded_c/Makefile

@@ -23,7 +23,9 @@ include $(TOP)/resources/Makefile.in-os
 ifeq ($(TARGET_OS),LINUX)
 	LIBS += -ldl -lrt
 endif
-
+ifdef WITH_ZLIB
+	LIBS += -lz
+endif
 
 all: $(PROG)
 

+ 3 - 0
examples/embedded_cpp/Makefile

@@ -20,6 +20,9 @@ include $(TOP)/resources/Makefile.in-os
 ifeq ($(TARGET_OS),LINUX) 
 	LIBS += -ldl -lrt
 endif
+ifdef WITH_ZLIB
+	LIBS += -lz
+endif
 
 all: $(PROG)