From 27ee889c0e74e84035c2c208c856729a16d866c7 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 21 Oct 2009 01:45:13 +0000 Subject: tweak dll stuff again git-svn-id: svn+q:///qpdf/trunk@851 71b93d88-0707-0410-a8cf-f5a4172ac649 --- make/msvc.mk | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'make/msvc.mk') diff --git a/make/msvc.mk b/make/msvc.mk index b7b1d572..eb6c6ac7 100644 --- a/make/msvc.mk +++ b/make/msvc.mk @@ -40,8 +40,21 @@ define c_compile /c $(1) /Fo$(call c_src_to_obj,$(1)) endef -libcompile = $(compile) -c_libcompile = $(c_compile) +# 1 2 +# Usage: $(call libcompile,src,includes) +define libcompile + cl /nologo /Zi /Gy /EHsc /MD /TP /GR $(CPPFLAGS) $(CXXFLAGS) \ + -DDLL_EXPORT $(foreach I,$(2),-I$(I)) \ + /c $(1) /Fo$(call src_to_obj,$(1)) +endef + +# 1 2 +# Usage: $(call c_libcompile,src,includes) +define c_libcompile + cl /nologo /Zi /Gy /EHsc /MD $(CPPFLAGS) $(CXXFLAGS) \ + -DDLL_EXPORT $(foreach I,$(2),-I$(I)) \ + /c $(1) /Fo$(call c_src_to_obj,$(1)) +endef # 1 2 # Usage: $(call makeslib,objs,library) -- cgit v1.2.3-70-g09d2