Sfoglia il codice sorgente

Allow WITH_ZLIB in example Makefile

bel2125 4 anni fa
parent
commit
4cca3fb108
2 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  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)