From d7281e9ea7dff28a6037cce5c2e23e2ec16fa0cc Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 21 Oct 2017 14:05:02 +0700 Subject: [PATCH] cleanup Makefile for M680K. also include its INC files in dependency --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d5fcfc7b74..8df3f40fac 100644 --- a/Makefile +++ b/Makefile @@ -225,16 +225,14 @@ ifneq (,$(findstring tms320c64x,$(CAPSTONE_ARCHS))) endif DEP_M680X = -DEP_M680X += arch/M680X/M680XInstPrinter.h -DEP_M680X += arch/M680X/M680XDisassembler.h -DEP_M680X += arch/M680X/M680XDisassemblerInternals.h +DEP_M680X += $(wildcard arch/M680X/*.inc) +DEP_M680X += $(wildcard arch/M680X/M680X*.h) LIBOBJ_M680X = ifneq (,$(findstring m680x,$(CAPSTONE_ARCHS))) CFLAGS += -DCAPSTONE_HAS_M680X - LIBOBJ_M680X += $(OBJDIR)/arch/M680X/M680XDisassembler.o - LIBOBJ_M680X += $(OBJDIR)/arch/M680X/M680XInstPrinter.o - LIBOBJ_M680X += $(OBJDIR)/arch/M680X/M680XModule.o + LIBSRC_M680X += $(wildcard arch/M680X/*.c) + LIBOBJ_M680X += $(LIBSRC_M680X:%.c=$(OBJDIR)/%.o) endif LIBOBJ =