diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-21 03:45:13 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-21 03:45:13 +0200 |
commit | 27ee889c0e74e84035c2c208c856729a16d866c7 (patch) | |
tree | 4a9562232e327ff2a9d18f947121ea6895d3b38b /make/mingw.mk | |
parent | 95753c6b534d22951e254f221802ba09d6d71077 (diff) | |
download | qpdf-27ee889c0e74e84035c2c208c856729a16d866c7.tar.zst |
tweak dll stuff again
git-svn-id: svn+q:///qpdf/trunk@851 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'make/mingw.mk')
-rw-r--r-- | make/mingw.mk | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/make/mingw.mk b/make/mingw.mk index ae599393..14bfdff8 100644 --- a/make/mingw.mk +++ b/make/mingw.mk @@ -33,8 +33,23 @@ define c_compile -c $(1) -o $(call c_src_to_obj,$(1)) endef -libcompile = $(compile) -c_libcompile = $(c_compile) +# 1 2 +# Usage: $(call libcompile,src,includes) +define libcompile + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -DDLL_EXPORT \ + $(call depflags,$(basename $(call src_to_obj,$(1)))) \ + $(foreach I,$(2),-I$(I)) \ + -c $(1) -o $(call src_to_obj,$(1)) +endef + +# 1 2 +# Usage: $(call c_libcompile,src,includes) +define c_libcompile + $(CC) $(CPPFLAGS) $(CFLAGS) -DDLL_EXPORT \ + $(call depflags,$(basename $(call src_to_obj,$(1)))) \ + $(foreach I,$(2),-I$(I)) \ + -c $(1) -o $(call c_src_to_obj,$(1)) +endef # 1 2 # Usage: $(call makeslib,objs,library) |