Merge branch 'master' of github.com:mono/mono
[mono.git] / mcs / class / System.Data.Linq / Makefile
1 thisdir = class/System.Data.Linq
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Data.Linq.dll
6 LIB_MCS_FLAGS = \
7                 /r:System.dll \
8                 /r:System.Core.dll \
9                 /r:System.Xml.dll \
10                 /r:System.Data.dll \
11                 /r:System.Runtime.Serialization.dll \
12                 /resource:./src/DbLinq/Schema/Dbml/DbmlSchema.xsd,DbLinq.Schema.Dbml.DbmlSchema.xsd \
13                 /d:MONO_STRICT /d:MONO_DEPLOY
14
15 ifeq (2.0, $(FRAMEWORK_VERSION))
16 # This is a .NET 3.5 only assembly, but built during the 2.0 build
17 LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
18 endif
19
20 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
21
22 EXTRA_DISTFILES = src/DbLinq/Schema/Dbml/DbmlSchema.xsd
23
24 # This is a .NET 3.5+ assembly
25 VALID_PROFILE := $(filter net_2_0 net_4_0, $(PROFILE))
26 ifndef VALID_PROFILE
27 LIBRARY_NAME = dummy-System.Data.Linq.dll
28 NO_INSTALL = yes
29 NO_SIGN_ASSEMBLY = yes
30 NO_TEST = yes
31 endif
32
33 include ../../build/library.make
34
35 dist-local: dist-default dist-DbLinq
36
37 dist-DbLinq:
38         find src -name '*.cs' -o -name '*.snk' -o -name '*.xml' -o -name '*.txt' > .files ; \
39         tar cTf .files - | (cd $(distdir); tar xf -) ; \
40         rm .files
41
42 RSYNC_EXCLUDES = \
43         --exclude '*.cache'         \
44         --exclude '*.csproj.*.txt'  \
45         --exclude '*.dll'           \
46         --exclude '*.exe'           \
47         --exclude '*.force'         \
48         --exclude '*.pdb'           \
49         --exclude '*.pidb'          \
50         --exclude '*.suo'           \
51         --exclude '*.user'          \
52         --exclude '*.userprefs'     \
53         --exclude '*.usertasks'     \
54         --exclude '.svn' 
55
56 update-dblinq:
57         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/src/ src/
58         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/tests/ tests/
59         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/examples/ examples/
60