OsmAnd/Osmand-kernel/protobuf/Makefile

16 lines
330 B
Makefile
Raw Normal View History

2012-04-30 22:34:50 +02:00
include Common.mk
LIBNAME := build/libproto.a
OBJECTS = $(LOCAL_SRC_FILES:%.cc=build/obj/%.o)
CPPFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI -I.
LDLIBS = -lpthread
LDFLAGS = -shared
$(LIBNAME): $(OBJECTS)
ar -rf $(LIBNAME) $(OBJECTS)
build/obj/%.o :
@mkdir -p `dirname $@`
$(CXX) -o $@ -c $*.cc $(CPPFLAGS)
clean:
$(RM) $(OBJECTS)