MOD_CPP = \
${MODULE_DIR}/u_socket.o
...
${MOD_CPP}: ${@F.o=.cpp}
@ echo "<<< Begin: Compiling $< >>>"
@ rm -f $@
@ rm -f ${@:.o=.s}
${CC} ${CFLAGS} -S ${INC_DIR} -o ${@:.o=.s} $<
${CC} ${CFLAGS} -c ${INC_DIR} -o $@ ${@:.o=.s}
@ echo "<<< End: Compiling $? >>>"
the idea here is to have the target and rule look like:
u_socket.o: u_socket.cpp
....
Any reason why this doen't work on my Mandrake Linux 8.2 i686 (P4) with GNU Make version 3.79.1?
Thanks.
.v
signature.asc
Description: This is a digitally signed message part