File: makefile.msvc

package info (click to toggle)
libfann 2.1.0~beta~dfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,692 kB
  • sloc: sh: 8,712; ansic: 5,994; cpp: 2,351; makefile: 525; python: 448; perl: 243; sed: 7
file content (23 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This makefile was written to compile a distribution of pyfann for
# Microsoft Visual C++. 

TARGETS = _libfann.pyd

PYTHON=python2.3

PYDIR=C:/Python23
OBJS=libfann_wrap.obj fann_helper.obj

all: $(TARGETS)

_libfann.pyd: $(OBJS)
	link /LIBPATH:$(PYDIR)/libs /DLL /OUT:$@ $(OBJS) ../../src/fann*.obj python23.lib

.c.obj:
	cl -c $< -I $(PYDIR)/include -I ../../src/include

libfann_wrap.c: libfann.i
	swig -python libfann.i

clean:
	del -f $(TARGETS) *_wrap.* fann_helper.obj fann.pyc libfann.py _libfann.*