Debian Codegraph @

biosig4c++/mma/Makefile.win32

raw
1 # Makefile to compile sload.exe for loading data supported by libbiosig into Mathematica
2 # Copyright (C) 2010, 2011 Alois Schloegl
3
4 ###########################################
5 # user-defined variables
6 ###########################################
7 MLINKDIR = C:/Program\ Files/Wolfram\ Research/Mathematica/7.0/SystemFiles/Links/MathLink/DeveloperKit
8 SYS = Windows# Set this value with the result of evaluating $SystemID
9 MLLIB = ml32i3m # Set this to ML64i3 if using a 64-bit system
10 ###########################################
11
12
13 CC = g++
14 RM = rm
15 CADDSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions/mldev32
16 INCDIR = ${CADDSDIR}/include
17 LIBDIR = ${CADDSDIR}/lib
18
19 EXTRALIBS = -mwindows -lm -lpthread -lstdc++ -L.. -lbiosig -lws2_32 # -lcholmod -lz #Set these with appropriate libs for your system.
20
21 MPREP = ${CADDSDIR}/bin/mprep.exe
22
23 all : sload.exe
24
25 win win32 :
26 $(MAKE) -f Makefile.win32
27
28 ../libbiosig.a:
29 $(MAKE) -C .. -f Makefile.win32 libbiosig.a
30
31 .c.o :
32 ${CC} -c -I${INCDIR} $<
33
34 sloadtm.c : sload.tm
35 ${MPREP} $? -o $@
36
37 sload.exe : sload.o sloadtm.o ../libbiosig.a
38 ${CC} sloadtm.o sload.o -static-libgcc -static-libstdc++ -L${LIBDIR} -l${MLLIB} ${EXTRALIBS} -o $@
39
40 clean:
41 -$(RM) *.o
42 -$(RM) *.obj
43 -$(RM) *tm.c
44 -$(RM) sload
45 -$(RM) sload.exe
46