diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-01-27 01:20:19 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-01-27 01:33:00 +0100 |
commit | 2a26c1506192468be6c4cd06465bee861d87db51 (patch) | |
tree | 9ae5fc333e61c2478dfc57842daeacbf1dc78867 /test/elf_parser/Makefile | |
parent | 3f62112e3a1b180a9b931d6f43b3cdc74e7ba3b9 (diff) | |
download | cpp-utils-2a26c1506192468be6c4cd06465bee861d87db51.tar.gz cpp-utils-2a26c1506192468be6c4cd06465bee861d87db51.zip |
Diffstat (limited to 'test/elf_parser/Makefile')
-rw-r--r-- | test/elf_parser/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/elf_parser/Makefile b/test/elf_parser/Makefile new file mode 100644 index 0000000..ea726bd --- /dev/null +++ b/test/elf_parser/Makefile @@ -0,0 +1,12 @@ +all: libtest-32.h libtest-64.h + +libtest-%.h: libtest-%.so + xxd -i $^ > $@ + sed -i 's#^unsigned#// NOLINTNEXTLINE\nunsigned#' $@ + clang-format -i $@ + +libtest-%.so: test.cc + $(CC) -m$* -shared -fPIC -o $@ $^ + +clean: + $(RM) libtest-*.so libtest-*.h |