Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Makefiles and public keys

  • Loading branch information...
commit fe736d1211d197df2e652d9ae9502cb5478b4a70 1 parent ba10187
Andreia Gaita shana authored
11 .gitignore
View
@@ -0,0 +1,11 @@
+lib/debug
+lib/proto
+.libs
+Makefile
+configure
+launcher
+autom4te.cache
+config.log
+config.make
+config.status
+
15 Makefile.in
View
@@ -0,0 +1,15 @@
+include $(topsrcdir)config.make
+
+all clean install do-2-0 do-4-0:
+ $(MAKE) -C src/fsharp $@
+
+dist:
+ -rm -r fsharp-$(DISTVERSION) fsharp-$(DISTVERSION).tar.bz2
+ mkdir -p fsharp-$(DISTVERSION)
+ (cd $(topdir) && git archive HEAD |(cd $(builddir)fsharp-$(DISTVERSION) && tar xf -))
+ list='$(EXTRA_DIST)'; for s in $$list; do \
+ (cp $(topdir)$$s fsharp-$(DISTVERSION)/$$s) \
+ done;
+ tar cvjf fsharp-$(DISTVERSION).tar.bz2 -C fsharp-$(DISTVERSION) $(patsubst %,--exclude=%, $(NO_DIST)) .
+ du -b fsharp-$(DISTVERSION).tar.bz2
+
23 README
View
@@ -0,0 +1,23 @@
+This is the F# compiler and core library for Mono, based on the F# Powerpack code drop
+under the OSS approved Apache 2.0 license.
+
+The build follows the cli\2.0 and cli\4.0 configuration on the original *.fsproj files included in
+the F# Powerpack code drop, in terms of flags and defines.
+
+To bootstrap the compiler, binaries built on VS2010 are used, as the official binaries
+fail to build due to a possible tail call bug on Mono.
+
+This build is based on F# Powerpack r54075
+
+======= REQUIREMENTS =======
+
+Requires mono 2.8.
+Requires bootstrapping libraries, tools and f# compiler. The lib/bootstrap/X.0 directories contain
+mono-built libraries, compiler and tools that can be used to bootstrap a build. You can also supply
+your own via the --with-bootstrap option.
+
+======= BUILDING =======
+
+To build, run autoreconf to generate a configure script, then run configure and make in
+the usual way.
+
96 config.make.in
View
@@ -0,0 +1,96 @@
+bootstrap := @with_bootstrap@
+prefix := @prefix@
+topdir := @abs_top_srcdir@/
+builddir := @abs_top_builddir@/
+libdir := ${prefix}/lib/
+installdir := ${prefix}/bin/
+monodir := $(libdir)mono/
+libdir2 := $(monodir)2.0/
+libdir35 := $(monodir)3.5/
+libdir4 := $(monodir)4.0/
+tooldir := $(topdir)lib/bootstrap/2.0/
+
+bindir = $(bootstrap)/$(TARGET)/
+tmpdir = .libs/
+objdir = $(tmpdir)$(TARGET)/
+protodir = $(builddir)/lib/proto/$(TARGET)/
+outdir = $(builddir)lib/$(CONFIG)/$(TARGET)/
+
+FSSRGEN := $(tooldir)fssrgen.exe
+FSLEX := $(tooldir)fslex.exe
+FSYACC := $(tooldir)fsyacc.exe
+
+CONFIG := debug
+DISTVERSION := 201011
+
+VERSION_2_0 := 2.0.0.0
+VERSION_4_0 := 4.0.0.0
+TARGET_2_0 := 2.0
+TARGET_4_0 := 4.0
+
+FLAGS = \
+ --doc:$(objdir)$(NAME).xml \
+ --version:$(VERSION) \
+ -g \
+ --mlcompatibility \
+ --noframework \
+ --fullpaths \
+ --times \
+ --nowarn:9
+
+FINAL_FLAGS = \
+ --delaysign+ \
+ --keyfile:$(topdir)msfinal.pub
+
+DEFINES_GENERAL = \
+ --define:NO_STRONG_NAMES \
+ --define:TRACE \
+ --define:FX_ATLEAST_35 \
+ --define:MONO
+
+DEFINES_DEBUG = \
+ --define:CODE_ANALYSIS \
+ --define:DEBUG
+
+DEFINES_2_0 = \
+ $(DEFINES_GENERAL) \
+ $(DEFINES_DEBUG) \
+ --define:FX_FSLIB_STRUCTURAL_EQUALITY \
+ --define:FX_FSLIB_IOBSERVABLE \
+ --define:FX_FSLIB_TUPLE \
+ --define:FX_FSLIB_LAZY
+
+DEFINES_4_0 = \
+ $(DEFINES_GENERAL) \
+ $(DEFINES_DEBUG) \
+ --define:FX_ATLEAST_40
+
+REFERENCES_2_0 = \
+ -r:$(libdir)Microsoft.Build.Engine.dll \
+ -r:$(libdir)Microsoft.Build.Framework.dll \
+ -r:$(libdir35)Microsoft.Build.Tasks.v3.5.dll \
+ -r:$(libdir35)Microsoft.Build.Utilities.v3.5.dll \
+ -r:$(libdir)mscorlib.dll \
+ -r:$(libdir)System.Core.dll \
+ -r:$(libdir)System.dll
+
+REFERENCES_4_0 = \
+ -r:$(libdir)Microsoft.Build.Engine.dll \
+ -r:$(libdir)Microsoft.Build.Framework.dll \
+ -r:$(libdir35)Microsoft.Build.Tasks.v3.5.dll \
+ -r:$(libdir35)Microsoft.Build.Utilities.v3.5.dll \
+ -r:$(libdir)mscorlib.dll \
+ -r:$(libdir)System.Core.dll \
+ -r:$(libdir)System.dll \
+ -r:$(libdir)System.Numerics.dll
+
+INSTALL = $(SHELL) $(topdir)install-sh
+INSTALL_DATA = $(INSTALL) -c -m 644
+INSTALL_BIN = $(INSTALL) -c -m 755
+INSTALL_LIB = $(INSTALL_BIN)
+
+EXTRA_DIST = configure
+NO_DIST = .gitignore lib
+
+DEFAULT: all
+
37 configure.ac
View
@@ -0,0 +1,37 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.65])
+AC_INIT([fsharp], [0.1], [avidigal@novell.com])
+
+# Checks for programs.
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+
+# Checks for header files.
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+
+AC_ARG_WITH([bootstrap],
+ [ --with-bootstrap=<path>],
+ [], [with_bootstrap=lib/bootstrap])
+with_bootstrap=$(cd "$with_bootstrap" && pwd)
+AC_SUBST(with_bootstrap)
+
+AC_CONFIG_FILES([
+launcher
+Makefile
+config.make
+src/fsharp/Makefile
+src/fsharp/FSharp.Build-proto/Makefile
+src/fsharp/FSharp.Compiler-proto/Makefile
+src/fsharp/Fsc-proto/Makefile
+src/fsharp/FSharp.Core/Makefile
+src/fsharp/FSharp.Build/Makefile
+src/fsharp/FSharp.Compiler/Makefile
+src/fsharp/Fsc/Makefile
+])
+AC_OUTPUT
520 install-sh
View
@@ -0,0 +1,520 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2009-04-28.21; # UTC
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dst_arg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix='/';;
+ -*) prefix='./';;
+ *) prefix='';;
+ esac
+
+ eval "$initialize_posix_glob"
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob set -f
+ set fnord $dstdir
+ shift
+ $posix_glob set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test -z "$d" && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
20 launcher.in
View
@@ -0,0 +1,20 @@
+#!/bin/sh
+EXEC="exec "
+
+if test x$1 = x--debug; then
+ DEBUG=--debug
+ shift
+fi
+
+if test x$1 = x--gdb; then
+ shift
+ EXEC="gdb --eval-command=run --args "
+fi
+
+if test x$1 = x--valgrind; then
+ shift
+ EXEC="valgrind $VALGRIND_OPTIONS"
+fi
+
+
+$EXEC mono $DEBUG $MONO_OPTIONS @DIR@/@TOOL@ $@
BIN  mono.snk
View
Binary file not shown
BIN  msfinal.pub
View
Binary file not shown
36 src/fsharp/FSharp.Build-proto/Makefile.in
View
@@ -0,0 +1,36 @@
+NAME=FSharp.Build-proto
+ASSEMBLY = $(NAME).dll
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+CONFIG=proto
+
+FSC=$(bindir)fsc.exe
+
+FLAGS += --target:library
+
+DEFINES += \
+ --define:BUILDING_WITH_LKG
+
+REFERENCES += \
+ -r:$(bindir)FSharp.Core.dll
+
+sources= \
+ $(objdir)FSBuild.fs \
+ ../../utils/CompilerLocationUtils.fs \
+ ../FSharp.Build/CreateFSharpManifestResourceName.fsi \
+ ../FSharp.Build/CreateFSharpManifestResourceName.fs \
+ ../FSharp.Build/Fsc.fsi \
+ ../FSharp.Build/Fsc.fs
+
+RESOURCES = \
+ $(tmpdir)FSBuild.resources
+
+$(tmpdir)FSBuild.resources: $(srcdir)../FSharp.Build/FSBuild.txt
+ mono --debug $(FSSRGEN) $< $(@:.resources=.fs) $(@:.resources=.resx)
+ resgen $(@:.resources=.resx) $@
+
+include $(topdir)/src/fsharp/targets.make
+
34 src/fsharp/FSharp.Build/Makefile.in
View
@@ -0,0 +1,34 @@
+NAME=FSharp.Build
+ASSEMBLY = $(NAME).dll
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+FSC=$(protodir)fsc-proto.exe
+
+FLAGS += \
+ $(FINAL_FLAGS) \
+ --target:library
+
+REFERENCES += \
+ -r:$(outdir)FSharp.Core.dll
+
+sources= \
+ $(tmpdir)FSBuild.fs \
+ ../../assemblyinfo/assemblyinfo.FSharp.Build.dll.fs \
+ ../../utils/CompilerLocationUtils.fs \
+ Fsc.fsi \
+ Fsc.fs \
+ CreateFSharpManifestResourceName.fsi \
+ CreateFSharpManifestResourceName.fs
+
+RESOURCES = \
+ $(tmpdir)FSBuild.resources
+
+$(tmpdir)FSBuild.resources: $(srcdir)FSBuild.txt
+ mono --debug $(FSSRGEN) $< $(@:.resources=.fs) $(@:.resources=.resx)
+ resgen $(@:.resources=.resx) $@
+
+include $(topdir)/src/fsharp/targets.make
+
173 src/fsharp/FSharp.Compiler-proto/Makefile.in
View
@@ -0,0 +1,173 @@
+NAME=FSharp.Compiler-proto
+ASSEMBLY = $(NAME).dll
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+CONFIG=proto
+
+FSC=$(bindir)fsc.exe
+
+FLAGS += --target:library
+
+DEFINES += \
+ --define:BUILDING_WITH_LKG \
+ --define:BUILDING_PROTO \
+ --define:COMPILER \
+ --define:INCLUDE_METADATA_READER \
+ --define:INCLUDE_METADATA_WRITER \
+ --define:TRYING_TO_FIX_4577
+
+REFERENCES += \
+ -r:$(bindir)FSharp.Core.dll \
+ -r:Mono.Security.dll
+
+sources = \
+ $(tmpdir)FSComp.fs \
+ ../../assemblyinfo/assemblyinfo.FSharp.Compiler.dll.fs \
+ ../../utils/sformat.fsi \
+ ../../utils/sformat.fs \
+ ../sr.fsi \
+ ../sr.fs \
+ ../../utils/prim-lexing.fsi \
+ ../../utils/prim-lexing.fs \
+ ../../utils/prim-parsing.fsi \
+ ../../utils/prim-parsing.fs \
+ ../../utils/resizearray.fsi \
+ ../../utils/resizearray.fs \
+ ../../utils/HashMultiMap.fsi \
+ ../../utils/HashMultiMap.fs \
+ ../../utils/TaggedCollections.fsi \
+ ../../utils/TaggedCollections.fs \
+ ../../utils/filename.fsi \
+ ../../utils/filename.fs \
+ ../FlatList.fs \
+ ../../absil/illib.fs \
+ ../../absil/zmap.fsi \
+ ../../absil/zmap.fs \
+ ../../absil/zset.fsi \
+ ../../absil/zset.fs \
+ ../../absil/bytes.fsi \
+ ../../absil/bytes.fs \
+ ../../absil/ildiag.fsi \
+ ../../absil/ildiag.fs \
+ ../ReferenceResolution.fs \
+ ../../absil/il.fsi \
+ ../../absil/il.fs \
+ ../../absil/ilx.fsi \
+ ../../absil/ilx.fs \
+ ../../absil/ilascii.fsi \
+ ../../absil/ilascii.fs \
+ ../../absil/ilprint.fsi \
+ ../../absil/ilprint.fs \
+ ../../absil/ilmorph.fsi \
+ ../../absil/ilmorph.fs \
+ ../../absil/ilsupp.fsi \
+ ../../absil/ilsupp.fs \
+ $(tmpdir)ilpars.fs \
+ $(tmpdir)illex.fs \
+ ../../absil/ilbinary.fsi \
+ ../../absil/ilbinary.fs \
+ ../lib.fs \
+ ../range.fsi \
+ ../range.fs \
+ ../ErrorLogger.fs \
+ ../InternalCollections.fsi \
+ ../InternalCollections.fs \
+ ../../absil/ilread.fsi \
+ ../../absil/ilread.fs \
+ ../../absil/ilwrite.fsi \
+ ../../absil/ilwrite.fs \
+ ../../absil/ilreflect.fs \
+ ../../utils/CompilerLocationUtils.fs \
+ ../PrettyNaming.fs \
+ ../../ilx/ilxsettings.fs \
+ ../../ilx/pubclo.fsi \
+ ../../ilx/pubclo.fs \
+ ../../ilx/cu_erase.fs \
+ ../InternalFileSystemUtils.fsi \
+ ../InternalFileSystemUtils.fs \
+ ../unilex.fsi \
+ ../unilex.fs \
+ ../layout.fsi \
+ ../layout.fs \
+ ../ast.fs \
+ $(tmpdir)pars.fs \
+ ../lexhelp.fsi \
+ ../lexhelp.fs \
+ $(tmpdir)lex.fs \
+ ../sreflect.fsi \
+ ../sreflect.fs \
+ ../QueueList.fs \
+ ../tast.fs \
+ ../env.fs \
+ ../tastops.fsi \
+ ../tastops.fs \
+ ../pickle.fsi \
+ ../pickle.fs \
+ ../lexfilter.fs \
+ ../import.fsi \
+ ../import.fs \
+ ../infos.fs \
+ ../augment.fsi \
+ ../augment.fs \
+ ../typrelns.fs \
+ ../patcompile.fsi \
+ ../patcompile.fs \
+ ../outcome.fsi \
+ ../outcome.fs \
+ ../csolve.fsi \
+ ../csolve.fs \
+ ../formats.fsi \
+ ../formats.fs \
+ ../nameres.fsi \
+ ../nameres.fs \
+ ../unsolved.fs \
+ ../creflect.fsi \
+ ../creflect.fs \
+ ../check.fsi \
+ ../check.fs \
+ ../tc.fsi \
+ ../tc.fs \
+ ../opt.fsi \
+ ../opt.fs \
+ ../detuple.fsi \
+ ../detuple.fs \
+ ../tlr.fsi \
+ ../tlr.fs \
+ ../lowertop.fs \
+ ../ilxgen.fsi \
+ ../ilxgen.fs \
+ ../TraceCall.fs \
+ ../build.fsi \
+ ../build.fs \
+ ../fscopts.fsi \
+ ../fscopts.fs \
+ ../vs/IncrementalBuild.fsi \
+ ../vs/IncrementalBuild.fs
+
+RESOURCES= \
+ $(tmpdir)FSStrings.resources \
+ $(tmpdir)FSComp.resources
+
+$(tmpdir)FSComp.resources: $(srcdir)../FSComp.txt
+ mono --debug $(FSSRGEN) $< $(@:.resources=.fs) $(@:.resources=.resx)
+ resgen $(@:.resources=.resx) $@
+
+$(tmpdir)FSStrings.resources: $(srcdir)../FSStrings.resx
+ resgen $< $@
+
+$(tmpdir)lex.fs: $(srcdir)../lex.fsl
+ mono --debug $(FSLEX) $< -o $@ --lexlib Internal.Utilities.Text.Lexing --unicode
+
+$(tmpdir)illex.fs: $(srcdir)../../absil/illex.fsl
+ mono --debug $(FSLEX) $< -o $@ --lexlib Internal.Utilities.Text.Lexing --unicode
+
+$(tmpdir)pars.fs: $(srcdir)../pars.fsy
+ mono --debug $(FSYACC) $< -o $@ --internal --open Microsoft.FSharp.Compiler --module Microsoft.FSharp.Compiler.Parser --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing
+
+$(tmpdir)ilpars.fs: $(srcdir)../../absil/ilpars.fsy
+ mono --debug $(FSYACC) $< -o $@ --internal --module Microsoft.FSharp.Compiler.AbstractIL.Internal.AsciiParser --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing
+
+include $(topdir)/src/fsharp/targets.make
184 src/fsharp/FSharp.Compiler/Makefile.in
View
@@ -0,0 +1,184 @@
+NAME=FSharp.Compiler
+ASSEMBLY = $(NAME).dll
+SIGN=1
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+FSC=$(protodir)fsc-proto.exe
+
+FLAGS += \
+ $(FINAL_FLAGS) \
+ --target:library
+
+DEFINES += \
+ --define:TRYING_TO_FIX_4577 \
+ --define:COMPILER \
+ --define:INCLUDE_METADATA_READER \
+ --define:INCLUDE_METADATA_WRITER \
+ --define:EXTENSIBLE_DUMPER
+
+REFERENCES += \
+ -r:$(outdir)FSharp.Core.dll \
+ -r:Mono.Security.dll
+
+sources = \
+ $(tmpdir)FSComp.fs \
+ ../../assemblyinfo/assemblyinfo.FSharp.Compiler.dll.fs \
+ ../ExtensibleDumper.fsi \
+ ../ExtensibleDumper.fs \
+ ../../utils/sformat.fsi \
+ ../../utils/sformat.fs \
+ ../sr.fsi \
+ ../sr.fs \
+ ../../utils/prim-lexing.fsi \
+ ../../utils/prim-lexing.fs \
+ ../../utils/prim-parsing.fsi \
+ ../../utils/prim-parsing.fs \
+ ../../utils/resizearray.fsi \
+ ../../utils/resizearray.fs \
+ ../../utils/HashMultiMap.fsi \
+ ../../utils/HashMultiMap.fs \
+ ../../utils/TaggedCollections.fsi \
+ ../../utils/TaggedCollections.fs \
+ ../../utils/filename.fsi \
+ ../../utils/filename.fs \
+ ../FlatList.fs \
+ ../../absil/illib.fs \
+ ../../absil/zmap.fsi \
+ ../../absil/zmap.fs \
+ ../../absil/zset.fsi \
+ ../../absil/zset.fs \
+ ../../absil/bytes.fsi \
+ ../../absil/bytes.fs \
+ ../../absil/ildiag.fsi \
+ ../../absil/ildiag.fs \
+ ../ReferenceResolution.fs \
+ ../../absil/il.fsi \
+ ../../absil/il.fs \
+ ../../absil/ilx.fsi \
+ ../../absil/ilx.fs \
+ ../../absil/ilascii.fsi \
+ ../../absil/ilascii.fs \
+ ../../absil/ilprint.fsi \
+ ../../absil/ilprint.fs \
+ ../../absil/ilmorph.fsi \
+ ../../absil/ilmorph.fs \
+ ../../absil/ilsupp.fsi \
+ ../../absil/ilsupp.fs \
+ $(tmpdir)ilpars.fs \
+ $(tmpdir)illex.fs \
+ ../../absil/ilbinary.fsi \
+ ../../absil/ilbinary.fs \
+ ../lib.fs \
+ ../range.fsi \
+ ../range.fs \
+ ../ErrorLogger.fs \
+ ../InternalCollections.fsi \
+ ../InternalCollections.fs \
+ ../../absil/ilread.fsi \
+ ../../absil/ilread.fs \
+ ../../absil/ilwrite.fsi \
+ ../../absil/ilwrite.fs \
+ ../../absil/ilreflect.fs \
+ ../../utils/CompilerLocationUtils.fs \
+ ../PrettyNaming.fs \
+ ../../ilx/ilxsettings.fs \
+ ../../ilx/pubclo.fsi \
+ ../../ilx/pubclo.fs \
+ ../../ilx/cu_erase.fsi \
+ ../../ilx/cu_erase.fs \
+ ../InternalFileSystemUtils.fsi \
+ ../InternalFileSystemUtils.fs \
+ ../unilex.fsi \
+ ../unilex.fs \
+ ../layout.fsi \
+ ../layout.fs \
+ ../ast.fs \
+ $(tmpdir)pars.fs \
+ ../lexhelp.fsi \
+ ../lexhelp.fs \
+ $(tmpdir)lex.fs \
+ ../sreflect.fsi \
+ ../sreflect.fs \
+ ../QueueList.fs \
+ ../tast.fs \
+ ../env.fs \
+ ../tastops.fsi \
+ ../tastops.fs \
+ ../pickle.fsi \
+ ../pickle.fs \
+ ../lexfilter.fs \
+ ../import.fsi \
+ ../import.fs \
+ ../infos.fs \
+ ../augment.fsi \
+ ../augment.fs \
+ ../outcome.fsi \
+ ../outcome.fs \
+ ../nameres.fsi \
+ ../nameres.fs \
+ ../typrelns.fs \
+ ../patcompile.fsi \
+ ../patcompile.fs \
+ ../csolve.fsi \
+ ../csolve.fs \
+ ../formats.fsi \
+ ../formats.fs \
+ ../unsolved.fs \
+ ../creflect.fsi \
+ ../creflect.fs \
+ ../check.fsi \
+ ../check.fs \
+ ../tc.fsi \
+ ../tc.fs \
+ ../opt.fsi \
+ ../detuple.fsi \
+ ../opt.fs \
+ ../detuple.fs \
+ ../tlr.fsi \
+ ../tlr.fs \
+ ../lowertop.fs \
+ ../ilxgen.fsi \
+ ../ilxgen.fs \
+ ../TraceCall.fs \
+ ../build.fsi \
+ ../build.fs \
+ ../fscopts.fsi \
+ ../fscopts.fs \
+ ../vs/IncrementalBuild.fsi \
+ ../vs/IncrementalBuild.fs \
+ ../vs/Reactor.fsi \
+ ../vs/Reactor.fs \
+ ../vs/service.fsi \
+ ../vs/service.fs
+
+RESOURCES= \
+ $(tmpdir)FSStrings.resources \
+ $(tmpdir)FSComp.resources
+
+$(tmpdir)FSComp.resources: $(srcdir)../FSComp.txt
+ mono --debug $(FSSRGEN) $< $(@:.resources=.fs) $(@:.resources=.resx)
+ resgen $(@:.resources=.resx) $@
+
+$(tmpdir)FSStrings.resources: $(srcdir)../FSStrings.resx
+ resgen $< $@
+
+$(tmpdir)lex.fs: $(srcdir)../lex.fsl
+ mono --debug $(FSLEX) $< -o $@ --lexlib Internal.Utilities.Text.Lexing --unicode
+
+$(tmpdir)illex.fs: $(srcdir)../../absil/illex.fsl
+ mono --debug $(FSLEX) $< -o $@ --lexlib Internal.Utilities.Text.Lexing --unicode
+
+$(tmpdir)pars.fs: $(srcdir)../pars.fsy
+ mono --debug $(FSYACC) $< -o $@ --internal --open Microsoft.FSharp.Compiler --module Microsoft.FSharp.Compiler.Parser --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing
+
+$(tmpdir)ilpars.fs: $(srcdir)../../absil/ilpars.fsy
+ mono --debug $(FSYACC) $< -o $@ --internal --module Microsoft.FSharp.Compiler.AbstractIL.Internal.AsciiParser --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing
+
+include $(topdir)/src/fsharp/targets.make
+
+install: install-lib-2 install-lib-4
+
+
83 src/fsharp/FSharp.Core/Makefile.in
View
@@ -0,0 +1,83 @@
+NAME=FSharp.Core
+ASSEMBLY = $(NAME).dll
+SIGN=1
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+FSC=$(protodir)fsc-proto.exe
+
+FLAGS_2_0 += \
+ $(FINAL_FLAGS) \
+ --target:library \
+ --compiling-fslib
+
+FLAGS_4_0 += \
+ $(FINAL_FLAGS) \
+ $(FLAGS_2_0) \
+ --compiling-fslib-mscorlib40:$(libdir)mscorlib.dll
+
+DEFINES += \
+ --define:RUNTIME
+
+sources = \
+ prim-types-prelude.fsi \
+ prim-types-prelude.fs \
+ SR.fs \
+ prim-types.fsi \
+ prim-types.fs \
+ local.fsi \
+ local.fs \
+ array2.fsi \
+ array2.fs \
+ option.fsi \
+ option.fs \
+ collections.fsi \
+ collections.fs \
+ seq.fsi \
+ seq.fs \
+ string.fsi \
+ string.fs \
+ list.fsi \
+ list.fs \
+ array.fsi \
+ array.fs \
+ array3.fsi \
+ array3.fs \
+ map.fsi \
+ map.fs \
+ set.fsi \
+ set.fs \
+ reflect.fsi \
+ reflect.fs \
+ event.fsi \
+ event.fs \
+ math/n.fsi \
+ math/n.fs \
+ math/z.fsi \
+ math/z.fs \
+ ../../utils/sformat.fsi \
+ ../../utils/sformat.fs \
+ printf.fsi \
+ printf.fs \
+ quotations.fsi \
+ quotations.fs \
+ nativeptr.fsi \
+ nativeptr.fs \
+ control.fsi \
+ control.fs \
+ fslib-extra-pervasives.fsi \
+ fslib-extra-pervasives.fs \
+ ../../assemblyinfo/assemblyinfo.FSharp.Core.dll.fs
+
+RESOURCES = \
+ $(tmpdir)FSCore.resources
+
+$(tmpdir)FSCore.resources: $(srcdir)FSCore.resx
+ resgen $< $@
+
+include $(topdir)/src/fsharp/targets.make
+
+install: install-lib-2 install-lib-4
+
39 src/fsharp/Fsc-proto/Makefile.in
View
@@ -0,0 +1,39 @@
+NAME=fsc-proto
+ASSEMBLY = $(NAME).exe
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+CONFIG=proto
+
+FSC=$(bindir)fsc.exe
+
+FLAGS += --target:exe
+
+DEFINES += \
+ --define:BUILDING_PROTO \
+ --define:BUILDING_WITH_LKG \
+ --define:COMPILER
+
+REFERENCES += \
+ -r:$(bindir)FSharp.Core.dll \
+ -r:$(outdir)FSharp.Compiler-proto.dll \
+ -r:$(libdir)System.Runtime.Remoting.dll \
+ -r:$(libdir)System.Windows.Forms.dll
+
+sources = \
+ $(tmpdir)FSCstrings.fs \
+ ../../utils/filename.fsi \
+ ../../utils/filename.fs \
+ ../fsc.fs \
+ ../fscmain.fs
+
+RESOURCES = \
+ $(tmpdir)FSCstrings.resources
+
+$(tmpdir)FSCstrings.resources: $(srcdir)../FSCstrings.txt
+ mono --debug $(FSSRGEN) $< $(@:.resources=.fs) $(@:.resources=.resx)
+ resgen $(@:.resources=.resx) $@
+
+include $(topdir)/src/fsharp/targets.make
37 src/fsharp/Fsc/Makefile.in
View
@@ -0,0 +1,37 @@
+NAME=fsc
+ASSEMBLY = $(NAME).exe
+SIGN=1
+
+srcdir := @abs_srcdir@/
+
+include @abs_top_builddir@/config.make
+
+FSC=$(protodir)fsc-proto.exe
+
+FLAGS += \
+ $(FINAL_FLAGS) \
+ --target:exe
+
+REFERENCES += \
+ -r:$(outdir)FSharp.Core.dll \
+ -r:$(outdir)FSharp.Compiler.dll \
+ -r:$(libdir)System.Runtime.Remoting.dll \
+ -r:$(libdir)System.Windows.Forms.dll
+
+sources = \
+ $(tmpdir)FSCstrings.fs \
+ ../../assemblyinfo/assemblyinfo.fsc.exe.fs \
+ ../fsc.fs \
+ ../fscmain.fs
+
+RESOURCES = \
+ $(tmpdir)FSCstrings.resources
+
+$(tmpdir)FSCstrings.resources: $(srcdir)../FSCstrings.txt
+ mono --debug $(FSSRGEN) $< $(@:.resources=.fs) $(@:.resources=.resx)
+ resgen $(@:.resources=.resx) $@
+
+include $(topdir)/src/fsharp/targets.make
+
+install: install-bin-2 install-bin-4
+
14 src/fsharp/Makefile.in
View
@@ -0,0 +1,14 @@
+all clean do-2-0 do-4-0 clean-2-0 clean-4-0:
+ $(MAKE) -C FSharp.Build-proto $@
+ $(MAKE) -C FSharp.Compiler-proto $@
+ $(MAKE) -C Fsc-proto $@
+ $(MAKE) -C FSharp.Core $@
+ $(MAKE) -C FSharp.Build $@
+ $(MAKE) -C FSharp.Compiler $@
+ $(MAKE) -C Fsc $@
+
+install:
+ $(MAKE) -C FSharp.Core $@
+ $(MAKE) -C FSharp.Compiler $@
+ $(MAKE) -C Fsc $@
+
103 src/fsharp/targets.make
View
@@ -0,0 +1,103 @@
+SOURCES := $(patsubst $(srcdir)$(tmpdir)%,$(tmpdir)%,$(patsubst %,$(srcdir)%,$(sources)))
+
+.PHONY: install install-bin install-bin-2 install-bin-4 install-lib
+
+all: $(objdir) $(objdir)$(TARGET_2_0) $(objdir)$(TARGET_4_0) do-4-0 do-2-0
+
+install:
+
+clean: clean-4-0 clean-2-0
+
+clean-2-0: TARGET := $(TARGET_2_0)
+clean-2-0:
+ @-rm -f $(tmpdir)*/*
+ @-rm -f $(objdir)*/*
+ @-rm -f $(outdir)$(ASSEMBLY)
+ @-rm -f $(outdir)$(ASSEMBLY).mdb
+ @-rm -f $(outdir)$(NAME).xml
+ @-rm -f $(outdir)$(NAME).sigdata
+ @-rm -f $(outdir)$(NAME).optdata
+
+clean-4-0: TARGET := $(TARGET_4_0)
+clean-4-0:
+ @-rm -f $(tmpdir)*/*
+ @-rm -f $(objdir)*/*
+ @-rm -f $(outdir)$(ASSEMBLY)
+ @-rm -f $(outdir)$(ASSEMBLY).mdb
+ @-rm -f $(outdir)$(NAME).xml
+ @-rm -f $(outdir)$(NAME).sigdata
+ @-rm -f $(outdir)$(NAME).optdata
+
+do-2-0: DEFINES += $(DEFINES_2_0)
+do-2-0: REFERENCES += $(REFERENCES_2_0)
+do-2-0: FLAGS += $(FLAGS_2_0)
+do-2-0: TARGET := $(TARGET_2_0)
+do-2-0: VERSION := $(VERSION_2_0)
+do-2-0: libdir = $(libdir2)
+do-2-0: $(objdir)$(TARGET_2_0)/$(ASSEMBLY)
+ @mkdir -p $(outdir)
+ @cp $(objdir)$(ASSEMBLY) $(outdir)
+ @-cp $(objdir)$(NAME).xml $(outdir)
+ @-cp $(objdir)$(ASSEMBLY).mdb $(outdir)
+ @if test -e $(objdir)$(NAME).sigdata; then \
+ cp $(objdir)$(NAME).sigdata $(outdir); \
+ fi
+ @if test -e $(objdir)$(NAME).optdata; then \
+ cp $(objdir)$(NAME).optdata $(outdir); \
+ fi
+ @if test "x$(SIGN)" = "x1"; \
+ then sn -R $(outdir)$(ASSEMBLY) $(srcdir)../../../mono.snk; \
+ fi
+
+do-4-0: DEFINES += $(DEFINES_4_0)
+do-4-0: REFERENCES += $(REFERENCES_4_0)
+do-4-0: FLAGS += $(FLAGS_4_0)
+do-4-0: TARGET := $(TARGET_4_0)
+do-4-0: VERSION := $(VERSION_4_0)
+do-4-0: libdir = $(libdir4)
+do-4-0: $(objdir)$(TARGET_4_0)/$(ASSEMBLY)
+ @mkdir -p $(outdir)
+ @cp $(objdir)$(ASSEMBLY) $(outdir)
+ @-cp $(objdir)$(NAME).xml $(outdir)
+ @-cp $(objdir)$(ASSEMBLY).mdb $(outdir)
+ @if test -e $(objdir)$(NAME).sigdata; then \
+ cp $(objdir)$(NAME).sigdata $(outdir); \
+ fi
+ @if test -e $(objdir)$(NAME).optdata; then \
+ cp $(objdir)$(NAME).optdata $(outdir); \
+ fi
+ @if test "x$(SIGN)" = "x1"; \
+ then sn -R $(outdir)$(ASSEMBLY) $(srcdir)../../../mono.snk; \
+ fi
+
+install-lib-2: TARGET := $(TARGET_2_0)
+install-lib-2: libdir = $(libdir2)
+install-lib-4: TARGET := $(TARGET_4_0)
+install-lib-4: libdir = $(libdir4)
+install-bin-2: TARGET := $(TARGET_2_0)
+install-bin-2: VERSION := 2
+install-bin-2: libdir = $(libdir2)
+install-bin-4: TARGET := $(TARGET_4_0)
+install-bin-4: libdir = $(libdir4)
+
+install-lib-2 install-lib-4:
+ @echo "Installing $(ASSEMBLY)"
+ @gacutil -i $(outdir)$(ASSEMBLY)
+ @ln -s -f $(monodir)gac/$(NAME)/$(TARGET).0.0__b03f5f7f11d50a3a/$(ASSEMBLY) $(libdir)
+
+do_subst = sed -e 's,[@]DIR[@],$(libdir),g' -e 's,[@]TOOL[@],fsc.exe,g'
+
+install-bin-2 install-bin-4:
+ $(do_subst) < $(topdir)launcher.in > $(outdir)$(NAME)$(VERSION)
+ chmod +x $(outdir)$(NAME)$(VERSION)
+ $(INSTALL_LIB) $(outdir)$(ASSEMBLY) $(libdir)
+ $(INSTALL_BIN) $(outdir)$(NAME)$(VERSION) $(installdir)
+
+$(objdir) $(objdir)$(TARGET_2_0) $(objdir)$(TARGET_4_0):
+ mkdir -p $@
+
+$(objdir)$(TARGET_2_0)/$(ASSEMBLY): $(RESOURCES) $(SOURCES)
+ MONO_PATH=$(bindir) mono $(MONO_OPTIONS) --debug $(FSC) -o:$(objdir)$(ASSEMBLY) $(REFERENCES) $(DEFINES) $(FLAGS) $(patsubst %,--resource:%,$(RESOURCES)) $(SOURCES)
+
+$(objdir)$(TARGET_4_0)/$(ASSEMBLY): $(RESOURCES) $(SOURCES)
+ MONO_PATH=$(bindir) mono $(MONO_OPTIONS) --debug $(FSC) -o:$(objdir)$(ASSEMBLY) $(REFERENCES) $(DEFINES) $(FLAGS) $(patsubst %,--resource:%,$(RESOURCES)) $(SOURCES)
Please sign in to comment.
Something went wrong with that request. Please try again.