1 LOCAL_PATH := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 LOCAL_MODULE := static_main 5 LOCAL_SRC_FILES := main.c 6 LOCAL_LDFLAGS := -static # this forces the generation of a static executable 7 include $(BUILD_EXECUTABLE) 8 9