Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanselx86 committed May 1, 2014
1 parent 0bd7ccb commit 1b4ab30
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ CVS
.libs/
obj/
libs/
androidvncserver
26 changes: 26 additions & 0 deletions jni/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

TOP_DIR=$(PWD)
LIBJPEG=libjpeg-turbo/libjpeg-turbo-1.3.1/_install/lib/libjpeg.a
VNC_SERVER=androidvncserver
ANDROID_VNC_SERVER=LibVNCServer-0.9.9/_install/bin/$(VNC_SERVER)

all:$(ANDROID_VNC_SERVER)

libjpeg-turbo:
cd libjpeg-turbo/libjpeg-turbo-1.3.1; $(TOP_DIR)/ndk_configure.sh; make; make install

$(VNC_SERVER):$(ANDROID_VNC_SERVER)

$(LIBJPEG):libjpeg-turbo

$(ANDROID_VNC_SERVER):$(LIBJPEG)
cd LibVNCServer-0.9.9; ./myconfigure.sh; make; make install; cp -f _install/bin/$(VNC_SERVER) $(TOP_DIR)/;
strip $(VNC_SERVER)

clean:
cd libjpeg-turbo/libjpeg-turbo-1.3.1; make clean; rm -rf _install
cd LibVNCServer-0.9.9; make clean; rm -rf _install
rm -rf $(VNC_SERVER)

install:
cp -rf $(VNC_SERVER) $(TOP_DIR)/../

0 comments on commit 1b4ab30

Please sign in to comment.