diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-05 19:50:13 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-05 20:34:34 -0500 |
| commit | e093c21ed880ac3eb72119be15093ee04f8ce299 (patch) | |
| tree | 9f720ebdc0ae415734b1199ed341668c69710a94 /arch/arm64/disassembler/Makefile-local | |
| parent | 0609276712622908254065546102381466033141 (diff) | |
Move architecture modules into the API repo
Diffstat (limited to 'arch/arm64/disassembler/Makefile-local')
| -rw-r--r-- | arch/arm64/disassembler/Makefile-local | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm64/disassembler/Makefile-local b/arch/arm64/disassembler/Makefile-local new file mode 100644 index 00000000..e9257f8c --- /dev/null +++ b/arch/arm64/disassembler/Makefile-local @@ -0,0 +1,50 @@ +# $ make -f Makefile-local + +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 = -g -Wunused +CFLAGS = -Os +#CFLAGS = -g -Wpedantic +#CFLAGS = -ofast + +#$(info $(GENERATED_OBJECTS)) + +.PHONY: all clean + +all: libdecode.a libformat.a gofer.so test + +%.o: %.c $(HEADERS) + gcc -c $(CFLAGS) $< -o $@ + +libdecode.a: $(DECODE_OBJS) + ar rvs libdecode.a $(DECODE_OBJS) + +libformat.a: $(FORMAT_OBJS) + ar rvs libformat.a $(FORMAT_OBJS) + +#------------------------------------------------------------------------------ +# test tools +#------------------------------------------------------------------------------ + +gofer.so: gofer.c libdecode.a + gcc $(CFLAGS) \ + libdecode.a libformat.a \ + -shared -o gofer.so gofer.c \ + -Wl,-headerpad_max_install_names + #install_name_tool -change libcapstone.3.dylib gofer.so + #install_name_tool -add_rpath `pwd` gofer.so + +test: test.c libdecode.a + gcc $(CFLAGS) test.c libdecode.a libformat.a -o test + +#------------------------------------------------------------------------------ +# +#------------------------------------------------------------------------------ +clean: + rm -f *.o *.so *.a test + rm -rf gofer.so.dSYM test.dSYM + |
