OsmAnd/Osmand-kernel/Makefile.vars

54 lines
1.2 KiB
Text
Raw Normal View History

2012-05-15 20:48:06 +02:00
ifndef JAVA_HOME
$(error Set JAVA_HOME environment variable)
endif
arch := x86
ifeq ($(os),)
ifeq ($(shell uname),Darwin)
os := darwin
endif
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
os := win
endif
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
os := win
endif
endif
ifeq ($(os),)
os := linux
endif
# Windows uses different path separators, because they hate me
ifeq ($(os),win)
sep := ;
else
sep := :
endif
# os=Default is meant to be generic unix/linux
2012-05-27 21:10:44 +02:00
linux_CXX := g++
2012-05-15 20:48:06 +02:00
linux_STRIP := strip
#Default_LINKFLAGS := -shared
#
Support10_4 := -isysroot /Developer/SDKs/MacOSX10.4u.sdk
darwin_CXX := gcc -arch $(arch) -mmacosx-version-min=10.4 $(Support10_4)
darwin_STRIP := strip -x
2012-05-15 21:32:29 +02:00
#darwin_CPP_FLAGS := strip -x
#darwin_LINKFLAGS := -dynamiclib $(Support10_4)
2012-05-15 20:48:06 +02:00
win_CXX := i586-mingw32msvc-gcc
win_STRIP := i586-mingw32msvc-strip
2012-05-15 21:32:29 +02:00
win_CPP_FLAGS := -D_Windows
#win_CFLAGS := -D_JNI_IMPLEMENTATION_ -Ilib/inc_win -I$(JAVA_HOME)/include -O
#win_LINKFLAGS := -Wl,--kill-at -shared
2012-05-15 20:48:06 +02:00
CXX := $($(os)_CXX)
STRIP := $($(os)_STRIP)
2012-05-15 21:32:29 +02:00
CPP_OS_FLAGS = $($(os)_CPP_FLAGS)
2012-05-15 20:48:06 +02:00
#LINKFLAGS := $($(os)_LINKFLAGS)