October 12th, 2011, 11:43 AM
Join Date: Jul 2010
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanked 478 Times in 292 Posts
A makefile uses a lot of information about your project, and without knowing this info, it's hard to make a proper make file.
Here is some explanation of what each part of the makefile is for.
#First of all, this is a very limited make file,
#and depending on your project, there might be a lot more needed
LOCAL_PATH := $(call my-dir)
#This is what you want to name the library.
#if you downloaded this make file, then you want to change this
LOCAL_MODULE := gifflen
#This is a list of source files that will be compiled, seperated by a '\'.
#Again, if you downloaded this make file, then you want to change this
#and add your own files.
LOCAL_SRC_FILES := gifflen.cpp
#You shouldn't need to explicitly link to this, so I commented this line out
#LOCAL_LDLIBS := -L/cygdrive/c/android-ndk-1.5_r1-windows/android-ndk-1.5_r1/build/platforms/android-1.5/arch-arm/usr/lib -llog
#this means your are building a shared libary, rather than a static libarary.
That's a basic, and very limited, make file.
My next question is this: Is your C++ code using any other libraries?