help-make
[Top][All Lists]
Advanced

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

redefining variables based on target


From: Tanuz, Adam R
Subject: redefining variables based on target
Date: Thu, 5 Aug 2004 14:05:24 -0600

Hello,
I am working on a project and am trying to move from the sun make
to the gnu make.  I have found that the following method for
switching between the debug option and the optimization option
doesn't work in gnu make.  Is their a way to do this in gnu?
I would appreciate any help at all.
 
CC68KOPTS = -Wall -fno-builtin $(CC_DEFINES) $(TST_FLG)

CC_68K = cc68k

#
all:= CC_68K += $(CC68KOPTS) -O2
all: $(EXEC) $(TEXEC)

debug := CC_68K += $(CC68KOPTS) -g
debug:  $(EXEC) $(TEXEC) 

obj/$(TGT)/%.o: %.c
        $(CC_68K) -c -o $@ $(INC_DIR) $<


thanks
adam t.


reply via email to

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