Passing variables to a Makefile on the command-line fails

Hi folks

I'm getting a strange error when attempting to pass variables to g++ on the command-line. I'm sure I'm just doing something stupid, but am uncertain as to how to fix it.

slorimer@slorimer:~/projects/job> g++ -f Makefile LIBRARY=job install

g++: LIBRARY=job: No such file or directory
g++: install: No such file or directory

I'm using g++ version 4.4.1

Any help would be greatly appreciated!

TIA
Steve
You probably mean make rather than g++.
Yeah you're right, what a dumbass I am!
Last edited on
Topic archived. No new replies allowed.