Moved zlib in reactos/lib/zlib and updated to version 1.1.4
authorKJK::Hyperion <hackbunny@reactos.org>
Sun, 17 Mar 2002 21:21:39 +0000 (21:21 +0000)
committerKJK::Hyperion <hackbunny@reactos.org>
Sun, 17 Mar 2002 21:21:39 +0000 (21:21 +0000)
svn path=/trunk/; revision=2731

reactos/apps/utils/cabman/makefile
reactos/apps/utils/cabman/mszip.h

index dd40a7a..1ca8e72 100644 (file)
@@ -3,19 +3,25 @@
 #
 PATH_TO_TOP = ../..
 
-ZLIB_OBJECTS    = zlib/adler32.o zlib/deflate.o zlib/infblock.o zlib/infcodes.o \
-                  zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/inffast.o \
-                  zlib/trees.o zlib/zutil.o
+#FIXME: why doesn't this work?
+#ZLIB_OBJECTS    = $(PATH_TO_TOP)/lib/zlib/zlib.a
+ZLIB_PATH = $(PATH_TO_TOP)/lib/zlib
+
+ZLIB_OBJECTS    = $(ZLIB_PATH)/adler32.o $(ZLIB_PATH)/deflate.o \
+                  $(ZLIB_PATH)/infblock.o $(ZLIB_PATH)/infcodes.o \
+                  $(ZLIB_PATH)/inflate.o $(ZLIB_PATH)/inftrees.o \
+                  $(ZLIB_PATH)/infutil.o $(ZLIB_PATH)/inffast.o \
+                  $(ZLIB_PATH)/trees.o $(ZLIB_PATH)/zutil.o
 ENGINE_OBJECTS  = $(ZLIB_OBJECTS) cabinet.o mszip.o raw.o
 TEST_OBJECTS    = $(ENGINE_OBJECTS) test.o
 OBJECTS         = $(ENGINE_OBJECTS) main.o dfp.o
 TARGET          = cabman
 PROGS           = $(TARGET).exe test.exe
 
-CFLAGS                 += -O3
-
-CLEAN_FILES = *.o zlib/*.o $(TARGET).exe $(TARGET).sym test.exe test.sym
+#FIXME: zlib should be compiled and installed in the SDK by the master makefile
+CFLAGS                 += -O3 -I$(ZLIB_PATH)
 
+CLEAN_FILES = *.o $(TARGET).exe $(TARGET).sym test.exe test.sym
 
 all: $(PROGS)
 
@@ -42,7 +48,11 @@ else
        $(CP) $* ../../$(DIST_DIR)/apps/$*
 endif
 
-$(TARGET).exe: $(OBJECTS)
+#FIXME: zlib should be compiled and installed in the SDK by the master makefile
+$(ZLIB_PATH)/zlib.a:
+       make -C $(ZLIB_PATH) -f makefile.reactos
+
+$(TARGET).exe: $(OBJECTS) $(ZLIB_PATH)/zlib.a
        $(CC) $(OBJECTS) -o $(TARGET).exe
        $(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
        
index 08df8d4..4d787c7 100644 (file)
@@ -8,7 +8,7 @@
 #define __MSZIP_H
 
 #include "cabinet.h"
-#include "zlib/zlib.h"
+#include <zlib.h>
 
 #define MSZIP_MAGIC 0x4B43