1 # This file in metis was modified by Kavitha Chandrasekar at UIUC
2 # to skip ./configure step and directly make the metis library
4 # Configuration options.
17 # Basically proxies everything to the builddir cmake.
19 cputype
= $(shell uname
-m | sed
"s/\\ /_/g")
20 systype
= $(shell uname
-s
)
22 BUILDDIR
= build
/$(systype
)-$(cputype
)
24 # Process configuration options.
25 CONFIG_FLAGS
= -DCMAKE_VERBOSE_MAKEFILE
=1
26 ifeq ($(gklib_path
), not-set
)
29 CONFIG_FLAGS
+= -DGKLIB_PATH
=$(abspath
$(gklib_path
))
30 ifneq ($(gdb
), not-set
)
31 CONFIG_FLAGS
+= -DGDB
=$(gdb
)
33 ifneq ($(assert
), not-set
)
34 CONFIG_FLAGS
+= -DASSERT
=$(assert
)
36 ifneq ($(assert2
), not-set
)
37 CONFIG_FLAGS
+= -DASSERT2
=$(assert2
)
39 ifneq ($(debug
), not-set
)
40 CONFIG_FLAGS
+= -DDEBUG
=$(debug
)
42 ifneq ($(gprof
), not-set
)
43 CONFIG_FLAGS
+= -DGPROF
=$(gprof
)
45 ifneq ($(openmp
), not-set
)
46 CONFIG_FLAGS
+= -DOPENMP
=$(openmp
)
48 ifneq ($(prefix), not-set
)
49 CONFIG_FLAGS
+= -DCMAKE_INSTALL_PREFIX
=$(prefix)
51 ifneq ($(shared
), not-set
)
52 CONFIG_FLAGS
+= -DSHARED
=1
54 ifneq ($(cc), not-set
)
55 CONFIG_FLAGS
+= -DCMAKE_C_COMPILER
=$(cc)
59 PKGNAME
=metis-
$(VERNUM
)
63 cd
$(BUILDDIR
) && cmake
$(CURDIR
) $(CONFIG_FLAGS
)
71 xargs
rm < $(BUILDDIR
)/install_manifest.txt
80 find .
-name CMakeLists.txt
-exec touch
{} ';'
83 utils
/mkdist.sh
$(PKGNAME
)
85 .PHONY
: config
distclean all clean install uninstall remake
dist