Compile the scalar directory