PDA

View Full Version : A way to transfer info from .pro to Makefile



thawkins
7th April 2006, 18:48
I want to get the following line into a Makefile generated by a project file:

MYARCH = $(shell arch)

Any way to specify this in a project file so there is a direct transfer into the Makefile?

fullmetalcoder
9th April 2006, 10:15
It depends on the meaning of your variable. Check out qmake manual, there are plenty of low-level variables that can modify compiler/linker/... behaviour.

jrideout
9th April 2006, 18:19
How would you use the variable in the Makefile?

thawkins
2nd May 2006, 21:06
Thanks, I figured it out. Basically had to analyze how the variable was used in the original makefile and I was pretty much on track to the solution, just needed to use $$(my_arch) instead of $(my_arch).