Makefile
changeset 43 8a68085acebf
parent 36 60b6076ae5c2
child 56 6a04b6c1db0e
equal deleted inserted replaced
42:c9cab2b09437 43:8a68085acebf
    35 
    35 
    36 #-----------------------------------------------------------------------------#
    36 #-----------------------------------------------------------------------------#
    37 # Set the archive types you'd like to support.
    37 # Set the archive types you'd like to support.
    38 #  Note that various archives may need external libraries.
    38 #  Note that various archives may need external libraries.
    39 #-----------------------------------------------------------------------------#
    39 #-----------------------------------------------------------------------------#
    40 use_archive_zip := false
    40 use_archive_zip := true
    41 use_archive_grp := true
    41 use_archive_grp := true
    42 
    42 
    43 #-----------------------------------------------------------------------------#
    43 #-----------------------------------------------------------------------------#
    44 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise.
    44 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise.
    45 #-----------------------------------------------------------------------------#
    45 #-----------------------------------------------------------------------------#
   142 TESTSRCS := test/test_physfs.c
   142 TESTSRCS := test/test_physfs.c
   143 
   143 
   144 MAINSRCS := physfs.c platform/unix.c archivers/dir.c
   144 MAINSRCS := physfs.c platform/unix.c archivers/dir.c
   145 
   145 
   146 ifeq ($(strip $(use_archive_zip)),true)
   146 ifeq ($(strip $(use_archive_zip)),true)
   147 MAINSRCS += archivers/zip.c
   147 MAINSRCS += archivers/zip.c archivers/unzip.c
   148 CFLAGS += -DPHYSFS_SUPPORTS_ZIP
   148 CFLAGS += -DPHYSFS_SUPPORTS_ZIP
       
   149 LDFLAGS += -lz
   149 endif
   150 endif
   150 
   151 
   151 ifeq ($(strip $(use_archive_grp)),true)
   152 ifeq ($(strip $(use_archive_grp)),true)
   152 MAINSRCS += archivers/grp.c
   153 MAINSRCS += archivers/grp.c
   153 CFLAGS += -DPHYSFS_SUPPORTS_GRP
   154 CFLAGS += -DPHYSFS_SUPPORTS_GRP