소스 검색

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)