-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
34 lines (26 loc) · 804 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
#
# Simple makefile for file latency test program
#
# fs_mark.c is a modified version of Larry McVoy's lmbench program.
#
# Modifications include using fsync after wrting to flush to disk and changes to check return
# values from syscalls.
#
DIR1= /test/dir1
DIR2= /test/dir2
COBJS= fs_mark.o lib_timing.o
CC ?= gcc
CFLAGS ?= -O2
LDFLAGS ?=
CFLAGS += -Wall -D_FILE_OFFSET_BITS=64
all: fs_mark
fs_mark.o: fs_mark.c fs_mark.h
fs_mark: fs_mark.o lib_timing.o
$(CC) $(CFLAGS) -o fs_mark fs_mark.o lib_timing.o $(LDFLAGS)
test: fs_mark
./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096
./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096 -r
./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096 -D 128
./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096 -r -D 128
clean:
rm -f ${COBJS} fs_mark fs_log.txt