Waveform design for integrated radar and jamming is generally based on the concept of shared waveform, which uses jamming signals without typical radar signal characteristics for detection. Existing waveforms have shown limited design flexibility, high levels of sidelobe in detection results, and overall ordinary performance. We propose an integrated radar and jamming waveform based on smart modulation and complementary coding. Unlike traditional integrated radar and jamming waveform based on smart modulation, the phase angle of the binary phase-coded sequence is adjustable in this smart modulation method, allowing for a controllable jamming effect, achieving true smart modulation. However, this smart modulation waveform also suffers from high sidelobes in detection. To address this issue, we take a complementary coding approach and design a smart modulation waveform with complementary characteristics. This waveform can synthesize a complete linear frequency modulation (LFM) signal by adding two pulses together, thereby reducing the sidelobes in the smart modulation waveform and enhancing its detection performance. Theoretical analysis indicates that the detection and jamming effects of this integrated waveform can be flexibly controlled by adjusting the phase angles of the coding sequences. Simulation analysis and experimental results confirm the significant advantages of this waveform.