2018-03-10 15:46:10 +00:00
|
|
|
PARQUET_CPP=~/src/parquet-cpp
|
|
|
|
|
|
|
|
CC = g++
|
|
|
|
# odd, no -lz -ldl -lpthread needed?
|
|
|
|
CFLAGS = -I ../sqlite -O3 -std=c++11 -Wall -fPIC -g
|
|
|
|
PARQUET_LIB = $(PARQUET_CPP)/build/release/libparquet.a
|
|
|
|
THRIFT_LIB = $(PARQUET_CPP)/thrift_ep/src/thrift_ep-install/lib/libthrift.a
|
2018-03-15 23:57:38 +00:00
|
|
|
ARROW_LIB = /usr/local/lib/libarrow.so
|
2018-03-10 15:46:10 +00:00
|
|
|
BOOST_LIB = /usr/lib/x86_64-linux-gnu/libboost_regex.so
|
|
|
|
|
|
|
|
LDFLAGS = -O3 $(PARQUET_LIB) $(THRIFT_LIB) $(ARROW_LIB) $(BOOST_LIB)
|
2018-03-11 17:58:10 +00:00
|
|
|
OBJ = parquet.o parquet_filter.o parquet_table.o parquet_cursor.o
|
2018-03-10 15:46:10 +00:00
|
|
|
|
|
|
|
libparquet.so: $(OBJ)
|
|
|
|
$(CC) -shared -o $@ $^ $(LDFLAGS)
|
|
|
|
|
2018-03-11 17:58:10 +00:00
|
|
|
parquet_filter.o: parquet_filter.cc parquet_filter.h
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
parquet_cursor.o: parquet_cursor.cc parquet_cursor.h parquet_table.h parquet_filter.h
|
2018-03-10 15:46:10 +00:00
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
parquet_table.o: parquet_table.cc parquet_table.h
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2018-03-11 17:58:10 +00:00
|
|
|
parquet.o: parquet.cc parquet_cursor.h parquet_table.h parquet_filter.h
|
2018-03-10 15:46:10 +00:00
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.so
|