Windows build (msvc): target Windows 5.0.1 (XP)

Without this, qpdf executables work only on Vista or newer.

Fixes #35
This commit is contained in:
Jay Berkenbilt 2014-06-07 17:01:14 -04:00
parent 076164e988
commit 3c5e602a1e
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2014-06-07 Jay Berkenbilt <ejb@ql.org>
* MS Visual C++ build: explicitly target Windows 5.0.1 (XP)
* New example program: pdf-split-pages: efficiently split PDF
files into individual pages.

View File

@ -66,7 +66,7 @@ endef
# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
define makelib
cl /nologo /O2 /Zi /Gy /EHsc /MD /LD /Fe$(basename $(2))$(shell expr $(5) - $(7)).dll $(1) \
/link /incremental:no \
/link /SUBSYSTEM:CONSOLE,5.01 /incremental:no \
$(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \
$(foreach L,$(subst -l,,$(4)),$(L).lib)
if [ -f $(basename $(2))$(shell expr $(5) - $(7)).dll.manifest ]; then \
@ -80,7 +80,7 @@ endef
# Usage: $(call makebin,objs,binary,ldflags,libs)
define makebin
cl /nologo /O2 /Zi /Gy /EHsc /MD $(1) \
/link /incremental:no /OUT:$(2) \
/link /SUBSYSTEM:CONSOLE,5.01 /incremental:no /OUT:$(2) \
$(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \
$(foreach L,$(subst -l,,$(4)),$(L).lib)
if [ -f $(2).manifest ]; then \