* rules.make:
[mono.git] / mcs / build / platforms / linux.make
1 # -*- makefile -*-
2 #
3 # Platform-specific makefile rules. This one's for linux.
4 #
5
6 PLATFORM_DEBUG_FLAGS = -g
7 PLATFORM_MCS_FLAGS = 
8 PLATFORM_RUNTIME = $(RUNTIME)
9 PLATFORM_CORLIB = mscorlib.dll
10
11 BOOTSTRAP_MCS = mcs
12 RESGEN = monoresgen
13
14 # Define this if this ever will work on Linux
15 # PLATFORM_MAKE_CORLIB_CMP = yes
16
17 # This is for the security permission attribute problem
18 # on windows
19 PLATFORM_TWEAK_CORLIB_SOURCES = cat
20
21 # This is for changing / to \ on windows
22 # Don't define it so we don't needlessly copy the sources
23 # file. This command is handy for testing:
24 #
25 # PLATFORM_CHANGE_SEPARATOR_CMD=sed -e 's,/,/./,g'
26
27 hidden_prefix = .
28 hidden_suffix = 
29
30 platform-check:
31         @if ! type $(BOOTSTRAP_MCS) >/dev/null 2>&1 ; then \
32             echo "*** You need a C# compiler installed to build MCS." ; \
33             echo "*** Read INSTALL.txt for information on how to bootstrap" ; \
34             echo "*** a Mono installation." ; \
35             exit 1 ; \
36         fi
37
38
39 # I tried this but apparently Make's version strings aren't that
40 # ... consistent between releases. Whatever.
41 #
42 #       @if ! $(MAKE) --version |grep '^GNU Make version 3' 1>/dev/null 2>&1 ; then \
43 #           echo "*** You need to build MCS with GNU make. Try \`gmake'" ; \
44 #           exit 1 ; \
45 #       fi