blob: 3d03c51a53cbcdfe7140c266d6495284de2de86c [file] [log] [blame]
# SPDX-License-Identifier: GPL-2.0-or-later */
#
# Copyright (c) 2023 MediaTek Inc. All Rights Reserved.
#
# Author: Alvin Kuo <Alvin.Kuo@mediatek.com>
#
PROJECT:= tops-tool
OBJECTS-$(CONFIG_MTK_TOPS_TOOL_SAVE_LOG)+= logger.o
OBJECTS:= tops-tool.o common.o dump.o $(OBJECTS-y)
all: $(PROJECT)
$(PROJECT): $(OBJECTS) Makefile
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@
%.o: %.c inc/%.h Makefile
$(CC) $(CFLAGS) -c $< -o $@
.PHONY : clean
clean:
rm -f $(PROJECT) *.o