[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 10 Aug 2003 14:17:16 +0000
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?
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
|[Prev in Thread]
||[Next in Thread]|
- please advise,
Yuri Polyakov <=