From 2a1292a61f1c9a8a74fa7ecbf586ac76e60adffe Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 17 Jun 2011 11:50:21 -0700 Subject: [PATCH] Makefile.vc: add experimental target Defines WEBP_EXPERIMENTAL_FEATURES for the build. Change-Id: I1f118ca07018a92bfdf86f562781971d4382fc6e --- Makefile.vc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.vc b/Makefile.vc index da9063cb..876d2978 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -92,6 +92,8 @@ CFGSET = TRUE !MESSAGE - debug-static - debug static library !MESSAGE may be: !MESSAGE - clean - perform a clean for CFG +!MESSAGE - experimental - build CFG with experimental +!MESSAGE . features enabled. Requires zlib. !MESSAGE !MESSAGE controls the runtime library linkage - can be 'static' or 'dynamic'. !MESSAGE can be left blank in which case all is assumed @@ -147,6 +149,15 @@ EXAMPLES_OBJS = \ all: $(DIRLIB)\$(TARGET) $(DIRBIN)\dwebp.exe $(DIRBIN)\cwebp.exe +# Additional include and library paths (for zlib) can be passed via the CL and +# LINK environment variables respectively: +# > set CL=/I\zlib\include +# > set LINK=\zlib\zlib.lib +# > nmake /f Makefile.vc CFG=release-static experimental +experimental: + $(MAKE) /f Makefile.vc \ + CFG=$(CFG) CFLAGS="$(CFLAGS) /DWEBP_EXPERIMENTAL_FEATURES" /$(MAKEFLAGS) + $(DIRLIB)\$(TARGET): $(X_OBJS) $(LNK) $(LFLAGS) $(X_OBJS) -xcopy $(DIROBJ)\$(LIB_NAME).dll $(DIRBIN) /y