2010-05-28 Robert Jordan <robertj@gmx.net>
[mono.git] / mcs / class / System.Web.Mvc2 / Makefile
1 thisdir = class/System.Web.Mvc2
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Web.Mvc2.dll
6 LIBRARY_NAME = System.Web.Mvc.dll
7 LIBRARY_USE_INTERMEDIATE_FILE = yes
8
9 RESX_DIST =  System.Web.Mvc/Resources/MvcResources.resx
10
11 LIB_MCS_FLAGS = \
12                 /warnaserror- \
13                 /noconfig \
14                 /keyfile:../winfx.pub \
15                 /r:System.dll \
16                 /r:System.Core.dll \
17                 /r:System.Configuration.dll \
18                 /r:System.Data.dll \
19                 /r:System.Xml.dll \
20                 /r:System.Web.dll \
21                 /r:System.Web.Abstractions.dll \
22                 /r:System.Web.Routing.dll \
23                 /r:System.Web.Extensions.dll \
24                 /r:System.ComponentModel.DataAnnotations.dll \
25                 /r:System.Data.Linq.dll \
26                 $(foreach r, $(RESOURCES), /resource:$(r),System.Web.Mvc.Resources.$(notdir $(r)))
27
28 ifeq (2.0, $(FRAMEWORK_VERSION))
29 # This is a .NET 3.5 only assembly, but built during the 2.0 build
30 LIB_MCS_FLAGS += -d:NET_3_5 -d:MONO
31 endif
32
33 EXTRA_DISTFILES = $(RESX_DIST)
34
35 # This is a .NET 3.5+ assembly - it must be built ONLY in the 2.0 profile
36 VALID_PROFILE := $(filter net_2_0, $(PROFILE))
37 ifndef VALID_PROFILE
38 LIBRARY_NAME = dummy-System.Web.Mvc.dll
39 NO_INSTALL = yes
40 NO_SIGN_ASSEMBLY = yes
41 NO_TEST = yes
42 else
43 RESOURCES = $(RESX_DIST:.resx=.resources)
44 endif
45
46 include ../../build/library.make
47
48 $(build_lib): $(RESOURCES)
49
50 $(RESOURCES): %.resources: %.resx
51         $(RESGEN) `echo $< | $(PLATFORM_CHANGE_SEPARATOR_CMD)`