source: inundation/pymetis/Makefile @ 2806

Last change on this file since 2806 was 2806, checked in by jack, 19 years ago

Update to use long as the index type. Needs verification on 32-bit
machines.

File size: 1.0 KB
RevLine 
[2051]1###
2# PyMetis Makefile
3#
4
5###
6# Config
7#
8
9METIS_DIR = metis-4.0
10
11###
12# Build
13#
14
15pymetis: metis pymetis_module
16
[2806]17metis: patched
[2051]18        make -C $(METIS_DIR)
19
20pymetis_module:
21        (cd pymetis; METIS_DIR=$(METIS_DIR) python setup.py build; ./get_module)
22
[2098]23for_win32: metis_win32 pymetis_module_win32
[2085]24
[2806]25metis_win32: patched
[2098]26        make -C win32 METIS_DIR=$(METIS_DIR)
27########make -C $(METIS_DIR)/Lib is implied by make -C win32
28        make -C $(METIS_DIR)/Programs
29        make -C $(METIS_DIR)/Test
30
31pymetis_module_win32:
32        (cd pymetis; METIS_DIR=$(METIS_DIR) python setup.py build --compiler=mingw32; ./get_module)
33
[2051]34###
[2806]35# Patch the metis sources to use long as the idxtype
36# (for x86_64 mainly, but this allows a drop-in of the metis dir.)
37#
38patched:
39        patch -p0<long_idxtype.patch
40        touch patched
41
42###
[2051]43# Clean
44#
45clean:
46        make -C $(METIS_DIR) clean
[2098]47        make -C win32 clean
[2051]48        -(cd pymetis; rm -rf build)
49        -(cd pymetis; rm *~)
50        -rm *~
51
52realclean: clean
53        make -C $(METIS_DIR) realclean
[2115]54        -rm -f metis.so
55        -rm -f metis.pyd
[2806]56        patch -p0 -R<long_idxtype.patch
57        -rm -f patched
Note: See TracBrowser for help on using the repository browser.