# By YZBruh # Copyright 2024 Partition Manager # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ######## # 2.7.0 ######## LOCAL_PATH := $(call my-dir) include $(LOCAL_PATH)/../build/config/env.mk PMT_CFLAGS = \ -O3 \ -std=c11 \ -pedantic \ -Wall \ -Wextra \ -Werror \ -Wno-nullability-extension \ -Wno-gnu-zero-variadic-macro-arguments \ -D__NDK_BUILD \ $(EXTRA_COMPILER_FLAGS) ifneq ($(PMT_ENABLE_DEBUG),) PMT_CFLAGS += -gdwarf-5 -fsanitize=address -fsanitize=undefined endif include $(CLEAR_VARS) LOCAL_MODULE := libpmt_root LOCAL_SRC_FILES := root.c LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include LOCAL_CFLAGS := $(PMT_CFLAGS) include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libpmt_debug LOCAL_SRC_FILES := debug.c LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include LOCAL_CFLAGS := $(PMT_CFLAGS) include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libpmt_partitiontool LOCAL_SRC_FILES := partitiontool.c LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include LOCAL_CFLAGS := $(PMT_CFLAGS) include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libpmt_list LOCAL_SRC_FILES := listpart.c LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include LOCAL_CFLAGS := $(PMT_CFLAGS) include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := pmt LOCAL_SRC_FILES := \ pmt.c \ version.c \ get_stat.c \ tools.c \ lang_tools.c \ languages.c \ help.c LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include LOCAL_STATIC_LIBRARIES := \ libpmt_root \ libpmt_debug \ libpmt_partitiontool \ libpmt_list LOCAL_CFLAGS := $(PMT_CFLAGS) include $(BUILD_EXECUTABLE) # end