From: Marko Kreen Date: Sun, 6 Jan 2013 11:58:47 +0000 (+0200) Subject: msvc cleanup X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=7523dcd59d5dc1e5c933b2aded5fa14e931a9d6f;p=libusual.git msvc cleanup --- diff --git a/build_msvc.mk b/build_msvc.mk index f7f8581..77f6819 100644 --- a/build_msvc.mk +++ b/build_msvc.mk @@ -1,7 +1,11 @@ AM_FEATURES = msvc -abs_top_srcdir = $(dir $(filter %build.mk, $(MAKEFILE_LIST))) +# make it work also when included from test/Makefile +top_srcdir = $(dir $(filter %build.mk, $(MAKEFILE_LIST))) +top_builddir = $(top_srcdir) +abs_top_srcdir := $(abspath $(top_srcdir)) +abs_top_builddir := $(abs_top_srcdir) include $(abs_top_srcdir)/mk/antimake.mk diff --git a/mk/amext-msvc.mk b/mk/amext-msvc.mk index 0e0a304..c36024e 100644 --- a/mk/amext-msvc.mk +++ b/mk/amext-msvc.mk @@ -1,6 +1,7 @@ SHELL = cmd.exe +ShellQuote = "$(subst ",\",$(1))" EXEEXT = .exe LIBEXT = .lib