-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
executable file
·42 lines (34 loc) · 1.1 KB
/
Makefile
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
############################################################################
#
# Program: ButterflyPACK
#
# Module: Makefile
#
# Purpose: Top-level Makefile
#
# Creation date: January 9, 2019 version 1.0.0
#
# Modified: January 9, 2019 version 1.0.0
#
############################################################################
include make.inc
all: lib install example
install:: lib
( cd SRC_DOUBLE; $(MAKE) )
( cd SRC_DOUBLECOMPLEX; $(MAKE) )
( cp $(DButterflyPACKLIB) build/lib; cp $(ZButterflyPACKLIB) build/lib)
( cp SRC_DOUBLE/*.h build/include; cp SRC_DOUBLECOMPLEX/*.h build/include)
example: lib
( cd EXAMPLE; $(MAKE) )
clean: cleanlib cleanex
lib:
( mkdir -p build; cd build; mkdir -p lib; mkdir -p include; mkdir -p SRC_DOUBLE; mkdir -p SRC_DOUBLECOMPLEX)
( bash $(PREPROC))
( cd SRC_DOUBLE; $(MAKE) )
( cd SRC_DOUBLECOMPLEX; $(MAKE) )
cleanlib:
( cd SRC_DOUBLE; $(MAKE) clean )
( cd SRC_DOUBLECOMPLEX; $(MAKE) clean )
( rm -rf build/lib; rm -rf build/include; rm -rf build/SRC_DOUBLE; rm -rf build/SRC_DOUBLECOMPLEX)
cleanex:
( cd EXAMPLE; $(MAKE) clean )