OsmAnd/Osmand-kernel/expat/Makefile

25 lines
712 B
Makefile
Raw Normal View History

2012-05-28 19:19:39 +02:00
LOCAL_PATH = .
include ../Makefile.vars
include Common.mk
CPP_FILE_EXTENSION = c
LIBNAME := libexpat.a
2012-05-28 20:56:12 +02:00
PREBUILT_DIR = ../jni-prebuilt/$(os)-$(arch)
2012-05-28 19:19:39 +02:00
OBJECTS = $(LOCAL_SRC_FILES:%.$(CPP_FILE_EXTENSION)=build/obj-$(os)-$(arch)/%.o)
2012-05-28 20:56:12 +02:00
CPPFLAGS = $(LOCAL_CFLAGS) $(C_INCLUDES) $(CPP_OS_FLAGS) -Iexpat_library
2012-05-28 19:19:39 +02:00
target : $(PREBUILT_DIR)/$(LIBNAME)
$(PREBUILT_DIR)/$(LIBNAME) : build/$(LIBNAME)
2012-05-28 20:56:12 +02:00
mkdir -p $(PREBUILT_DIR)
cp build/$(LIBNAME) $(PREBUILT_DIR)
2012-05-28 19:19:39 +02:00
build/$(LIBNAME): $(OBJECTS)
ar -rf build/$(LIBNAME) $(OBJECTS)
build/obj-$(os)-$(arch)/%.o : %.$(CPP_FILE_EXTENSION) $(LOCAL_C_INCLUDES)
@mkdir -p `dirname $@`
$(CXX) -o $@ -c $*.$(CPP_FILE_EXTENSION) $(CPPFLAGS)
clean:
$(RM) $(OBJECTS) build/$(LIBNAME)