forked from mdhim/mdhim-tng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.cfg~
33 lines (29 loc) · 990 Bytes
/
Makefile.cfg~
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
#Configure your options here
#To avoid implict declarations use --std=gnu99 instead of --std=c99
MPI_ROOT = /usr/local
LEVEL_DB_ROOT = /users/hng/leveldb-1.14.0
ROCKS_DB_ROOT = /users/hng/rocksdb-2.6.fb
MYSQL_DB_ROOT = /usr/include/mysql
LEVELDB = 1
ROCKSDB = 0
MYSQLDB = 0
CC = mpicc -g -O0 -Wall
#You shouldn't have to modify anything below
CLIBS = -L$(MPI_ROOT)/lib
CINC = -I$(MPI_ROOT)/include -IMlog/ -Iuthash
CFLAGS = -lmpich -lmdhim -lm -lpthread -lstdc++
ifeq ($(LEVELDB),1)
CLIBS += -L$(LEVEL_DB_ROOT) -DLEVELDB_SUPPORT
CINC += -I$(LEVEL_DB_ROOT)/include
CFLAGS += -L$(LEVEL_DB_ROOT) $(LEVEL_DB_ROOT)/libleveldb.a
endif
ifeq ($(ROCKSDB),1)
CLIBS += -L$(ROCKS_DB_ROOT) -DROCKSDB_SUPPORT
CINC += -I$(ROCKS_DB_ROOT)/include
CFLAGS += -lsnappy -lbz2 $(ROCKS_DB_ROOT)/librocksdb.a
endif
ifeq ($(MYSQLDB),1)
CLIBS += -L/usr/lib/mysql -DMYSQLDB_SUPPORT
CINC += -I/usr/include/mysql
CFLAGS += `mysql_config --cflags --libs` --std=gnu99
endif