New build system from Peter Williams (peter@newton.cx)
[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
10 BOOTSTRAP_MCS = mcs
11 corlib = corlib.dll
12
13 # Define this if this ever will work on Linux
14 # PLATFORM_MAKE_CORLIB_CMP = yes
15
16 # This is for the security permission attribute problem
17 # on windows
18 PLATFORM_TWEAK_CORLIB_SOURCES = cat
19
20 # This is for changing / to \ on windows
21 # Don't define it so we don't needlessly copy the sources
22 # file. This command is handy for testing:
23 #
24 # PLATFORM_CHANGE_SEPARATOR_CMD=sed -e 's,/,/./,g'
25
26 hidden_prefix = .
27 hidden_suffix = 
28
29 platform-check:
30         @if ! type $(BOOTSTRAP_MCS) >/dev/null 2>&1 ; then \
31             echo "*** You need a C# compiler installed to build MCS." ; \
32             echo "*** Read README.building for information on how to bootstrap" ; \
33             echo "*** a Mono installation." ; \
34             exit 1 ; \
35         fi
36
37
38 # I tried this but apparently Make's version strings aren't that
39 # ... consistent between releases. Whatever.
40 #
41 #       @if ! $(MAKE) --version |grep '^GNU Make version 3' 1>/dev/null 2>&1 ; then \
42 #           echo "*** You need to build MCS with GNU make. Try \`gmake'" ; \
43 #           exit 1 ; \
44 #       fi