From 5d6e54a6142896864b54dd666330eb8373f36eb7 Mon Sep 17 00:00:00 2001 From: Young-il Choi Date: Sun, 12 May 2013 00:34:57 +0900 Subject: [PATCH] build: android support --- Makefile.in | 9 +++++---- configure | 4 +--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile.in b/Makefile.in index b7ef284..d796d31 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,11 +1,12 @@ VPATH=%VPATH% -UNAME=$(shell uname) - -ifeq ($(UNAME),Darwin) +ifeq ($(CFG_OSTYPE),apple-darwin) OSTYPE=darwin endif -ifeq ($(UNAME),Linux) +ifeq ($(CFG_OSTYPE),unknown-linux-gnu) + OSTYPE=linux +endif +ifeq ($(CFG_OSTYPE),linux-androideabi) OSTYPE=linux endif diff --git a/configure b/configure index 5175bb3..0183abc 100755 --- a/configure +++ b/configure @@ -1,6 +1,4 @@ #!/bin/bash SRCDIR="$(cd $(dirname $0) && pwd)" -sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile - - +sed -e "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile