|
|
|
@ -10,7 +10,7 @@ endif |
|
|
|
|
|
|
|
|
|
.PHONY: clean librocksdb |
|
|
|
|
|
|
|
|
|
all: simple_example column_families_example compact_files_example c_simple_example optimistic_transaction_example transaction_example compaction_filter_example |
|
|
|
|
all: simple_example column_families_example compact_files_example c_simple_example optimistic_transaction_example transaction_example compaction_filter_example options_file_example |
|
|
|
|
|
|
|
|
|
simple_example: librocksdb simple_example.cc |
|
|
|
|
$(CXX) $(CXXFLAGS) $@.cc -o$@ ../librocksdb.a -I../include -O2 -std=c++11 $(PLATFORM_LDFLAGS) $(PLATFORM_CXXFLAGS) $(EXEC_LDFLAGS)
|
|
|
|
@ -40,7 +40,7 @@ options_file_example: librocksdb options_file_example.cc |
|
|
|
|
$(CXX) $(CXXFLAGS) $@.cc -o$@ ../librocksdb.a -I../include -O2 -std=c++11 $(PLATFORM_LDFLAGS) $(PLATFORM_CXXFLAGS) $(EXEC_LDFLAGS)
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
rm -rf ./simple_example ./column_families_example ./compact_files_example ./compaction_filter_example ./c_simple_example c_simple_example.o ./optimistic_transaction_example ./transaction_example
|
|
|
|
|
rm -rf ./simple_example ./column_families_example ./compact_files_example ./compaction_filter_example ./c_simple_example c_simple_example.o ./optimistic_transaction_example ./transaction_example ./options_file_example
|
|
|
|
|
|
|
|
|
|
librocksdb: |
|
|
|
|
cd .. && $(MAKE) static_lib
|
|
|
|
|