diff --git a/.gitignore b/.gitignore index fa21d23..d102b62 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ clib-build clib-update clib-upgrade clib-uninstall +compile_flags.txt test/package/package-* !test/package/package-*.c diff --git a/Makefile b/Makefile index 36f88ed..add38ec 100644 --- a/Makefile +++ b/Makefile @@ -94,4 +94,10 @@ fmt: commit-hook: scripts/pre-commit-hook.sh cp -f scripts/pre-commit-hook.sh .git/hooks/pre-commit -.PHONY: test all clean install uninstall fmt +.PHONY: test all clean install uninstall fmt compile-flags + +compile-flags: + @printf "%s\n" \ + $(foreach flag,$(CFLAGS),$(flag)) \ + $(foreach dir,$(wildcard deps/*/),"-I./$(dir)") \ + > compile_flags.txt