INCLUDES += emc/kinematics GENSERKINSSRCS := \ emc/kinematics/genserkins.c USERSRCS += $(GENSERKINSSRCS) ../bin/genserkins: $(call TOOBJS, $(GENSERKINSSRCS)) ../lib/liblinuxcnchal.so ../lib/libposemath.so $(ECHO) Linking $(notdir $@) $(Q)$(CC) $(LDFLAGS) -o $@ $^ TARGETS += ../bin/genserkins ../include/%.h: ./emc/kinematics/%.h cp $^ $@ ../include/%.hh: ./emc/kinematics/%.hh cp $^ $@