diff --git a/Tests/elf_to_hex/Makefile b/Tests/elf_to_hex/Makefile index 7405cde..e31970f 100644 --- a/Tests/elf_to_hex/Makefile +++ b/Tests/elf_to_hex/Makefile @@ -12,7 +12,7 @@ CFLAGS = -g -o elf_to_hex elf_to_hex.c -lelf ifeq ($(uname_S), Darwin) CC = clang++ - APPLE_FLAGS = -I /opt/homebrew/lib -I /opt/homebrew/Cellar/libelf/0.8.13_1/include/ + APPLE_FLAGS = -L /opt/homebrew/lib -I /opt/homebrew/include/libelf -I /opt/homebrew/include endif elf_to_hex: elf_to_hex.c @@ -26,4 +26,4 @@ clean: .PHONY: full_clean full_clean: - rm -f *~ elf_to_hex \ No newline at end of file + rm -f *~ elf_to_hex diff --git a/Tests/elf_to_hex/elf_to_hex.c b/Tests/elf_to_hex/elf_to_hex.c index 9e6d284..069c7b4 100644 --- a/Tests/elf_to_hex/elf_to_hex.c +++ b/Tests/elf_to_hex/elf_to_hex.c @@ -43,15 +43,12 @@ #include #include #include +#include #ifdef __APPLE__ -#include #include -#else -#include #endif - // ================================================================ // Memory buffer into which we load the ELF file before // writing it back out to the output file.