We associate to any manifold with corners (even with non-embedded hyperfaces) a (non-Hausdorff) longitudinally smooth Lie groupoid, on which we define a pseudodifferential calculus. This calculus generalizes the b-calculus of Melrose, defined for manifolds with embedded corners. The groupoid of a manifold with corners is shown to be unique up to equivalence for manifolds with corners of same codimension. Using tools from the theory of -algebras of groupoids, we also obtain new proofs for the study of b-calculus.