OsmAnd/Osmand-kernel/osmand/Makefile

40 lines
1.1 KiB
Makefile
Raw Normal View History

2012-05-31 21:01:27 +02:00
# Include tools definitions
2012-05-15 20:48:06 +02:00
include ../Makefile.vars
2012-05-15 21:32:29 +02:00
2012-05-31 21:01:27 +02:00
# Include project files
LOCAL_PATH = .
include Common.mk
2012-04-30 15:58:02 +02:00
2012-05-31 21:01:27 +02:00
# Set library name
LIBNAME = $(LIBRARY_PREFIX)osmand
LIBTYPE = $(DYNAMICLIB_EXT)
LDLIBS += -l$(LIBRARY_PREFIX)skia -l$(LIBRARY_PREFIX)proto -l$(LIBRARY_PREFIX)pthread -l$(LIBRARY_PREFIX)rt -l$(LIBRARY_PREFIX)ft2 -l$(LIBRARY_PREFIX)expat -l$(LIBRARY_PREFIX)png -l$(LIBRARY_PREFIX)z
2012-05-28 20:56:12 +02:00
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
FIXED_JAVA_HOME := $(shell cygpath -u "$(JAVA_HOME)")
else
FIXED_JAVA_HOME := $(JAVA_HOME)
endif
2012-05-31 21:01:27 +02:00
ifeq ($(JAVA_OS),)
2012-05-28 20:56:12 +02:00
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
2012-05-31 21:01:27 +02:00
JAVA_OS := win32
2012-05-28 20:56:12 +02:00
endif
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
2012-05-31 21:01:27 +02:00
JAVA_OS := win32
2012-05-28 20:56:12 +02:00
endif
endif
2012-05-31 21:01:27 +02:00
ifeq ($(JAVA_OS),)
JAVA_OS := linux
2012-05-28 20:56:12 +02:00
endif
2012-05-31 21:01:27 +02:00
OSMAND_FLAGS = \
2012-04-30 15:58:02 +02:00
-DGOOGLE_PROTOBUF_NO_RTTI \
-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 \
-DSK_RELEASE \
-DGR_RELEASE=1 \
2012-05-31 21:01:27 +02:00
-c -I"$(FIXED_JAVA_HOME)/include" -I"$(FIXED_JAVA_HOME)/include/$(JAVA_OS)" \
-DHASH_MAP_GNU
2012-05-01 01:43:09 +02:00
2012-05-31 21:01:27 +02:00
CFLAGS += $(OSMAND_FLAGS)
CXXFLAGS += $(OSMAND_FLAGS)
2012-04-30 15:58:02 +02:00
2012-05-31 21:01:27 +02:00
# Finally, include generic rules
include ../Makefile.rules