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