aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.msvc
blob: faaa93ab86f60f2dfd491a690ef0e26ea090e8ef (plain)
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
# to compile ann fann libs are needed
# go to http://fann.sourceforge.net/
# current is http://prdownloads.sourceforge.net/fann/fann-1.2.0.zip?download
# go to MSVC++ folder and open all.dsw
# compile everything

# customize here !
VC="C:\Programmi\Microsoft Visual Studio .NET\Vc7" 
PDPATH="H:\PureData\pd-0.38-3.msw\pd"
FANNSRC="H:\PureData\FANN\fann-1.2.0\fann-1.2.0\src\include"
FANNLIB="H:\PureData\FANN\fann-1.2.0\fann-1.2.0\MSVC++\Release"


current: clean pd_nt

pd_nt: ann_som.dll ann_mlp.dll ann_td.dll ann.dll 

.SUFFIXES: .dll

PDNTCFLAGS = /W3 /WX /O2 /G6 /DNT /DPD /nologo


PDNTINCLUDE = /I. /I$(PDPATH)\tcl\include /I$(PDPATH)\src /I$(PDPATH)\flext /I$(VC)\include /I$(FANNSRC) /Iinclude

PDNTLDIR = $(VC)\Lib
PDNTLIB = $(PDNTLDIR)\libc.lib \
	$(PDNTLDIR)\oldnames.lib \
	$(PDNTLDIR)\kernel32.lib \
	$(PDPATH)\bin\pd.lib \
	$(FANNLIB)\libfann.lib

.c.dll:
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
	link /dll /export:$*_setup $*.obj $(PDNTLIB)
	-del *.obj
	-del *.lib
	-del *.exp

#install:
#	copy help-*.pd $(PDPATH)/doc/5.reference/

clean:
	-del link.stamp
	-del *.obj
	-del *.lib
	-del *.exp
	-del *.dll