[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem in suffix of target
From: |
Paul Smith |
Subject: |
Re: Problem in suffix of target |
Date: |
Wed, 17 Jun 2009 01:43:12 -0400 |
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 <address@hidden> 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