forked from accord-net/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
110 lines (87 loc) · 2.94 KB
/
Makefile.am
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
SUBDIRS =
DIST_SUBDIRS =
DIR_DEBUG = $(srcdir)/Debug
DIR_RELEASE = $(srcdir)/Release
LIBDIR = $(srcdir)/Release/mono
ACCORD_ASSEMBLY_PC = $(srcdir)/$(PACKAGE_NAME).pc
DIR_TEST = "$(srcdir)/Unit Tests/bin/Release/mono"
NUNIT = "$(srcdir)/Externals/NUnit/nunit-console-x86.exe"
LIBFILES = \
$(LIBDIR)/Accord.Vision.dll \
$(LIBDIR)/Accord.Video.Ximea.dll \
$(LIBDIR)/Accord.Video.VFW.dll \
$(LIBDIR)/Accord.Video.Kinect.dll \
$(LIBDIR)/Accord.Video.dll \
$(LIBDIR)/Accord.Video.DirectShow.dll \
$(LIBDIR)/Accord.Neuro.dll \
$(LIBDIR)/Accord.Math.dll \
$(LIBDIR)/Accord.Math.Core.dll \
$(LIBDIR)/Accord.MachineLearning.dll \
$(LIBDIR)/Accord.IO.dll \
$(LIBDIR)/Accord.DataSets.dll \
$(LIBDIR)/Accord.Imaging.dll \
$(LIBDIR)/Accord.Genetic.dll \
$(LIBDIR)/Accord.Fuzzy.dll \
$(LIBDIR)/Accord.dll \
$(LIBDIR)/Accord.Controls.Vision.dll \
$(LIBDIR)/Accord.Controls.Imaging.dll \
$(LIBDIR)/Accord.Controls.Audio.dll \
$(LIBDIR)/Accord.Audition.dll \
$(LIBDIR)/Accord.Audio.dll
TESTFILES = \
${DIR_TEST}/Accord.Tests.Controls.dll \
${DIR_TEST}/Accord.Tests.Core.dll \
${DIR_TEST}/Accord.Tests.Imaging.dll \
${DIR_TEST}/Accord.Tests.IO.dll \
${DIR_TEST}/Accord.Tests.MachineLearning.dll \
${DIR_TEST}/Accord.Tests.Math.dll \
${DIR_TEST}/Accord.Tests.Neuro.dll \
${DIR_TEST}/Accord.Tests.Vision.dll \
${DIR_TEST}/Accord.Tests.Statistics.dll
# ${DIR_TEST}/Accord.Tests.Audio.dll
DEBUG_FILES = $(addsuffix .mdb, $(LIBFILES))
RELEASE_FILE = $(PACKAGE)-$(VERSION)
#magic automake variables
pkgconfigdir = $(LIBDIR)/pkgconfig
pkgconfig_DATA = $(ACCORD_ASSEMBLY_PC)
#end
# target: all - Default target: build
all: build
# target: help - Display callable targets.
help:
egrep "^# target:" Makefile | sed 's/^# target:/make/'
# target: build - Build Accord.NET Framework
build: Sources/Accord.NET.sln
$(XBUILD) /p:Configuration=Mono Sources/Accord.NET.sln
# target: samples - Build sample applications
samples: Samples/Samples.sln
$(XBUILD) /p:Configuration=Mono /p:Platform=x86 Samples/Samples.sln
# target: docs - Build documentation
docs:
mdoc update --lib=Release/mono/ --out=Docs/monodoc Release/mono/*.dll
mdoc export-html -o htmldocs docfiles
# target: test - Run unit tests
test: build
$(MONO) --runtime=v4.0 ${NUNIT} -noxml -nodots -labels -process=single \
-exclude:Serialization,Intensive,WinForms,Office,MonoNotSupported,Random \
${TESTFILES}
# target: clean - remove all obj and bin directories
clean-local:
rm -rvf $(LIBDIR)/*
rm -rvf $(DIR_RELEASE)/*
rm -rvf $(DIR_DEBUG)/*
find $(srcdir)/ -type d -name obj | xargs rm -rvf
maintainer-clean-local:
rm -rf autom4te.cache
install-exec-local:
mkdir -p $(DESTDIR)$(libdir)/$(PACKAGE)
$(INSTALL_SCRIPT) -t $(DESTDIR)$(libdir)/$(PACKAGE)/ $(LIBFILES)
uninstall-local:
rm -rf $(DESTDIR)$(libdir)/$(PACKAGE)
MAINTAINERCLEANFILES = Makefile.in \
install-sh \
configure \
aclocal.m4 \
missing \
compile
.PHONY: install uninstall cleanbin cleanobj