-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile.POSIX
40 lines (34 loc) · 1.15 KB
/
Makefile.POSIX
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
.POSIX:
PROGS= s3 lbs-s3 lbs kvlds mux
BENCH= bench/mkpairs bench/bulk_insert bench/bulk_update \
bench/bulk_extract bench/hotspot_read bench/random_read \
bench/random_mixed
BINDIR_DEFAULT= /usr/local/bin
CFLAGS_DEFAULT= -O2
all:
export CFLAGS=$${CFLAGS:-${CFLAGS_DEFAULT}} \
export LDADD_POSIX=`export CC=${CC}; cd libcperciva/POSIX && command -p sh posix-l.sh "$$PATH"`; \
export CFLAGS_POSIX=`export CC=${CC}; cd libcperciva/POSIX && command -p sh posix-cflags.sh "$$PATH"`; \
for D in ${PROGS}; do \
( cd $${D} && make all ) || exit 2; \
done
install: all
export BINDIR=$${BINDIR:-${BINDIR_DEFAULT}} \
for D in ${PROGS}; do \
( cd $${D} && make install ) || exit 2; \
done
all-bench:
export CFLAGS=$${CFLAGS:-${CFLAGS_DEFAULT}} \
export LDADD_POSIX=`export CC=${CC}; cd libcperciva/POSIX && command -p sh posix-l.sh`; \
for D in ${BENCH}; do \
( cd $${D} && make all ) || exit 2; \
done
install-bench: all-bench
export BINDIR=$${BINDIR:-${BINDIR_DEFAULT}} \
for D in ${BENCH}; do \
( cd $${D} && make install ) || exit 2; \
done
clean:
for D in ${PROGS} ${BENCH}; do \
( cd $${D} && make clean ) || exit 2; \
done