Preparation of motion.c and Makefile for its compile