[Top][All Lists]

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

please advise

From: Yuri Polyakov
Subject: please advise
Date: Sun, 10 Aug 2003 14:17:16 +0000

Hi all,

Please advise regarding the following (should be very simple) :-)

I have some directories containing *.c files and I would like to compile it
and to get *.o files in 1 common directory.

Cuurently, only 1 file is compiled and the complation stops...

vpath %.c         $(HOME_PATH)/dir1/src:$(HOME_PATH)/dir2/src
vpath %.cpp       $(HOME_PATH)/dir2/src:$(HOME_PATH)/dir1/src

C_SRCS = $(wildcard $(HOME_PATH)/rbc1/src/*.c)
C_OBJS = $(subst .c,.o,$(C_SRCS))

C_OBJS : $(HOME_PATH)/dir1/src/*.c
       @echo "Compiling C source $(<F)"; $(DATE)
       cc -c $(CCFLAGS) $(CCINCS) $<

Then I run : gmake -k C_OBJS.....

Is this correct?
Please advise.

STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

reply via email to

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