Makefile
changeset 74 a4a5066fb640
parent 71 105bdb041c03
child 81 0a0cd7fb0208
equal deleted inserted replaced
73:96828990c739 74:a4a5066fb640
   166 TESTSRCS := test/test_physfs.c
   166 TESTSRCS := test/test_physfs.c
   167 
   167 
   168 MAINSRCS := physfs.c archivers/dir.c
   168 MAINSRCS := physfs.c archivers/dir.c
   169 
   169 
   170 ifeq ($(strip $(use_archive_zip)),true)
   170 ifeq ($(strip $(use_archive_zip)),true)
   171 MAINSRCS += archivers/zip.c archivers/unzip.c
   171   MAINSRCS += archivers/zip.c archivers/unzip.c
   172 CFLAGS += -DPHYSFS_SUPPORTS_ZIP
   172   CFLAGS += -DPHYSFS_SUPPORTS_ZIP
   173 ifeq ($(strip $(cygwin)),true)
   173   ifeq ($(strip $(cygwin)),true)
   174 CFLAGS += -Izlibwin32
   174     CFLAGS += -Izlibwin32
   175 LDFLAGS += zlibwin32/zlibstat.lib
   175     ifeq ($(strip $(debugging)),true)
   176 else
   176       LDFLAGS += zlibwin32/zlibstat_multid.lib  
   177 LDFLAGS += -lz
   177     else
   178 endif
   178       LDFLAGS += zlibwin32/zlibstat_multir.lib  
       
   179     endif
       
   180   else
       
   181     LDFLAGS += -lz
       
   182   endif
   179 endif
   183 endif
   180 
   184 
   181 ifeq ($(strip $(use_archive_grp)),true)
   185 ifeq ($(strip $(use_archive_grp)),true)
   182 MAINSRCS += archivers/grp.c
   186 MAINSRCS += archivers/grp.c
   183 CFLAGS += -DPHYSFS_SUPPORTS_GRP
   187 CFLAGS += -DPHYSFS_SUPPORTS_GRP
   184 endif
   188 endif
   185 
   189 
   186 ifeq ($(strip $(cygwin)),true)
   190 ifeq ($(strip $(cygwin)),true)
   187 MAINSRCS += platform/win32.c
   191 MAINSRCS += platform/win32.c
       
   192 CFLAGS += -DWIN32
   188 else
   193 else
   189 MAINSRCS += platform/unix.c
   194 MAINSRCS += platform/unix.c
   190 endif
   195 endif
   191 
   196 
   192 TESTEXE := $(BINDIR)/test_physfs$(EXE_EXT)
   197 TESTEXE := $(BINDIR)/test_physfs$(EXE_EXT)