Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (51 sloc) 2.602 kb
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
1 #
2 # Copyright (c) 2004-2010 Jaroslaw Kowalski <jaak@jkowalski.net>
3 #
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 #
10 # * Redistributions of source code must retain the above copyright notice,
11 # this list of conditions and the following disclaimer.
12 #
13 # * Redistributions in binary form must reproduce the above copyright notice,
14 # this list of conditions and the following disclaimer in the documentation
15 # and/or other materials provided with the distribution.
16 #
17 # * Neither the name of Jaroslaw Kowalski nor the names of its
18 # contributors may be used to endorse or promote products derived from this
19 # software without specific prior written permission.
20 #
21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 # THE POSSIBILITY OF SUCH DAMAGE.
32 #
33
d6a87ec @jkowalski removed old tools to support Mono
authored
34 CONFIG=Debug
35 TOOLS=build/bin/Tools
36 OUTPUT_DIR=build/bin/$(CONFIG)/Mono\ 2.x
37 MONO_LIB_DIR=$(shell pkg-config --variable=libdir mono)/mono/4.0
38 XBUILD=xbuild /nologo
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
39
d6a87ec @jkowalski removed old tools to support Mono
authored
40 buildnlog:
41 $(XBUILD) src/NLog.Extended/NLog.Extended.monodevelop.csproj /p:Configuration=$(CONFIG)
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
42
d6a87ec @jkowalski removed old tools to support Mono
authored
43 buildtests:
44 $(XBUILD) tests/NLog.UnitTests/NLog.UnitTests.monodevelop.csproj /p:Configuration=$(CONFIG)
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
45
d6a87ec @jkowalski removed old tools to support Mono
authored
46 makexsdtool:
47 $(XBUILD) tools/MakeNLogXSD/MakeNLogXSD.csproj /p:Configuration=$(CONFIG)
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
48
d6a87ec @jkowalski removed old tools to support Mono
authored
49 dumpapitool:
50 $(XBUILD) tools/DumpApiXml/DumpApiXml.csproj /p:Configuration=$(CONFIG)
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
51
d6a87ec @jkowalski removed old tools to support Mono
authored
52 dumpapi: dumpapitool buildnlog
53 (cd $(OUTPUT_DIR) && mono ../../Tools/DumpApiXml.exe -comments NLog.xml -assembly NLog.dll -assembly NLog.Extended.dll -ref $(MONO_LIB_DIR) -output API/NLog.api)
63d61cf @jkowalski added Makefile for building and running tests on Unix
authored
54
d6a87ec @jkowalski removed old tools to support Mono
authored
55 xsd: makexsdtool
56 (cd $(OUTPUT_DIR) && mono ../../Tools/MakeNLogXSD.exe -api API/NLog.api -out NLog.mono2.xsd -xmlns http://www.nlog-project.org/schemas/NLog.mono2.xsd)
508c459 @jkowalski Fixed build warnings and several unit tests on Mono/Unix.
authored
57
58 runtests: buildtests
59 (cd $(OUTPUT_DIR) && nunit-console -labels NLog.UnitTests.dll)
Something went wrong with that request. Please try again.