From e093c21ed880ac3eb72119be15093ee04f8ce299 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 5 Mar 2024 19:50:13 -0500 Subject: Move architecture modules into the API repo --- arch/arm64/disassembler/Makefile-asan | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 arch/arm64/disassembler/Makefile-asan (limited to 'arch/arm64/disassembler/Makefile-asan') diff --git a/arch/arm64/disassembler/Makefile-asan b/arch/arm64/disassembler/Makefile-asan new file mode 100644 index 00000000..70668fcc --- /dev/null +++ b/arch/arm64/disassembler/Makefile-asan @@ -0,0 +1,21 @@ +DECODE_OBJS = pcode.o decode.o decode0.o decode1.o decode2.o decode_fields32.o decode_scratchpad.o encodings_dec.o + +FORMAT_OBJS = format.o encodings_fmt.o operations.o sysregs.o regs.o + +HEADERS = decode.h decode1.h decode2.h format.h pcode.h operations.h sysregs.h decode_fields32.h encodings_dec.h encodings_fmt.h regs.h + +CFLAGS = -O2 -fsanitize=address -ggdb + +.PHONY: all clean + +all: test + +%.o: %.c %.h + gcc -c $(CFLAGS) $< -o $@ + +test: test.c $(DECODE_OBJS) $(FORMAT_OBJS) + gcc $(CFLAGS) test.c *.o -o test + +clean: + rm -f *.o *.so *.a test + rm -rf gofer.so.dSYM test.dSYM -- cgit v1.3.1