help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My makefile problem


From: Gautreaux, Richard
Subject: My makefile problem
Date: Fri, 22 Dec 2006 14:30:25 -0500

I am having a problem with a makefile and cannot solve it on my own after looking through the documentation for GNU make. 
What I am trying to do is compare the argument passed in to the make util.  So I am trying to set something if the arg is vxWorks.bin.  So here is a portion of my makefile.
 
I am calling make vxWorks.bin and the following code does not compare to TRUE.
 
ifeq ($@,vxWorks.bin)
LDFLAGS += -T$(BSP_PATH)/ldscript.ld
endif
I cannot get this to evaluate to TRUE even though if I echo the statement $@ and vxWorks.bin they both print
vxWorks.bin
vxWorks.bin
 
Any help would be greatly appriciated.
 
Rich Gautreaux

reply via email to

[Prev in Thread] Current Thread [Next in Thread]