OsmAnd/Osmand-kernel/freetype/Makefile

26 lines
731 B
Makefile
Raw Normal View History

2012-05-01 01:43:09 +02:00
LOCAL_PATH = .
2012-05-15 21:32:29 +02:00
include ../Makefile.vars
2012-05-01 01:43:09 +02:00
include Common.mk
CPP_FILE_EXTENSION = c
LIBNAME := libft2.a
2012-05-28 20:56:12 +02:00
PREBUILT_DIR = ../jni-prebuilt/$(os)-$(arch)
2012-05-15 20:48:06 +02:00
OBJECTS = $(LOCAL_SRC_FILES:%.$(CPP_FILE_EXTENSION)=build/obj-$(os)-$(arch)/%.o)
2012-05-01 01:43:09 +02:00
C_INCLUDES := $(addprefix -I, $(LOCAL_C_INCLUDES))
CPPFLAGS = $(LOCAL_CFLAGS) $(C_INCLUDES)
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-01 01:43:09 +02:00
build/$(LIBNAME): $(OBJECTS)
ar -rf build/$(LIBNAME) $(OBJECTS)
2012-05-15 20:48:06 +02:00
build/obj-$(os)-$(arch)/%.o : %.$(CPP_FILE_EXTENSION) $(LOCAL_C_INCLUDES)
2012-05-01 01:43:09 +02:00
@mkdir -p `dirname $@`
$(CXX) -o $@ -c $*.$(CPP_FILE_EXTENSION) $(CPPFLAGS)
clean:
$(RM) $(OBJECTS) build/$(LIBNAME)