]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Make sure Visual Studio makefile does not fail if zconf.h is missing.
authorMika Lindqvist <postmaster@raasu.org>
Thu, 7 May 2015 00:21:22 +0000 (03:21 +0300)
committerMika Lindqvist <postmaster@raasu.org>
Thu, 7 May 2015 10:01:15 +0000 (13:01 +0300)
win32/Makefile.msc

index 318be92efbbbcd09f69f6a9af6ef6b9f221f2c6f..3ed58fb17e08fe5ba4918d51d15683f3093f4ad3 100644 (file)
@@ -21,6 +21,7 @@ CC = cl
 LD = link
 AR = lib
 RC = rc
+CP = copy /y
 CFLAGS  = -nologo -MD -W3 -O2 -Oy- -Zi -Fd"zlib" $(LOC)
 WFLAGS  = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
 LDFLAGS = -nologo -debug -incremental:no -opt:ref -manifest
@@ -72,6 +73,9 @@ minigzip_d.exe: minigzip.obj $(IMPLIB)
 {$(TOP)/test}.c.obj:
        $(CC) -c -I$(TOP) $(WFLAGS) $(CFLAGS) $<
 
+$(TOP)/zconf.h: $(TOP)/zconf.h.in
+       $(CP) $(TOP)/zconf.h.in $@
+
 adler32.obj: $(TOP)/adler32.c $(TOP)/zlib.h $(TOP)/zconf.h
 
 compress.obj: $(TOP)/compress.c $(TOP)/zlib.h $(TOP)/zconf.h