darling-zlib/NMakefile
Ariel Abreu 1b002dae77
zlib-76
2020-06-29 22:53:23 -04:00

36 lines
1.3 KiB
Plaintext

# Makefile for Windows build of zlib
!if "$(PLATFORM)" == "x86_amd64"
bits=64
!else
bits=32
!endif
name=zlib
project=$(name)-1.2.11
bin_dir=bin$(bits)
lib_dir=lib$(bits)
sym_dir=public$(bits)\sym
install:
xcopy $(name) "$(SRCROOT)\$(project)" /s/v/i/h/y
cd "$(SRCROOT)\$(project)"
nmake -f win32\Makefile.msc clean
nmake -f win32\Makefile.msc PLATFORM=$(PLATFORM)
xcopy "$(SRCROOT)\$(project)\*.dll" "$(DSTROOT)\AppleInternal\$(bin_dir)" /s/v/i/h/y
-mkdir "$(DSTROOT)\AppleInternal\$(sym_dir)"
copy "$(SRCROOT)\$(project)\zlib1.pdb" "$(DSTROOT)\AppleInternal\$(sym_dir)\" /v/y
xcopy "$(SRCROOT)\$(project)\*.h" "$(DSTROOT)\AppleInternal\include\zlib" /s/v/i/h/y
xcopy "$(SRCROOT)\$(project)\*.lib" "$(DSTROOT)\AppleInternal\$(lib_dir)" /s/v/i/h/y
install_DEBUG:
xcopy $(name) "$(SRCROOT)\$(project)" /s/v/i/h/y
cd "$(SRCROOT)\$(project)"
nmake -f win32\Makefile.msc clean
nmake -f win32\Makefile.msc DEBUG=1 PLATFORM=$(PLATFORM)
xcopy "$(SRCROOT)\$(project)\*.dll" "$(DSTROOT)\AppleInternal\$(bin_dir)" /s/v/i/h/y
xcopy "$(SRCROOT)\$(project)\*.lib" "$(DSTROOT)\AppleInternal\$(lib_dir)" /s/v/i/h/y
-mkdir "$(DSTROOT)\AppleInternal\$(sym_dir)"
copy "$(SRCROOT)\$(project)\zlib1_debug.pdb" "$(DSTROOT)\AppleInternal\$(sym_dir)\" /v/y