2009-08-26 Chris Toshok <toshok@ximian.com>
[moon.git] / class / Makefile.am
blob45f1446aa2caaee94ec9e87fc63b80e2d2ae63d8
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
7 if INCLUDE_BROWSER_MANAGED_CODE
8 NET_1_1_ASSEMBLIES = Mono.Cecil.dll Mono.Cecil.Mdb.dll
9 NET_2_0_ASSEMBLIES = monolinker.exe Mono.Tuner.dll
10 TUNER_ASSEMBLIES =  $(NET_1_1_ASSEMBLIES) $(NET_2_0_ASSEMBLIES)
11 LOCAL_ASSEMBLIES = $(TUNER_ASSEMBLIES:%=lib/tuner/%)
12 MCS_ASSEMBLIES = $(NET_1_1_ASSEMBLIES:%=$(MCS_PATH)/class/lib/net_1_1/%) $(NET_2_0_ASSEMBLIES:%=$(MCS_PATH)/class/lib/net_2_0/%)
14 noinst_SCRIPTS = $(LOCAL_ASSEMBLIES)
16 endif
18 EXTRA_DIST = mono.pub winfx3.pub msfinal.pub mono.snk silverlight.pub
20 # this is gross, but we have a circular dependency between System.Windows.dll and System.Windows.Browser.dll.
22 all-local: make-lib-directories
23         @echo Bootstrapping circular build;
24         $(MAKE) -C tuning
25         $(MAKE) -C System.Windows bootstrap
27 make-lib-directories:
28         @mkdir -p lib/2.1
29         @mkdir -p lib/2.1_raw
30         @mkdir -p lib/2.1-bootstrap
31         @mkdir -p lib/2.1_raw-bootstrap
32         @mkdir -p lib/moonlight
33         @mkdir -p lib/moonlight-bootstrap
34         @mkdir -p lib/tuner
36 if INCLUDE_BROWSER_MANAGED_CODE
37 $(LOCAL_ASSEMBLIES): make-lib-directories $(MCS_ASSEMBLIES)
38         for i in $(MCS_ASSEMBLIES); do cp $$i $$i.mdb lib/tuner/; done
39 endif
41 clean-local:
42         -rm -rf lib
44 DISTCLEANFILES= Microsoft.SilverlightControls/Makefile \
45                 Microsoft.SilverlightControls/Controls/Makefile
47 dist-hook:
48         -mkdir $(distdir)/Microsoft.SilverlightControls
49         -cp -a $(srcdir)/Microsoft.SilverlightControls/* $(distdir)/Microsoft.SilverlightControls
50         find $(distdir)/Microsoft.SilverlightControls -name .svn | xargs rm -rf
53 .PHONY: make-moonlight-dir