[build] Change the way how mcs references are passed to compiler to always use full...
[mono.git] / mcs / class / System.Messaging / Makefile
index 9be6d6081012341d5aeeacb7d41f0390077ab0c0..0412ea01555cf6bbcf44cb375c526bc75b3406bd 100644 (file)
@@ -3,21 +3,22 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Messaging.dll
-LIB_REFS = System System.Configuration.Install System.Drawing System.Windows.Forms System.Xml Mono.Messaging
-LIB_MCS_FLAGS = /resource:System.Messaging/MessageQueue.resx \
-               /r:System.dll \
-               /r:System.Configuration.Install.dll \
-               /r:System.Drawing.dll \
-               /r:System.Windows.Forms.dll \
-               /r:System.Xml \
-               /r:Mono.Messaging.dll
-TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 \
-               /r:nunit.mocks.dll
+LIB_REFS = System System.Xml Mono.Messaging System.Configuration.Install
+
+ifndef NO_SYSTEM_DRAWING_DEPENDENCY
+LIB_REFS += System.Drawing
+endif
+
+LIB_MCS_FLAGS = /resource:System.Messaging/MessageQueue.resx
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
+TEST_LIB_REFS = nunit.mocks
 
 EXTRA_DISTFILES = System.Messaging/MessageQueue.resx
 
-ifdef MESSAGING_NO_WINFORMS
+ifdef NO_WINFORMS_DEPENDENCY
 LIB_MCS_FLAGS += -d:NO_WINFORMS_DEPENDENCY
+else
+LIB_REFS += System.Windows.Forms
 endif
 
 include ../../build/library.make