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* http://join.msn.com/?page=features/junkmail




_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to