2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[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                 /d:MONO_STRICT /d:MONO_DEPLOY
13
14 ifeq (2.0, $(FRAMEWORK_VERSION))
15 # This is a .NET 3.5 only assembly, but built during the 2.0 build
16 LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
17 endif
18
19 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
20
21 EXTRA_DISTFILES =
22
23 # This is a .NET 3.5+ assembly
24 VALID_PROFILE := $(filter net_2_0 net_4_0, $(PROFILE))
25 ifndef VALID_PROFILE
26 LIBRARY_NAME = dummy-System.Data.Linq.dll
27 NO_INSTALL = yes
28 NO_SIGN_ASSEMBLY = yes
29 NO_TEST = yes
30 endif
31
32 include ../../build/library.make
33
34 dist-local: dist-default dist-DbLinq
35
36 dist-DbLinq:
37         find src -name '*.cs' -o -name '*.snk' -o -name '*.xml' -o -name '*.txt' > .files ; \
38         tar cTf .files - | (cd $(distdir); tar xf -) ; \
39         rm .files
40
41 RSYNC_EXCLUDES = \
42         --exclude '*.cache'         \
43         --exclude '*.csproj.*.txt'  \
44         --exclude '*.dll'           \
45         --exclude '*.exe'           \
46         --exclude '*.force'         \
47         --exclude '*.pdb'           \
48         --exclude '*.pidb'          \
49         --exclude '*.suo'           \
50         --exclude '*.user'          \
51         --exclude '*.userprefs'     \
52         --exclude '*.usertasks'     \
53         --exclude '.svn' 
54
55 update-dblinq:
56         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/src/ src/
57         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/tests/ tests/
58