|
|
@ -20,6 +20,7 @@ |
|
|
|
# * -DUPB_UNALIGNED_READS_OK: makes code smaller, but not standard compliant
|
|
|
|
# * -DUPB_UNALIGNED_READS_OK: makes code smaller, but not standard compliant
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all lib clean tests test benchmarks benchmark descriptorgen |
|
|
|
.PHONY: all lib clean tests test benchmarks benchmark descriptorgen |
|
|
|
|
|
|
|
.PHONY: clean_leave_profile |
|
|
|
|
|
|
|
|
|
|
|
# Default rule: just build libupb.
|
|
|
|
# Default rule: just build libupb.
|
|
|
|
all: lib |
|
|
|
all: lib |
|
|
@ -110,9 +111,9 @@ ALLSRC=$(CORE) $(STREAM) $(BENCHMARKS_SRC) $(TESTS_SRC) |
|
|
|
|
|
|
|
|
|
|
|
# Rules. #######################################################################
|
|
|
|
# Rules. #######################################################################
|
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean_leave_profile: |
|
|
|
rm -rf $(LIBUPB) $(LIBUPB_PIC)
|
|
|
|
rm -rf $(LIBUPB) $(LIBUPB_PIC)
|
|
|
|
rm -rf $(call rwildcard,,*.o) $(call rwildcard,,*.lo) $(call rwildcard,,*.gcno) $(call rwildcard,,*.dSYM)
|
|
|
|
rm -rf $(call rwildcard,,*.o) $(call rwildcard,,*.lo) $(call rwildcard,,*.dSYM)
|
|
|
|
rm -rf benchmark/google_messages.proto.pb benchmark/google_messages.pb.* benchmarks/b.* benchmarks/*.pb*
|
|
|
|
rm -rf benchmark/google_messages.proto.pb benchmark/google_messages.pb.* benchmarks/b.* benchmarks/*.pb*
|
|
|
|
rm -rf $(TESTS) tests/t.*
|
|
|
|
rm -rf $(TESTS) tests/t.*
|
|
|
|
rm -rf src/descriptor.pb
|
|
|
|
rm -rf src/descriptor.pb
|
|
|
@ -120,6 +121,9 @@ clean: |
|
|
|
rm -rf lang_ext/lua/upb.so
|
|
|
|
rm -rf lang_ext/lua/upb.so
|
|
|
|
cd lang_ext/python && python setup.py clean --all
|
|
|
|
cd lang_ext/python && python setup.py clean --all
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean: clean_leave_profile |
|
|
|
|
|
|
|
rm -rf $(call rwildcard,,*.gcno) $(call rwildcard,,*.gcda)
|
|
|
|
|
|
|
|
|
|
|
|
# Core library (libupb.a).
|
|
|
|
# Core library (libupb.a).
|
|
|
|
SRC=$(CORE) $(STREAM)
|
|
|
|
SRC=$(CORE) $(STREAM)
|
|
|
|
LIBUPB=src/libupb.a
|
|
|
|
LIBUPB=src/libupb.a
|
|
|
|