ZIP file support.
This commit is contained in:
parent
2dcf1741fe
commit
8b6fad3e7c
5
Makefile
5
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)
|
||||||
|
|
Loading…
Reference in New Issue