-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
66 lines (49 loc) · 1.94 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#=========================================================================
#
# Program: Matlab OpenIGTLink Interface Makefile
# Module: $RCSfile: $
# Language: C++
# Date: $Date: $
# Version: $Revision: $
#
# Copyright (c) Insight Software Consortium. All rights reserved.
#
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the above copyright notices for more information.
#
#=========================================================================
### OpenIGTLink Library
IGTLSRC= /projects/igtdev/tokuda/igtl/OpenIGTLink
IGTLBLD= /projects/igtdev/tokuda/igtl/OpenIGTLink-build
### for Matlab
MEX = /local/os-exact/bin/mex
MEXOPT =
### for Octave
#MEX = /opt/local/bin/mkoctfile
#MEXOPT = --mex
### Headers and libraries
INCDIR = -I${IGTLBLD} -I${IGTLSRC}/Source
LIBDIR = -L${IGTLBLD}/bin
LIB = -lOpenIGTLink
all: igtlsend.mex igtlopen.mex igtlreceive.mex igtlclose.mex igtlwaitcon.mex
igtlopen.mex: igtlopen.cpp igtlMexClientSocket.o igtlMexServerSocket.o igtlMexSocket.o
${MEX} ${MEXOPT} ${INCDIR} ${LIBDIR} ${LIB} $^
igtlsend.mex: igtlsend.cpp igtlMexClientSocket.o igtlMexSocket.o
${MEX} ${MEXOPT} ${INCDIR} ${LIBDIR} ${LIB} $^
igtlreceive.mex: igtlreceive.cpp igtlMexClientSocket.o igtlMexSocket.o
${MEX} ${MEXOPT} ${INCDIR} ${LIBDIR} ${LIB} $^
igtlclose.mex: igtlclose.cpp igtlMexClientSocket.o igtlMexSocket.o
${MEX} ${MEXOPT} ${INCDIR} ${LIBDIR} ${LIB} $^
igtlwaitcon.mex: igtlwaitcon.cpp igtlMexServerSocket.o igtlMexClientSocket.o igtlMexSocket.o
${MEX} ${MEXOPT} ${INCDIR} ${LIBDIR} ${LIB} $^
igtlMexClientSocket.o: igtlMexClientSocket.cpp
${MEX} ${MEXOPT} ${INCDIR} -c $<
igtlMexServerSocket.o: igtlMexServerSocket.cpp
${MEX} ${MEXOPT} ${INCDIR} -c $<
igtlMexSocket.o: igtlMexSocket.cpp
${MEX} ${MEXOPT} ${INCDIR} -c $<
#igtlget.mex: igtlget.cpp
# ${MEX} ${INCDIR} ${LIBDIR} ${LIB} $<
clean:
rm -f *.o *.mex*