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
|
#
# 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.
#
COBJS= fs_mark.o lib_timing.o
CFLAGS+= -O2 -Wall -D_FILE_OFFSET_BITS=64
BIN=$(DESTDIR)/usr/bin
all: fs_mark
fs_mark.o: fs_mark.c fs_mark.h
fs_mark: fs_mark.o lib_timing.o
${CC} ${CFLAGS} ${LDFLAGS} -o fs_mark fs_mark.o lib_timing.o
install:
install -d $(BIN)
install ./fs_mark $(BIN)
clean:
rm -f ${COBJS} fs_mark fs_log.txt
|