How do you attach two boards for a door frame?
After shaping tongues and grooves on the wood, place some wood glue into the groove of the receiving board and slide the tongue board into it.  Bind the wood together so it dries tight with clamps.