LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # give module name LOCAL_MODULE := hello_world # # list your C files to compile LOCAL_SRC_FILES := test.c LOCAL_CFLAGS = -fPIE LOCAL_LDFLAGS = -fPIE -pie # this option will build executables instead of building library for android application. include $(BUILD_EXECUTABLE)