mirror of
https://github.com/esp8266/Arduino.git
synced 2025-10-16 22:27:59 +03:00
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@78 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
#
|
|
# Copyright(C) 2006 Cameron Rich
|
|
#
|
|
# This library is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
|
|
ifneq ($(MAKECMDGOALS), clean)
|
|
|
|
ifdef CONFIG_PLATFORM_WIN32
|
|
GO_DOT_NET=y
|
|
endif
|
|
|
|
ifdef CONFIG_PLATFORM_CYGWIN
|
|
GO_DOT_NET=y
|
|
endif
|
|
|
|
ifdef GO_DOT_NET
|
|
all: test_dot_net_location
|
|
|
|
# find out where the C# compiler is
|
|
CONFIG_DOT_NET_FRAMEWORK_BASE:=$(shell cygpath -u $(CONFIG_DOT_NET_FRAMEWORK_BASE))
|
|
|
|
test_dot_net_location:
|
|
@if ! [ -d "$(CONFIG_DOT_NET_FRAMEWORK_BASE)" ]; then \
|
|
echo "*** Error: .NET path of $(CONFIG_DOT_NET_FRAMEWORK_BASE) doesn't exist" && exit 1; \
|
|
fi
|
|
|
|
PATH:=$(CONFIG_DOT_NET_FRAMEWORK_BASE):$(PATH)
|
|
|
|
else # Linux?
|
|
all: test_mcs
|
|
|
|
test_mcs:
|
|
@if ! mcs --about > /dev/null 2>&1; then \
|
|
echo "Mono not installed! - go " \
|
|
"to http://www.mono-project.com/Main_Page" && exit 1; \
|
|
fi
|
|
|
|
endif # Linux
|
|
|
|
endif # not 'clean'
|