|
From: Frank T. <fr...@fr...> - 2013-11-11 03:42:41
|
I'm trying to add a new C++ kinematics module. If I just put my .cc file in
the src/emc/kinematics directory, nothing happens.
I looked in src/Makefile and found these lines (I'm building the simulator
at the moment).
$(sort $(RTOBJS)) : objects/rt%.o : %.c
$(ECHO) Compiling realtime $<
@mkdir -p $(dir $@)
$(Q)$(CC) -c $(OPT) $(DEBUG) -DSIM -DSIMULATOR -DRTAPI $(EXTRA_CFLAGS)
$< -o $@
Firstly, I've never seen a make line with 3 colons, so I'm not really sure
what this does. If I duplicate the block and change the rule to look for
.cc and run the CXX compiler, like this.
$(sort $(RTOBJS)) : objects/rt%.o : %.cc
$(ECHO) Compiling realtime $<
@mkdir -p $(dir $@)
$(Q)$(CXX) -c $(OPT) $(DEBUG) -DSIM -DSIMULATOR -DRTAPI $(EXTRA_CFLAGS)
$< -o $@
I get this repeated for all objects/rt* but still no build.
Makefile:880: warning: overriding commands for target
`objects/rtobjects/hal/components/xor2.o'
Makefile:875: warning: ignoring old commands for target
`objects/rtobjects/hal/components/xor2.o
It appears the .c and .cc rules are the same. I using the 2.5.3 source.
Any ideas?
Frank
|