-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
49 lines (37 loc) · 1.19 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#--------------------------------------------------------------------------
# Copyrights
#
# Portions created by or assigned to Cursive Systems, Inc. are
# Copyright (c) 2002-2004 Cursive Systems, Inc. All Rights Reserved. Contact
# information for Cursive Systems, Inc. is available at
# http://www.cursive.net/.
#
# License
#
# Jabber-Net can be used under either JOSL or the GPL.
# See LICENSE.txt for details.
# --------------------------------------------------------------------------
# The purpose of this Makefile is to facilitate mono builds.
BASEDIR:=$(shell pwd)
SOURCES = \
$(BASEDIR)/AssemblyInfo.cs \
$(BASEDIR)/Main.cs
ASSEMBLIES = -r:jabber-net.dll
RESOURCES =
SYSTEM_REFERENCES = -r:System.dll -r:System.Xml.dll
OUTDIR = $(BASEDIR)/bin/debug
MCS=gmcs
MCS_OPTIONS = -lib:$(OUTDIR) -debug -define:DEBUG
OUTFILE = $(OUTDIR)/console-client.exe
JNDLL = $(BASEDIR)/../bin/debug/jabber-net.dll
all: $(OUTFILE)
$(OUTDIR):
mkdir -p $(OUTDIR)
$(OUTFILE): $(OUTDIR) $(SOURCES) $(JNDLL)
cp -f $(JNDLL) $(OUTDIR)
cp -f $(BASEDIR)/../lib20/*.dll $(OUTDIR)
$(MCS) $(MCS_OPTIONS) -target:exe \
-out:$(OUTFILE) $(RESOURCES) $(SYSTEM_REFERENCES) $(ASSEMBLIES) \
$(SOURCES)
clean:
$(RM) -r bin