good proceed "switch" makefile
i'm experimenting an updated build component during work; currently, i'm perplexing good proceed set compiler & flags depending aim platform.
what i something like
switch $(platform)_$(build_type)
box "linux_x86_release"
cflags = -o3
box "linux_x86_debug"
cflags = -o0 -g
box "arm_release"
cc = armcc
ar = armlink
cflags = -o2 -fx
...
which upheld gnu make. now, initial guess only do
-include $(platform)_$(build_type)
which graceful decent solution, however, creates tough an overview differs between files, plead i'm looking disrespectful minute & surpassing good 60-80 files, any containing set non-static definitions.
does anyone occur know improved proceed accomplish this? i.e. sourroundings set flags options formed another variable?
Comments
Post a Comment