Explorar o código

ZIP file support.

Ryan C. Gordon %!s(int64=24) %!d(string=hai) anos
pai
achega
8b6fad3e7c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      Makefile

+ 3 - 2
Makefile

@@ -37,7 +37,7 @@ debugging := true
 # Set the archive types you'd like to support.
 # Set the archive types you'd like to support.
 #  Note that various archives may need external libraries.
 #  Note that various archives may need external libraries.
 #-----------------------------------------------------------------------------#
 #-----------------------------------------------------------------------------#
-use_archive_zip := false
+use_archive_zip := true
 use_archive_grp := true
 use_archive_grp := true
 
 
 #-----------------------------------------------------------------------------#
 #-----------------------------------------------------------------------------#
@@ -144,8 +144,9 @@ TESTSRCS := test/test_physfs.c
 MAINSRCS := physfs.c platform/unix.c archivers/dir.c
 MAINSRCS := physfs.c platform/unix.c archivers/dir.c
 
 
 ifeq ($(strip $(use_archive_zip)),true)
 ifeq ($(strip $(use_archive_zip)),true)
-MAINSRCS += archivers/zip.c
+MAINSRCS += archivers/zip.c archivers/unzip.c
 CFLAGS += -DPHYSFS_SUPPORTS_ZIP
 CFLAGS += -DPHYSFS_SUPPORTS_ZIP
+LDFLAGS += -lz
 endif
 endif
 
 
 ifeq ($(strip $(use_archive_grp)),true)
 ifeq ($(strip $(use_archive_grp)),true)