Take the DFA and convert all the states as accepting ones for accepting all prefixes.
If you want only the proper prefixes convert all the states to accepting ones, then exclude the initial state and the final states, but then include the states that are one transition away from any other final state.