Use make conditionals to control the link line rather than shell ones. Try two different paths for the wxrc location.
Use make conditionals to control the link line rather than shell ones.
Try two different paths for the wxrc location.

cmiss/cmgui,cmiss/cmgui