2009-12-04 Jeffrey Stedfast <fejj@novell.com>
[moon.git] / class / Makefile.am
blob30243c75219f593a74d5f9545192f095df9432da
1 SUBDIRS = .
2 if INCLUDE_BROWSER_MANAGED_CODE
3 SUBDIRS += tuning
4 endif
5 SUBDIRS += System.Windows.Browser System.Windows System.Windows.Controls System.Windows.Controls.Data
6 if INCLUDE_DESKTOP_MANAGED_CODE
7 SUBDIRS += Moon.Windows.Desktop
8 endif
10 if INCLUDE_BROWSER_MANAGED_CODE
11 NET_1_1_ASSEMBLIES = Mono.Cecil.dll Mono.Cecil.Mdb.dll
12 NET_2_0_ASSEMBLIES = monolinker.exe Mono.Tuner.dll
13 TUNER_ASSEMBLIES =  $(NET_1_1_ASSEMBLIES) $(NET_2_0_ASSEMBLIES)
14 LOCAL_ASSEMBLIES = $(TUNER_ASSEMBLIES:%=lib/tuner/%)
15 MCS_ASSEMBLIES = $(NET_1_1_ASSEMBLIES:%=$(MCS_PATH)/class/lib/net_1_1/%) $(NET_2_0_ASSEMBLIES:%=$(MCS_PATH)/class/lib/net_2_0/%)
16 MCS_MDBS = $(MCS_ASSEMBLIES:%=%.mdb)
18 endif
20 EXTRA_DIST = mono.pub winfx3.pub msfinal.pub mono.snk silverlight.pub
22 # this is gross, but we have a circular dependency between System.Windows.dll and System.Windows.Browser.dll.
24 all-local: copy-mcs-assemblies
25         @echo Bootstrapping circular build;
26 if INCLUDE_BROWSER_MANAGED_CODE
27         $(MAKE) -C tuning
28 endif
29         $(MAKE) -C System.Windows bootstrap
31 make-lib-directories:
32         @mkdir -p lib/2.1
33         @mkdir -p lib/2.1_raw
34         @mkdir -p lib/2.1-bootstrap
35         @mkdir -p lib/2.1_raw-bootstrap
36         @mkdir -p lib/moonlight
37         @mkdir -p lib/moonlight-bootstrap
38         @mkdir -p lib/tuner
40 if INCLUDE_BROWSER_MANAGED_CODE
41 copy-mcs-assemblies: make-lib-directories $(MCS_ASSEMBLIES)
42         @cp $(MCS_ASSEMBLIES) $(MCS_MDBS) lib/tuner
43 else
44 copy-mcs-assemblies: make-lib-directories
45 endif
47 clean-local:
48         -rm -rf lib
50 DISTCLEANFILES= Microsoft.SilverlightControls/Makefile \
51                 Microsoft.SilverlightControls/Controls/Makefile
53 dist-hook:
54         -mkdir $(distdir)/Microsoft.SilverlightControls
55         -cp -a $(srcdir)/Microsoft.SilverlightControls/* $(distdir)/Microsoft.SilverlightControls
56         find $(distdir)/Microsoft.SilverlightControls -name .svn | xargs rm -rf
59 .PHONY: make-lib-directories copy-mcs-assemblies