I have rebar to create an erlang module that uses two different c files.
I set the c compilation options in mine rebar.configusing (for example):
{port_env, [{"DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra"}]}.
Is it possible to set different parameters for each source c file? I would like for each of them to have different compiler and linker flags.
If not, what is the most common alternative / workaround? I assume that creating a Makefile and moving the c-compilation there will work, it just seems embarrassing to do when the reinforcing grill takes care of it so well.
source
share