[pdfmod] Have the makefiles use the compiler found by configure
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pdfmod] Have the makefiles use the compiler found by configure
- Date: Fri, 14 Aug 2009 17:13:13 +0000 (UTC)
commit ef75260534c7e3bc1d1f6b9148f68ff0b1342701
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Fri Aug 14 19:08:57 2009 +0200
Have the makefiles use the compiler found by configure
This allows to override the default compiler by passing MCS=/usr/bin/csc
as a parameter to configure.
configure.ac | 4 ++--
lib/PdfSharp/Makefile.am | 4 ++--
src/Makefile.am | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7b94a14..3ebaaa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,8 +72,8 @@ SHAMROCK_EXPAND_DATADIR
IT_PROG_INTLTOOL([0.35.0])
AC_PROG_INSTALL
-AC_PATH_PROG(GMCS, gmcs, no)
-if test "x$GMCS" = "xno"; then
+AC_PATH_PROG(MCS, gmcs, no)
+if test "x$MCS" = "xno"; then
AC_MSG_ERROR([gmcs Not found])
fi
diff --git a/lib/PdfSharp/Makefile.am b/lib/PdfSharp/Makefile.am
index e3bf5a9..e5158c8 100644
--- a/lib/PdfSharp/Makefile.am
+++ b/lib/PdfSharp/Makefile.am
@@ -4,7 +4,7 @@ EXTRA_DIST =
# Warning: This is an automatically generated file, do not edit!
if ENABLE_DEBUG
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(MCS)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug "-define:TRACE;DEBUG;GDI;UseGdiObjects"
ASSEMBLY = ../../bin/PdfSharp.dll
ASSEMBLY_MDB = $(ASSEMBLY).mdb
@@ -17,7 +17,7 @@ PDFSHARP_DLL_MDB_SOURCE=../../bin/PdfSharp.dll.mdb
endif
if ENABLE_RELEASE
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(MCS)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug "-define:TRACE;GDI;DEBUG;UseGdiObjects"
ASSEMBLY = ../../bin/PdfSharp.dll
ASSEMBLY_MDB = $(ASSEMBLY).mdb
diff --git a/src/Makefile.am b/src/Makefile.am
index d887b3d..42b280c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@
EXTRA_DIST =
if ENABLE_DEBUG
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(MCS)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug "-define:DEBUG"
ASSEMBLY = ../bin/PdfMod.exe
ASSEMBLY_MDB = $(ASSEMBLY).mdb
@@ -28,7 +28,7 @@ PDFMOD_EXE_MDB_SOURCE=../bin/PdfMod.exe.mdb
endif
if ENABLE_RELEASE
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(MCS)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
ASSEMBLY = ../bin/PdfMod.exe
ASSEMBLY_MDB = $(ASSEMBLY).mdb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]