OsmAnd/Osmand-kernel/protobuf/Makefile
2012-05-01 00:30:47 +02:00

21 lines
No EOL
511 B
Makefile

include Common.mk
LIBNAME := libproto.a
PREBUILT_DIR = ../jni-prebuilt/linux-x86/
OBJECTS = $(LOCAL_SRC_FILES:%.cc=build/obj/%.o)
CPPFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI -I.
LDLIBS = -lpthread
target : $(PREBUILT_DIR)/$(LIBNAME)
$(PREBUILT_DIR)/$(LIBNAME) : build/$(LIBNAME)
cp build/$(LIBNAME) $(PREBUILT_DIR)/$(LIBNAME)
build/$(LIBNAME): $(OBJECTS)
ar -rf build/$(LIBNAME) $(OBJECTS)
build/obj/%.o :
@mkdir -p `dirname $@`
$(CXX) -o $@ -c $*.cc $(CPPFLAGS)
clean:
$(RM) $(OBJECTS) build/$(LIBNAME)