2019-11-16 02:12:27 +03:00
|
|
|
BLOCKSTORE_OBJS := allocator.o blockstore.o blockstore_init.o blockstore_open.o blockstore_journal.o blockstore_read.o \
|
2019-11-26 02:18:37 +03:00
|
|
|
blockstore_write.o blockstore_sync.o blockstore_stable.o blockstore_flush.o crc32c.o ringloop.o timerfd_interval.o
|
2019-11-26 00:02:54 +03:00
|
|
|
all: $(BLOCKSTORE_OBJS) test test_blockstore libfio_blockstore.so
|
2019-11-05 14:10:23 +03:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2019-11-04 01:42:40 +03:00
|
|
|
crc32c.o: crc32c.c
|
2019-11-26 00:02:54 +03:00
|
|
|
g++ -fPIC -c -o $@ $<
|
2019-11-26 02:18:37 +03:00
|
|
|
%.o: %.cpp allocator.h blockstore_flush.h blockstore.h blockstore_init.h blockstore_journal.h crc32c.h ringloop.h xor.h timerfd_interval.h
|
2019-11-26 00:02:54 +03:00
|
|
|
g++ -g -Wall -Wno-sign-compare -Wno-parentheses -fPIC -c -o $@ $<
|
2019-11-03 01:34:29 +03:00
|
|
|
test: test.cpp
|
2019-11-16 02:12:27 +03:00
|
|
|
g++ -g -O3 -o test -luring test.cpp
|
|
|
|
test_blockstore: $(BLOCKSTORE_OBJS) test_blockstore.cpp
|
|
|
|
g++ -g -o test_blockstore -luring test_blockstore.cpp $(BLOCKSTORE_OBJS)
|
2019-11-26 00:02:54 +03:00
|
|
|
libfio_blockstore.so: fio_engine.cpp $(BLOCKSTORE_OBJS)
|
2019-11-26 02:18:37 +03:00
|
|
|
g++ -g -Wno-pointer-arith -fPIC -shared -luring -o libfio_blockstore.so fio_engine.cpp $(BLOCKSTORE_OBJS)
|