resgen
[mono.git] / mcs / build / profiles / net_1_1_java.make
1 # -*- makefile -*-
2 #
3 # The default 'bootstrap' profile -- builds so that we link against
4 # the libraries as we build them.
5 #
6 # We use the platform's native C# runtime and compiler if possible.
7
8 # Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
9 # is what allows us to bootstrap ourselves, but when we are bootstrapping,
10 # we use INTERNAL_MCS.
11
12 # When bootstrapping, compile against our new assemblies.
13 # (MONO_PATH doesn't just affect what assemblies are loaded to
14 # run the compiler; /r: flags are by default loaded from whatever's
15 # in the MONO_PATH too).
16
17 EXTERNAL_MCS = csc.exe
18 NO_SIGN_ASSEMBLY = yes
19 RESGEN = resgen.exe
20
21 #DEXT = pdb
22
23 ifdef PLATFORM_MONO_NATIVE
24 BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_1_1_bootstrap/mcs.exe
25 MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
26 MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
27 else
28 BOOTSTRAP_MCS = $(EXTERNAL_MCS)
29 MCS = $(PLATFORM_RUNTIME) $(EXTERNAL_MCS) /lib:$(topdir)/class/lib/$(PROFILE)
30 MBAS = $(PLATFORM_RUNTIME) $(EXTERNAL_MBAS) /lib:$(topdir)/class/lib/$(PROFILE)
31 endif
32
33 # nuttzing!
34
35 profile-check:
36
37 PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1 -d:TARGET_JVM -d:JAVA
38 PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1 -d:TARGET_JVM -d:JAVA
39 FRAMEWORK_VERSION = 1.0
40 CONVERTER_DEBUG_LEVEL = 3
41 ifeq ($(CONFIG),Release)
42 PLATFORM_DEBUG_FLAGS = /debug:pdbonly
43 CONVERTER_DEBUG_LEVEL = 2
44 endif
45 library_CLEAN_FILES += $(build_lib:.dll=.jar) $(build_lib:.dll=.pdb)
46
47 all-local:
48         $(MAKE) $(build_lib:.dll=.jar)
49
50 %.jar:%.dll
51         converter.exe /debug:$(CONVERTER_DEBUG_LEVEL) $< /out:$@ $(KEY) /lib:$(dir $@)