On Wed, 2009-06-17 at 08:36 +0530, Dhaval Upadhyay wrote:
> If possible can u just tell me how to write command to store generate 
> .obj files to some specific folder(any).

It's very unlikely anything we give you will be immediately usable.  But
I would do something like this:

        SRCS = avcdbits.c \
               avcdcabc.c \
                ...
        
        OBJS = $(patsubst %.c,env/Relase/%.obj,$(SRCS))
        
        all: $(OBJS)
        
        env/Relase/%.obj : src/%.c
                $(CC) $(COMPILE_OPTION) $(INCLUDE) $(CFLAGS) $(PROCESSOR_OPT) 
-o $@ $<

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to