Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Makefile #23

Merged
merged 1 commit into from
Nov 1, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

.DEFAULT_GOAL := all
LIBRARY_ROOT := libs

init:
git submodule update --init
android update project -p .

all: build-external build-jni build-java
all: clean build-external build-jni build-java copy-libs

build-external:
cd external/ && \
Expand All @@ -20,3 +21,15 @@ build-java:
ant compile && \
cd bin/classes && \
jar -cvf sqlcipher.jar .

clean:
rm ${LIBRARY_ROOT}/armeabi/libsqlcipher_android.so && \
rm ${LIBRARY_ROOT}/armeabi/libdatabase_sqlcipher.so && \
rm ${LIBRARY_ROOT}/sqlcipher.jar

copy-libs:
cp external/libs/armeabi/libsqlcipher_android.so \
${LIBRARY_ROOT}/armeabi && \
cp jni/libs/armeabi/libdatabase_sqlcipher.so \
${LIBRARY_ROOT}/armeabi && \
cp bin/classes/sqlcipher.jar ${LIBRARY_ROOT}