-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
50 lines (39 loc) · 832 Bytes
/
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
43
44
45
46
47
48
49
50
CC = g++#/usr/local/gcc-4.7.4/bin/g++4.7.4
CFLAGS += -fopenmp -std=c++0x
LKFLAGS +=
LIBS =
LD_DIR = #-Wl,-rpath#,/usr/local/gcc-4.7.4/lib64/
INSTALL_DIR=../bin/
SUB_DIR1 = build
SUB_DIR2 = algorithm
SUB_DIR3 = tools
SHELL_DIR = sh
SUB_DIR = $(SUB_DIR1) $(SUB_DIR2) $(SUB_DIR3)
all: CHECK_DIR $(SUB_DIR)
CHECK_DIR:
mkdir -p $(INSTALL_DIR)
ECHO:
@echo $(SUB_DIR)
$(SUB_DIR): ECHO
make -j16 -C $@
compare:
make compare -j16 -C $(SUB_DIR2)
compare_install:
make compare
make compare_install -s -C $(SUB_DIR2)
install:
make
make install -s -C $(SUB_DIR1)
make install -s -C $(SUB_DIR2)
make install -s -C $(SUB_DIR3)
cp $(SHELL_DIR)/* $(INSTALL_DIR)
remake:
make clean
make
reinstall:
make remake
make install
clean:
make clean -s -C $(SUB_DIR1)
make clean -s -C $(SUB_DIR2)
make clean -s -C $(SUB_DIR3)